Просмотр исходного кода

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 лет назад
Родитель
Сommit
e04d54f404
1 измененных файлов: 1 добавлений и 1 удалений
  1. 1
    1
      simple-cipher/src/test/java/RandomKeyCipherTest.java

+ 1
- 1
simple-cipher/src/test/java/RandomKeyCipherTest.java Просмотреть файл

@@ -25,7 +25,7 @@ public class RandomKeyCipherTest {
25 25
 
26 26
     @Test
27 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
     /**