Improved a test's assertion semantics

This commit is contained in:
moandji.ezana 2015-04-29 21:36:44 +02:00
parent a342b1fef6
commit a210896477

View file

@ -4,7 +4,6 @@ import static org.hamcrest.Matchers.contains;
import static org.hamcrest.Matchers.hasSize; import static org.hamcrest.Matchers.hasSize;
import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertThat; import static org.junit.Assert.assertThat;
import static org.junit.Assert.assertTrue; import static org.junit.Assert.assertTrue;
@ -27,7 +26,7 @@ public class InlineTableTest {
public void should_read_empty_inline_table() throws Exception { public void should_read_empty_inline_table() throws Exception {
Toml toml = new Toml().parse("key = {}"); Toml toml = new Toml().parse("key = {}");
assertNotNull(toml.getTable("key")); assertTrue(toml.getTable("key").isEmpty());
} }
@Test @Test