Rename TomlParseTest to TomlReadTest

This commit is contained in:
Moandji Ezana 2016-07-12 12:18:17 +02:00
parent 40f866f5cd
commit e27ba3e8fb

View file

@ -13,17 +13,17 @@ import java.io.StringReader;
import org.junit.Test;
public class TomlParseTest {
public class TomlReadTest {
@Test
public void should_parse_input_stream() throws Exception {
public void should_read_input_stream() throws Exception {
Toml toml = new Toml().read(getClass().getResourceAsStream("should_load_from_file.toml"));
assertEquals("value", toml.getString("key"));
}
@Test
public void should_parse_reader() throws Exception {
public void should_read_reader() throws Exception {
Toml toml = new Toml().read(new StringReader("key=1"));
assertEquals(1, toml.getLong("key").intValue());