EvaluatorComponent extends AbstractComponent { public EvaluatorData getData() { return getModel().getData(); }  EvaluatorModelRole getModel(); EvaluatorData getData(); String getDisplay();  }
@Test public void testComponent() { EvaluatorComponent component = new EvaluatorComponent(); Assert.assertFalse(component.isLeaf()); EvaluatorData data = component.getData(); Assert.assertNotNull(data); Assert.assertNull(data.getCode()); final String code = "code"; data.setCode(code); Assert.assertEquals(data.getCode(), code); Assert.assertNull(data.getLanguage()); final String language = "lang"; data.setLanguage(language); Assert.assertEquals(data.getLanguage(), language); Assert.assertNull(data.getDescription()); final String description = "desc"; data.setDescription(description); Assert.assertEquals(data.getDescription(), description); MultiComponent multiComponent = new MultiComponent(); Assert.assertFalse(multiComponent.isLeaf()); MultiData data1 = multiComponent.getData(); Assert.assertNotNull(data1); Assert.assertNull(data1.getCode()); final String code2 = "code"; data1.setCode(code2); Assert.assertEquals(data1.getCode(), code2); Assert.assertNull(data1.getLanguage()); final String language2 = "lang"; data1.setLanguage(language2); Assert.assertEquals(data1.getLanguage(), language2); Assert.assertNull(data1.getDescription()); final String description2 = "desc"; data1.setDescription(description2); Assert.assertEquals(data1.getDescription(), description2); }