|
@ -197,7 +197,7 @@ public class VaultTest { |
|
|
vlt.setCapital("no"); |
|
|
vlt.setCapital("no"); |
|
|
|
|
|
|
|
|
assertFalse(vlt.haveCapitals = false); |
|
|
assertFalse(vlt.haveCapitals = false); |
|
|
assertTrue(outputStream.toString().contains("don't")); |
|
|
|
|
|
|
|
|
assertTrue(outputStream.toString().contains("anymore")); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Test |
|
|
@Test |
|
@ -221,7 +221,7 @@ public class VaultTest { |
|
|
vlt.setSpecialChar("no"); |
|
|
vlt.setSpecialChar("no"); |
|
|
|
|
|
|
|
|
assertFalse(vlt.hasSpecialChars = false); |
|
|
assertFalse(vlt.hasSpecialChars = false); |
|
|
assertTrue(outputStream.toString().contains("don't")); |
|
|
|
|
|
|
|
|
assertTrue(outputStream.toString().contains("anymore")); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Test |
|
|
@Test |
|
@ -246,7 +246,7 @@ public class VaultTest { |
|
|
vlt.setNumbers("no"); |
|
|
vlt.setNumbers("no"); |
|
|
|
|
|
|
|
|
assertFalse(vlt.hasNumbers = false); |
|
|
assertFalse(vlt.hasNumbers = false); |
|
|
assertTrue(outputStream.toString().contains("don't")); |
|
|
|
|
|
|
|
|
assertTrue(outputStream.toString().contains("anymore")); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private ByteArrayInputStream getEmptyStringInputStream() { |
|
|
private ByteArrayInputStream getEmptyStringInputStream() { |
|
|