Skip to content

Instantly share code, notes, and snippets.

/ApplicationTest.java Secret

Created Jul 9, 2015
Embed
What would you like to do?
@RunWith(CdiJunit4TestRunner.class)
public class ApplicationTest {
...
@Test
public void getVersion() {
assertEquals(1, application.getVersion().getMajor());
assertEquals(0, application.getVersion().getMinor());
assertEquals(0, application.getVersion().getBugfix());
}
@Test
public void getProperties() {
assertEquals(2, application.getProperties().size());
assertTrue(application.getProperties().containsKey("application.name"));
assertTrue(application.getProperties().containsKey("application.version"));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment