@Test public void testCanSetConfig() { final ExampleJavaEnricher enricher = new ExampleJavaEnricher(MutableMap.of("displayName", "myName", "myConfig1", "myVal1")); entity.addEnricher(enricher); assertEquals(enricher.getName(), "myName"); assertEquals(enricher.myConfig1, "myVal1"); }
@Test public void testCanSetName() { final ExampleJavaEnricher enricher = new ExampleJavaEnricher(MutableMap.of("name", "myName")); entity.addEnricher(enricher); assertEquals(enricher.getName(), "myName"); }