### Question:
Release { public static boolean isOlderOrEqual( final String version ) throws IllegalArgumentException { if( version == null ) { return true; } final String[] versionComponents = StringUtils.split( version, VERSION_SEPARATORS ); final int reqVersion = versionComponents.length > 0 ? Integer.parseInt( versionComponents[0] ) : Release.VERSION; final int reqRevision = versionComponents.length > 1 ? Integer.parseInt( versionComponents[1] ) : Release.REVISION; final int reqMinorRevision = versionComponents.length > 2 ? Integer.parseInt( versionComponents[2] ) : Release.MINORREVISION; if( VERSION == reqVersion ) { if( REVISION == reqRevision ) { if( MINORREVISION == reqMinorRevision ) { return true; } return MINORREVISION < reqMinorRevision; } return REVISION < reqRevision; } return VERSION < reqVersion; } private  Release(); static String getVersionString(); static boolean isNewerOrEqual( final String version ); static boolean isOlderOrEqual( final String version ); static void main( final String[] argv ); static final String APPNAME; static final int VERSION; static final int REVISION; static final int MINORREVISION; static final String BUILD; static final String VERSTR; }### Answer:
@Test public void testOlder1() { Assertions.assertFalse( Release.isOlderOrEqual( "1.0.100" ) ); }
@Test public void testOlder2() { Assertions.assertFalse( Release.isOlderOrEqual( "2.0.0-alpha" ) ); }
@Test public void testOlder3() { Assertions.assertTrue( Release.isOlderOrEqual( "10.0.0" ) ); }
@Test public void testOlder4() { Assertions.assertTrue( Release.isOlderOrEqual( Release.VERSTR ) ); }
@Test public void testOlder5() { final String rel = Release.VERSION + "." + Release.REVISION + "." + ( Release.MINORREVISION + 1 ) + "-cvs"; Assertions.assertTrue( Release.isOlderOrEqual( rel ) ); }
@Test public void testOlder6() { final String rel; if( Release.MINORREVISION != 0 ) { rel = Release.VERSION + "." + Release.REVISION + "." + ( Release.MINORREVISION - 1 ) + "-cvs"; } else { rel = Release.VERSION + "." + ( Release.REVISION - 1 ) + ".9999" + "-cvs"; } Assertions.assertFalse( Release.isOlderOrEqual( rel ) ); }
@Test public void testOlder7() { final String rel = Release.VERSION + "." + Release.REVISION; Assertions.assertTrue( Release.isOlderOrEqual( rel ) ); }
@Test public void testOlder8() { final String rel = Release.VERSION + ""; Assertions.assertTrue( Release.isOlderOrEqual( rel ) ); }
@Test public void testOlder9() { final String rel = ""; Assertions.assertTrue( Release.isOlderOrEqual( rel ) ); }