forked from I2P_Developers/i2p.i2p
propagate from branch 'i2p.i2p' (head 4b264686657ff54a00224313e00de68d37edbd31)
to branch 'i2p.i2p.unittests' (head 63cf9916eca4b38ab0707cd781c308312e27d75f)
This commit is contained in:
@ -7,7 +7,11 @@ import org.scalatest.matchers.ShouldMatchers
|
|||||||
* @author str4d
|
* @author str4d
|
||||||
*/
|
*/
|
||||||
class PrivateKeySpec extends FunSpec with ShouldMatchers {
|
class PrivateKeySpec extends FunSpec with ShouldMatchers {
|
||||||
|
val privateKey = new PrivateKey
|
||||||
|
|
||||||
describe("A 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
|
* @author str4d
|
||||||
*/
|
*/
|
||||||
class PublicKeySpec extends FunSpec with ShouldMatchers {
|
class PublicKeySpec extends FunSpec with ShouldMatchers {
|
||||||
|
val publicKey = new PublicKey
|
||||||
|
|
||||||
describe("A 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
|
* @author str4d
|
||||||
*/
|
*/
|
||||||
class SessionKeySpec extends FunSpec with ShouldMatchers {
|
class SessionKeySpec extends FunSpec with ShouldMatchers {
|
||||||
|
val sessionKey = new SessionKey
|
||||||
|
|
||||||
describe("A 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
|
* @author str4d
|
||||||
*/
|
*/
|
||||||
class SessionTagSpec extends FunSpec with ShouldMatchers {
|
class SessionTagSpec extends FunSpec with ShouldMatchers {
|
||||||
|
val sessionTag = new SessionTag
|
||||||
|
|
||||||
describe("A 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
|
* @author str4d
|
||||||
*/
|
*/
|
||||||
class SignatureSpec extends FunSpec with ShouldMatchers {
|
class SignatureSpec extends FunSpec with ShouldMatchers {
|
||||||
|
val signature = new Signature
|
||||||
|
|
||||||
describe("A 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
|
* @author str4d
|
||||||
*/
|
*/
|
||||||
class SigningPrivateKeySpec extends FunSpec with ShouldMatchers {
|
class SigningPrivateKeySpec extends FunSpec with ShouldMatchers {
|
||||||
|
val signingPrivateKey = new SigningPrivateKey
|
||||||
|
|
||||||
describe("A 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
|
* @author str4d
|
||||||
*/
|
*/
|
||||||
class SigningPublicKeySpec extends FunSpec with ShouldMatchers {
|
class SigningPublicKeySpec extends FunSpec with ShouldMatchers {
|
||||||
|
val signingPublicKey = new SigningPublicKey
|
||||||
|
|
||||||
describe("A SigningPublicKey") {
|
describe("A SigningPublicKey") {
|
||||||
it("should be 128 bytes long") (pending)
|
it("should be 128 bytes long") {
|
||||||
|
signingPublicKey should have length (128)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user