use of com.archimatetool.model.IBusinessActor in project archi by archimatetool.
the class ElementsDataSourceTests method testGetFieldValue.
@Test
public void testGetFieldValue() throws JRException {
ds.next();
JRField field = mock(JRField.class);
when(field.getName()).thenReturn("this");
Object object = ds.getFieldValue(field);
assertTrue(object instanceof IBusinessActor);
assertEquals("275", ((IBusinessActor) object).getId());
when(field.getName()).thenReturn("name");
assertEquals(((IBusinessActor) object).getName(), ds.getFieldValue(field));
}
use of com.archimatetool.model.IBusinessActor in project archi by archimatetool.
the class FieldDataFactoryTests method testGetFieldValue_ID.
@Test
public void testGetFieldValue_ID() {
IBusinessActor element = IArchimateFactory.eINSTANCE.createBusinessActor();
element.setId("1234");
Object o = FieldDataFactory.getFieldValue(element, "id");
assertEquals("1234", o);
}
Aggregations