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 cd0f6d3 commit 25bae43Copy full SHA for 25bae43
1 file changed
src/test/java/org/apache/maven/plugins/gpg/GpgVersionTest.java
@@ -21,6 +21,7 @@
21
22
import org.junit.Test;
23
24
+import static org.junit.Assert.assertFalse;
25
import static org.junit.Assert.assertTrue;
26
27
/**
@@ -38,4 +39,13 @@ public void test()
38
39
.isAtLeast( GpgVersion.parse( "2.0.26" ) ) );
40
}
41
42
+ @Test
43
+ public void testOpposite()
44
+ {
45
+ assertFalse( GpgVersion.parse( "gpg (GnuPG) 2.2.1" ).isBefore( GpgVersion.parse( "gpg (GnuPG) 2.2.1" ) ) );
46
+ assertFalse( GpgVersion.parse( "gpg (GnuPG) 2.2.1" ).isBefore( GpgVersion.parse( "2.1" ) ) );
47
+ assertFalse( GpgVersion.parse( "gpg (GnuPG/MacGPG2) 2.2.10" ).isBefore( GpgVersion.parse( "2.2.10" ) ) );
48
+ assertFalse( GpgVersion.parse( "gpg (GnuPG) 2.0.26 (Gpg4win 2.2.3)" )
49
+ .isBefore( GpgVersion.parse( "2.0.26" ) ) );
50
+ }
51
0 commit comments