Update tests to use ScalaTest 3.0.1

This commit is contained in:
str4d
2016-12-29 18:54:23 +00:00
parent 14ca463499
commit 91007735a1
15 changed files with 51 additions and 23 deletions

View File

@ -1,12 +1,12 @@
package net.i2p.data
import org.scalatest.FunSpec
import org.scalatest.matchers.ShouldMatchers
import org.scalatest.Matchers
/**
* @author str4d
*/
class HashSpec extends FunSpec with ShouldMatchers {
class HashSpec extends FunSpec with Matchers {
val hash = new Hash
describe("A Hash") {

View File

@ -1,12 +1,12 @@
package net.i2p.data
import org.scalatest.FunSpec
import org.scalatest.matchers.ShouldMatchers
import org.scalatest.Matchers
/**
* @author str4d
*/
class PrivateKeySpec extends FunSpec with ShouldMatchers {
class PrivateKeySpec extends FunSpec with Matchers {
val privateKey = new PrivateKey
describe("A PrivateKey") {

View File

@ -1,12 +1,12 @@
package net.i2p.data
import org.scalatest.FunSpec
import org.scalatest.matchers.ShouldMatchers
import org.scalatest.Matchers
/**
* @author str4d
*/
class PublicKeySpec extends FunSpec with ShouldMatchers {
class PublicKeySpec extends FunSpec with Matchers {
val publicKey = new PublicKey
describe("A PublicKey") {

View File

@ -1,12 +1,12 @@
package net.i2p.data
import org.scalatest.FunSpec
import org.scalatest.matchers.ShouldMatchers
import org.scalatest.Matchers
/**
* @author str4d
*/
class SessionKeySpec extends FunSpec with ShouldMatchers {
class SessionKeySpec extends FunSpec with Matchers {
val sessionKey = new SessionKey
describe("A SessionKey") {

View File

@ -1,12 +1,12 @@
package net.i2p.data
import org.scalatest.FunSpec
import org.scalatest.matchers.ShouldMatchers
import org.scalatest.Matchers
/**
* @author str4d
*/
class SessionTagSpec extends FunSpec with ShouldMatchers {
class SessionTagSpec extends FunSpec with Matchers {
val sessionTag = new SessionTag
describe("A SessionTag") {

View File

@ -1,12 +1,12 @@
package net.i2p.data
import org.scalatest.FunSpec
import org.scalatest.matchers.ShouldMatchers
import org.scalatest.Matchers
/**
* @author str4d
*/
class SignatureSpec extends FunSpec with ShouldMatchers {
class SignatureSpec extends FunSpec with Matchers {
val signature = new Signature
describe("A Signature") {

View File

@ -1,12 +1,12 @@
package net.i2p.data
import org.scalatest.FunSpec
import org.scalatest.matchers.ShouldMatchers
import org.scalatest.Matchers
/**
* @author str4d
*/
class SigningPrivateKeySpec extends FunSpec with ShouldMatchers {
class SigningPrivateKeySpec extends FunSpec with Matchers {
val signingPrivateKey = new SigningPrivateKey
describe("A SigningPrivateKey") {

View File

@ -1,12 +1,12 @@
package net.i2p.data
import org.scalatest.FunSpec
import org.scalatest.matchers.ShouldMatchers
import org.scalatest.Matchers
/**
* @author str4d
*/
class SigningPublicKeySpec extends FunSpec with ShouldMatchers {
class SigningPublicKeySpec extends FunSpec with Matchers {
val signingPublicKey = new SigningPublicKey
describe("A SigningPublicKey") {

View File

@ -1,12 +1,12 @@
package net.i2p.data
import org.scalatest.FunSpec
import org.scalatest.matchers.ShouldMatchers
import org.scalatest.Matchers
/**
* @author str4d
*/
class TunnelIdSpec extends FunSpec with ShouldMatchers {
class TunnelIdSpec extends FunSpec with Matchers {
describe("A TunnelId") {
it("should be a 4 byte integer") (pending)
}

View File

@ -1,10 +1,10 @@
package net.i2p.util
import org.scalatest.FunSpec
import org.scalatest.matchers.ShouldMatchers
import org.scalatest.Matchers
class VersionComparatorSpec extends FunSpec with ShouldMatchers {
class VersionComparatorSpec extends FunSpec with Matchers {
private val vc = new VersionComparator