MCPcopy Create free account
hub / github.com/amazon-ion/ion-java / badValue

Method badValue

src/test/java/com/amazon/ion/TimestampTest.java:95–105  ·  view source on GitHub ↗
(String text)

Source from the content-addressed store, hash-verified

93
94
95 @Override
96 public void badValue(String text)
97 {
98 super.badValue(text);
99
100 try {
101 Timestamp.valueOf(text);
102 fail("Expected exception parsing text: " + text);
103 }
104 catch (IllegalArgumentException e) { }
105 }
106
107
108 private void checkTimestamp(Date expected, IonTimestamp actual)

Callers 11

testBadYearsMethod · 0.95
testBadMonthsMethod · 0.95
testBadDatesMethod · 0.95
testDateWithSlashesMethod · 0.95
testDateWithZMethod · 0.95
testTruncatedOffsetMethod · 0.95
testTruncatedSecondsMethod · 0.95
testYearZeroMethod · 0.95
testNegativeYearMethod · 0.95
testPositiveYearMethod · 0.95
testMonthBoundariesMethod · 0.95

Calls 2

valueOfMethod · 0.95
failMethod · 0.80

Tested by

no test coverage detected