test classpath and loader fixes

This commit is contained in:
Jonathan Shook 2022-07-13 02:16:52 -05:00
parent 540abeee00
commit 50e617233f
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ public class NamingFolio {
private final Map<String, Labeled> graph = new LinkedHashMap<>();
private final ElementNamer namer;
public final static String DEFAULT_NAMER_SPEC = "[COLUMN][-TYPEDEF]_[TABLE][-KEYSPACE]";
public final static String DEFAULT_NAMER_SPEC = "[COLUMN]-[TYPEDEF-][TABLE][-KEYSPACE]";
public NamingFolio(String namerspec) {
this.namer = new ElementNamer(

View File

@ -26,7 +26,7 @@ public class NamingFolioTest {
@Test
public void testBindingFolio() {
NamingFolio folio = new NamingFolio();
NamingFolio folio = new NamingFolio("[OPTYPE-][COLUMN-][TYPEDEF-][TABLE!]-[KEYSPACE]");
folio.addFieldRef(Map.of("column","c1","typedef","t1","table","tb1","keyspace","ks1"));
assertThat(folio.getNames()).containsExactly("c1-t1-tb1-ks1");
folio.addFieldRef("c2","t2","tb2","ks2");