The following document contains the results of PMD's CPD 5.2.3.
| File | Line |
|---|---|
| de/javanarior/vo/types/FileTimeWrapperTest.java | 47 |
| de/javanarior/vo/types/JodaDateTimeWrapperTest.java | 41 |
| de/javanarior/vo/types/JodaLocalDateTimeWrapperTest.java | 45 |
| de/javanarior/vo/types/JodaLocalDateWrapperTest.java | 41 |
| de/javanarior/vo/types/JodaLocalTimeWrapperTest.java | 41 |
new FileTimeValue(null);
fail("Null should not be allowed as value.");
} catch (IllegalArgumentException exception) {
assertNotNull(exception.getMessage());
assertFalse(exception.getMessage().isEmpty());
}
}
public void testEqualsForDifferentTypes() {
assertFalse(ONE.equals(OTHER_TYPE_ONE));
assertFalse(OTHER_TYPE_ONE.equals(ONE));
}
public void testAsString() {
assertEquals(ONE.asString(), ONE_VALUE.toString());
assertEquals(ONE_VALUE.toString(), ONE.asString());
}
public void testCompareTo() {
assertEquals(ONE.compareTo(ANOTHER_ONE), 0);
assertTrue(ONE.compareTo(TWO) < 0);
assertTrue(TWO.compareTo(ONE) > 0);
}
public void testGetValue() {
assertEquals(ONE.getValue(), ONE_VALUE);
}
} | |