ソースを参照

Corrected error in RandonKeyCipherTest.java

I changed the cipherKeysAreRandomlyGenerated test so that it does not compare the new Cipher to the length of the old Cipher.
JTMaher2 11 年 前
コミット
e04d54f404
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  1. 1
    1
      simple-cipher/src/test/java/RandomKeyCipherTest.java

+ 1
- 1
simple-cipher/src/test/java/RandomKeyCipherTest.java ファイルの表示

25
 
25
 
26
     @Test
26
     @Test
27
     public void cipherKeysAreRandomlyGenerated() {
27
     public void cipherKeysAreRandomlyGenerated() {
28
-        assertTrue(!(new Cipher().getKey().equals(cipher.getKey().length())));
28
+        assertTrue(!(new Cipher().getKey().equals(cipher.getKey())));
29
     }
29
     }
30
 
30
 
31
     /**
31
     /**