diff options
author | Harald Musum <musum@yahooinc.com> | 2023-09-07 15:32:37 +0200 |
---|---|---|
committer | Harald Musum <musum@yahooinc.com> | 2023-09-07 15:32:37 +0200 |
commit | 89adf4d827630ae6acbef81dd36e2a4019cc99b6 (patch) | |
tree | 9b4c0ef874312bfa7fecb6f8a5436d7ef293cc67 /configgen | |
parent | cac205f35b56d0bd584013b79b88a6635dee5ab4 (diff) |
Rewrite tests to have better names and test path and optional path
Diffstat (limited to 'configgen')
-rw-r--r-- | configgen/src/test/java/com/yahoo/config/codegen/DefLineParsingTest.java | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/configgen/src/test/java/com/yahoo/config/codegen/DefLineParsingTest.java b/configgen/src/test/java/com/yahoo/config/codegen/DefLineParsingTest.java index bb6b8eb64b4..bd71fe1b064 100644 --- a/configgen/src/test/java/com/yahoo/config/codegen/DefLineParsingTest.java +++ b/configgen/src/test/java/com/yahoo/config/codegen/DefLineParsingTest.java @@ -248,23 +248,23 @@ public class DefLineParsingTest { } @Test - void testParseOptionalPathWithDefault() { - DefLine l = new DefLine("pathWithDef path optional"); + void testParsePath() { + DefLine l = new DefLine("somePath path"); - assertEquals("pathWithDef", l.getName()); + assertEquals("somePath", l.getName()); assertNull(l.getDefault()); - assertTrue(l.isOptional()); - assertEquals("optionalPath", l.getType().getName()); + assertFalse(l.isOptional()); + assertEquals("path", l.getType().getName()); } @Test - void testParsPathWithDefault() { - DefLine l = new DefLine("pathWithDef path"); + void testParseOptionalPath() { + DefLine l = new DefLine("anOptionalPath path optional"); - assertEquals("pathWithDef", l.getName()); + assertEquals("anOptionalPath", l.getName()); assertNull(l.getDefault()); - assertFalse(l.isOptional()); - assertEquals("path", l.getType().getName()); + assertTrue(l.isOptional()); + assertEquals("optionalPath", l.getType().getName()); } } |