mirror of
https://github.com/plexusorg/toml4j.git
synced 2025-02-11 03:30:00 +00:00
Tweak test for openjdk-6.
This commit is contained in:
parent
99c48231c2
commit
a879385f4c
1 changed files with 10 additions and 10 deletions
|
@ -237,18 +237,18 @@ public class ValueWriterTest {
|
|||
assertEquals("[b.c]\nanInt = 1\n", new TomlWriter().write(new A()));
|
||||
}
|
||||
|
||||
class Base {
|
||||
protected int anInt = 2;
|
||||
}
|
||||
class Impl extends Base {
|
||||
boolean aBoolean = true;
|
||||
}
|
||||
|
||||
@Test
|
||||
public void should_write_classes_with_inheritance() {
|
||||
class Parent {
|
||||
protected int anInt = 2;
|
||||
}
|
||||
class Child extends Parent {
|
||||
boolean aBoolean = true;
|
||||
}
|
||||
|
||||
Child child = new Child();
|
||||
Impl impl = new Impl();
|
||||
String expected = "aBoolean = true\nanInt = 2\n";
|
||||
assertEquals(expected, new TomlWriter().write(child));
|
||||
assertEquals(expected, new TomlWriter().write(impl));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -316,4 +316,4 @@ public class ValueWriterTest {
|
|||
|
||||
return w.toString();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue