31323334353637
} @Test public void returnsLatestUpdate() throws Exception { Update latest = lookup.findLatestUpdate(); assertThat(latest.isUpdateFrom(new NumericVersion(5, 0, 3)), is(UpdateAvailability.Available)); }
37383940414243
} @Test public void returnsLatestUpdate2() throws Exception { Update latest = lookup.findLatestUpdate(); assertThat(latest.isUpdateFrom(new NumericVersion(5, 0, 4)), is(UpdateAvailability.NotAvailable)); }
43444546474849
} @Test public void returnsExpectedUpdateVersion() throws Exception { Update latest = lookup.findLatestUpdate(); assertThat(latest.getVersion(), is(sameVersionAs(new NumericVersion(5, 0, 4)))); }