diff --git a/core/java/test/scalatest/net/i2p/data/PrivateKeySpec.scala b/core/java/test/scalatest/net/i2p/data/PrivateKeySpec.scala index 583c329bed3d9b55d30649fbd28f1780a79bb565..2804be67d950ecc25ee274d9d2d1301f997846b3 100644 --- a/core/java/test/scalatest/net/i2p/data/PrivateKeySpec.scala +++ b/core/java/test/scalatest/net/i2p/data/PrivateKeySpec.scala @@ -7,7 +7,11 @@ import org.scalatest.matchers.ShouldMatchers * @author str4d */ class PrivateKeySpec extends FunSpec with ShouldMatchers { + val privateKey = new PrivateKey + describe("A PrivateKey") { - it("should be 256 bytes long") (pending) + it("should be 256 bytes long") { + privateKey should have length (256) + } } } diff --git a/core/java/test/scalatest/net/i2p/data/PublicKeySpec.scala b/core/java/test/scalatest/net/i2p/data/PublicKeySpec.scala index 5d131a8fd5676c53ed4c2e2392e49a280996731b..b45230bb376d95b25bde8e0acd0cbf81862dcbff 100644 --- a/core/java/test/scalatest/net/i2p/data/PublicKeySpec.scala +++ b/core/java/test/scalatest/net/i2p/data/PublicKeySpec.scala @@ -7,7 +7,11 @@ import org.scalatest.matchers.ShouldMatchers * @author str4d */ class PublicKeySpec extends FunSpec with ShouldMatchers { + val publicKey = new PublicKey + describe("A PublicKey") { - it("should be 256 bytes long") (pending) + it("should be 256 bytes long") { + publicKey should have length (256) + } } } diff --git a/core/java/test/scalatest/net/i2p/data/SessionKeySpec.scala b/core/java/test/scalatest/net/i2p/data/SessionKeySpec.scala index 77c62bcf660314c6c91c91382046dd003d37ce3f..7330b59686397dac29fbfb79013338edacd8d772 100644 --- a/core/java/test/scalatest/net/i2p/data/SessionKeySpec.scala +++ b/core/java/test/scalatest/net/i2p/data/SessionKeySpec.scala @@ -7,7 +7,11 @@ import org.scalatest.matchers.ShouldMatchers * @author str4d */ class SessionKeySpec extends FunSpec with ShouldMatchers { + val sessionKey = new SessionKey + describe("A SessionKey") { - it("should be 32 bytes long") (pending) + it("should be 32 bytes long") { + sessionKey should have length (32) + } } } diff --git a/core/java/test/scalatest/net/i2p/data/SessionTagSpec.scala b/core/java/test/scalatest/net/i2p/data/SessionTagSpec.scala index 8a755bfc7eafb579dfb803a36dfab10aa51a379d..c845585b94760cf9bfdf9fc014b48905aab536e5 100644 --- a/core/java/test/scalatest/net/i2p/data/SessionTagSpec.scala +++ b/core/java/test/scalatest/net/i2p/data/SessionTagSpec.scala @@ -7,7 +7,11 @@ import org.scalatest.matchers.ShouldMatchers * @author str4d */ class SessionTagSpec extends FunSpec with ShouldMatchers { + val sessionTag = new SessionTag + describe("A SessionTag") { - it("should be 32 bytes long") (pending) + it("should be 32 bytes long") { + sessionTag should have length (32) + } } } diff --git a/core/java/test/scalatest/net/i2p/data/SignatureSpec.scala b/core/java/test/scalatest/net/i2p/data/SignatureSpec.scala index ff17c365d7ccfb8b9f8be4cbeb83f1fa592992d5..4476d9f8acc5debe9d3656ecceca519f9a142bff 100644 --- a/core/java/test/scalatest/net/i2p/data/SignatureSpec.scala +++ b/core/java/test/scalatest/net/i2p/data/SignatureSpec.scala @@ -7,7 +7,11 @@ import org.scalatest.matchers.ShouldMatchers * @author str4d */ class SignatureSpec extends FunSpec with ShouldMatchers { + val signature = new Signature + describe("A Signature") { - it("should be 40 bytes long") (pending) + it("should be 40 bytes long") { + signature should have length (40) + } } } diff --git a/core/java/test/scalatest/net/i2p/data/SigningPrivateKeySpec.scala b/core/java/test/scalatest/net/i2p/data/SigningPrivateKeySpec.scala index a4ad5ff33609a4ec2d534d4b6b88847bcb87f388..e6e9107ec0ab54074ff1ac218fb95381a5c55a38 100644 --- a/core/java/test/scalatest/net/i2p/data/SigningPrivateKeySpec.scala +++ b/core/java/test/scalatest/net/i2p/data/SigningPrivateKeySpec.scala @@ -7,7 +7,11 @@ import org.scalatest.matchers.ShouldMatchers * @author str4d */ class SigningPrivateKeySpec extends FunSpec with ShouldMatchers { + val signingPrivateKey = new SigningPrivateKey + describe("A SigningPrivateKey") { - it("should be 20 bytes long") (pending) + it("should be 20 bytes long") { + signingPrivateKey should have length (20) + } } } diff --git a/core/java/test/scalatest/net/i2p/data/SigningPublicKeySpec.scala b/core/java/test/scalatest/net/i2p/data/SigningPublicKeySpec.scala index 97541c2d5da9d532fc81982099d3c0215e2d28f1..6a9d450a5e8f51981e0130770aead5b5a11fad3d 100644 --- a/core/java/test/scalatest/net/i2p/data/SigningPublicKeySpec.scala +++ b/core/java/test/scalatest/net/i2p/data/SigningPublicKeySpec.scala @@ -7,7 +7,11 @@ import org.scalatest.matchers.ShouldMatchers * @author str4d */ class SigningPublicKeySpec extends FunSpec with ShouldMatchers { + val signingPublicKey = new SigningPublicKey + describe("A SigningPublicKey") { - it("should be 128 bytes long") (pending) + it("should be 128 bytes long") { + signingPublicKey should have length (128) + } } }