@Test public void testIsLunaOrOlder() throws Exception { Version lunaSR2Version = Version.parseVersion("3.6.102.v20150204-1316"); assertTrue(isLunaOrOlder(lunaSR2Version)); Version lunaSR0Version = Version.parseVersion("3.6.100.v20140603-1326"); assertTrue(isLunaOrOlder(lunaSR0Version)); Version marsSR0Version = Version.parseVersion("3.6.200.v20150602-1417"); assertFalse(isLunaOrOlder(marsSR0Version)); Version marsLiteralQualifierVersion = Version.parseVersion("3.6.200.qualifier"); assertFalse(isLunaOrOlder(marsLiteralQualifierVersion)); }
static boolean isLunaOrOlder(Version featureVersion) { return featureVersion.compareTo(LUNA_SR2_EXECUTABLE_FEATURE_VERSION) <= 0; }
PublishProductMojo extends AbstractPublishMojo { static boolean isLunaOrOlder(Version featureVersion) { return featureVersion.compareTo(LUNA_SR2_EXECUTABLE_FEATURE_VERSION) <= 0; } }
PublishProductMojo extends AbstractPublishMojo { static boolean isLunaOrOlder(Version featureVersion) { return featureVersion.compareTo(LUNA_SR2_EXECUTABLE_FEATURE_VERSION) <= 0; }  }
PublishProductMojo extends AbstractPublishMojo { static boolean isLunaOrOlder(Version featureVersion) { return featureVersion.compareTo(LUNA_SR2_EXECUTABLE_FEATURE_VERSION) <= 0; }   }
PublishProductMojo extends AbstractPublishMojo { static boolean isLunaOrOlder(Version featureVersion) { return featureVersion.compareTo(LUNA_SR2_EXECUTABLE_FEATURE_VERSION) <= 0; }    }