Exemplo n.º 1
0
 @Test
 public void negativeCheckForUpdates() {
   DefaultUpdateService victim = new DefaultUpdateService("ChuckNorris");
   assertEquals("", victim.getLatestVersion());
 }
Exemplo n.º 2
0
 @Test
 public void pasitiveCheckForUpdates() {
   DefaultUpdateService victim = new DefaultUpdateService("{\"currentVersion\" : \"3.0.0\"}");
   assertEquals("3.0.0", victim.getLatestVersion());
 }