add multi-layer recursion and path-relative recursion tests

This commit is contained in:
Jonathan Shook 2024-07-10 13:33:30 -05:00
parent 29e1dbe122
commit 60bf8bd631
3 changed files with 13 additions and 1 deletions

View File

@ -80,8 +80,15 @@ class NBAtFileTest {
}
@Test
public void testAtfileRecursion() {
public void testAtfileSimpleRecursion() {
LinkedList<String> strings = NBAtFile.includeAt("@src/test/resources/atfiles/simple_recursion.yaml");
assertThat(strings).containsExactly("arg1","arg1","arg2","arg3","arg3");
}
@Test
public void testAtfileDoubleRecursion() {
LinkedList<String> strings = NBAtFile.includeAt("@src/test/resources/atfiles/double_recursion.yaml");
assertThat(strings).containsExactly("arg1","arg1","arg1","arg2","arg3","arg3","arg3","deepval");
}
}

View File

@ -0,0 +1,4 @@
- arg1
- include:${DIR}/simple_recursion.yaml
- arg3
- include:${DIR}/deeper/deeper_recursion.yaml