use of org.nzbhydra.mapping.SemanticVersion in project nzbhydra2 by theotherp.
the class UpdateManagerTest method shouldGetChangesSince.
@Test
public void shouldGetChangesSince() throws Exception {
testee.latestVersion = new SemanticVersion(2, 0, 0);
List<ChangelogVersionEntry> changesSince = testee.getChangesSinceCurrentVersion();
assertEquals(1, changesSince.size());
// Skip 1.0.0 because it's older and skip 3.0.0 because it's not yet released
assertEquals("2.0.0", changesSince.get(0).getVersion());
}
Aggregations