summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configgen/src/test/java/com/yahoo/config/codegen/DefLineParsingTest.java20
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());
}
}