| | |
| | | * Test the normalization and the approximate comparison. |
| | | */ |
| | | @Test(dataProvider= "acceptableValues") |
| | | public void testAcceptableValues(String value, Boolean result) |
| | | throws Exception |
| | | public void testAcceptableValues(String value, Boolean result) throws Exception |
| | | { |
| | | // Make sure that the specified class can be instantiated as a task. |
| | | |
| | |
| | | syntax.valueIsAcceptable(ByteString.valueOf(value), reason); |
| | | |
| | | if (liveResult != result) |
| | | fail(syntax + ".valueIsAcceptable gave bad result for " + value + |
| | | "reason : " + reason); |
| | | |
| | | { |
| | | fail(syntax + ".valueIsAcceptable gave bad result for " + value + " reason : " + reason); |
| | | } |
| | | } |
| | | } |