propagate from branch 'i2p.i2p' (head 166cedda170ef76decb2d53129cfbbf8eba0b7b9)

to branch 'i2p.i2p.unittests' (head 70175d5dae110f7d3efee256c9169e68f4a83d9f)
This commit is contained in:
str4d
2013-07-03 10:54:18 +00:00
7 changed files with 35 additions and 7 deletions
@@ -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)
}
}
}
@@ -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)
}
}
}
@@ -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)
}
}
}
@@ -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)
}
}
}
@@ -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)
}
}
}
@@ -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)
}
}
}
@@ -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)
}
}
}