We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4301caa commit c442ffeCopy full SHA for c442ffe
imagetool/src/test/java/com/oracle/weblogic/imagetool/aru/VersionTest.java
@@ -42,6 +42,11 @@ void integerComparison() {
42
compareDifferingVersions("13.9.4.2.9", "13.9.4.2.10");
43
}
44
45
+ @Test
46
+ void nullVersion() {
47
+ compareDifferingVersions(null, "1.2.3");
48
+ }
49
+
50
@Test
51
void nonNumericVersion() {
52
assertThrows(NumberFormatException.class, () -> new Version("1.A.4"));
@@ -63,6 +68,7 @@ void equalObjects() {
63
68
assertEquals(a, b);
64
69
assertEquals(b, a);
65
70
assertEquals(a, a);
71
+ assertNotEquals(a, null);
66
72
67
73
74
0 commit comments