mirror of
https://github.com/plexusorg/toml4j.git
synced 2025-02-18 22:14:30 +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()));
|
assertEquals("[b.c]\nanInt = 1\n", new TomlWriter().write(new A()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
class Base {
|
||||||
public void should_write_classes_with_inheritance() {
|
|
||||||
class Parent {
|
|
||||||
protected int anInt = 2;
|
protected int anInt = 2;
|
||||||
}
|
}
|
||||||
class Child extends Parent {
|
class Impl extends Base {
|
||||||
boolean aBoolean = true;
|
boolean aBoolean = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
Child child = new Child();
|
@Test
|
||||||
|
public void should_write_classes_with_inheritance() {
|
||||||
|
Impl impl = new Impl();
|
||||||
String expected = "aBoolean = true\nanInt = 2\n";
|
String expected = "aBoolean = true\nanInt = 2\n";
|
||||||
assertEquals(expected, new TomlWriter().write(child));
|
assertEquals(expected, new TomlWriter().write(impl));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
Loading…
Reference in a new issue