mirror of
https://github.com/plexusorg/toml4j.git
synced 2024-12-29 11:42:15 +00:00
Remove Toml.serialize().
This commit is contained in:
parent
c076099ddd
commit
acc952a572
2 changed files with 0 additions and 22 deletions
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue