@Test public void checkGetName() { Name simpleName = mock(Name.class); when(simpleName.toString()).thenReturn("Test"); TypeElement element = mock(TypeElement.class); when(element.getSimpleName()).thenReturn(simpleName); EntityModel entity = new EntityModel(element); ASSERT.that("Test").isEqualTo(entity.getName()); }
@Override public String getName() { return element.getSimpleName().toString(); }
EntityModel implements EntityData { @Override public String getName() { return element.getSimpleName().toString(); } }
EntityModel implements EntityData { @Override public String getName() { return element.getSimpleName().toString(); } EntityModel(TypeElement element); }
EntityModel implements EntityData { @Override public String getName() { return element.getSimpleName().toString(); } EntityModel(TypeElement element); void fillFieldsList(Helper helper, List<EntityModel> models); Element getElement(); @Override String getName(); @Override String getFullQualifiedName(); @Override String getPackage(); @Override String getVariable(); MapperModel getMapper(); boolean hasAnnotationValue(); String getAnnotationValue(); List<FieldModel> getFields(); List<EntityModel> getDependencies(); }
EntityModel implements EntityData { @Override public String getName() { return element.getSimpleName().toString(); } EntityModel(TypeElement element); void fillFieldsList(Helper helper, List<EntityModel> models); Element getElement(); @Override String getName(); @Override String getFullQualifiedName(); @Override String getPackage(); @Override String getVariable(); MapperModel getMapper(); boolean hasAnnotationValue(); String getAnnotationValue(); List<FieldModel> getFields(); List<EntityModel> getDependencies();  }