Level { public String getName() { return name; } Level(String name, int value); String getName(); int intValue(); static final Level OFF; static final Level SEVERE; static final Level WARNING; static final Level INFO; static final Level CONFIG; static final Level FINE; static final Level FINER; static final Level FINEST; static final Level ALL; }
@Test public void testGetName() { assertThat(Level.WARNING.getName()).isEqualTo("WARNING"); }