OnJava8-Examples/verifying/StringInverter1.java
2016-08-19 08:21:09 -06:00

22 lines
721 B
Java

// verifying/StringInverter1.java
// (c)2016 MindView LLC: see Copyright.txt
// We make no guarantees that this code is fit for any purpose.
// Visit http://mindviewinc.com/Books/OnJava/ for more book information.
// {java StringInverterTest StringInverter1}
public class StringInverter1 implements StringInverter {
public String invert(String str) { return ""; }
}
/* Output:
StringInverter1 has 3 FAILURES:
Failure 1:
allowedCharacters_Fail(StringInverterTest)
Expected exception: java.lang.RuntimeException
Failure 2:
basicInversion_Succeed(StringInverterTest)
expected:<[]> but was:<[eXIT, pURSUED BY A bEAR.]>
Failure 3:
lengthLessThan26_Fail(StringInverterTest)
Expected exception: java.lang.RuntimeException
*/