default configuration includes configurationId

This commit is contained in:
Claudio Atzori 2019-02-18 09:07:23 +01:00
parent ccb7e83196
commit 470c4b0f20
2 changed files with 13 additions and 4 deletions

View File

@ -10,7 +10,8 @@
"groupMaxSize" : "$groupMaxSize$",
"slidingWindowSize" : "$slidingWindowSize$",
"rootBuilder" : [ $rootBuilder:{"$it$"};separator=", "$ ],
"includeChildren" : "$includeChildren$"
"includeChildren" : "$includeChildren$",
"configurationId" : "$configurationId$"
},
"pace" : {
"clustering" : [

View File

@ -48,12 +48,20 @@ public class ConfigTest extends AbstractPaceTest {
@Test
public void testLoadDefaults() throws IOException {
final String entityType = "organization";
final String configurationId = "dedup-organization-simple";
final Map<String, String> config = Maps.newHashMap();
config.put("entityType", "organization");
config.put("configurationId", "dedup-organization-simple");
config.put("entityType", entityType);
config.put("configurationId", configurationId);
final DedupConfig dedupConf = DedupConfig.loadDefault(config);
System.out.println("dedupConf = " + dedupConf);
//System.out.println("dedupConf = " + dedupConf);
assertNotNull(dedupConf);
assertNotNull(dedupConf.getWf());
assertEquals(dedupConf.getWf().getEntityType(), entityType);
assertEquals(dedupConf.getWf().getConfigurationId(), configurationId);
}