コード例 #1
0
  @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");
  }
コード例 #2
0
 @Test
 public void testCanSetName() {
   final ExampleJavaEnricher enricher = new ExampleJavaEnricher(MutableMap.of("name", "myName"));
   entity.addEnricher(enricher);
   assertEquals(enricher.getName(), "myName");
 }