Remove Toml.serialize().

This commit is contained in:
Jonathan Wood 2015-06-27 13:11:52 -07:00
parent c076099ddd
commit acc952a572
2 changed files with 0 additions and 22 deletions

View file

@ -359,15 +359,6 @@ public class Toml {
}
}
/**
* Serializes the values of this Toml instance into TOML.
*
* @return a string containing the TOML representation of this Toml instance.
*/
public String serialize() {
return ValueWriters.write(values);
}
/**
* Serializes an Object into TOML.
*

View file

@ -253,12 +253,6 @@ public class ValueWriterTest {
assertEquals(expected, Toml.write(child));
}
@Test
public void should_write_empty_toml_to_empty_string() {
Toml toml = new Toml();
assertEquals("", toml.serialize());
}
@Test
public void should_write_strings_to_toml_utf8() throws UnsupportedEncodingException {
String input = " é foo € \b \t \n \f \r \" \\ ";
@ -283,11 +277,4 @@ public class ValueWriterTest {
"\"e/f\" = 4\n";
assertEquals(expected, Toml.write(aMap));
}
@Test
public void should_write_from_toml() {
String tomlString = "a = 1\n";
Toml toml = new Toml().parse(tomlString);
assertEquals(tomlString, toml.serialize());
}
}