@Test public void checkHasAnnotationValue_false() { Entity annotation = mock(Entity.class); when(annotation.value()).thenReturn(Entity.DEFAULT_VALE); TypeElement element = mock(TypeElement.class); when(element.getAnnotation(Matchers.<Class<Entity>>anyObject())).thenReturn(annotation); EntityModel entity = new EntityModel(element); ASSERT.that(entity.hasAnnotationValue()).isFalse(); }
public boolean hasAnnotationValue() { return !element.getAnnotation(Entity.class).value().equals(Entity.DEFAULT_VALE); }
EntityModel implements EntityData { public boolean hasAnnotationValue() { return !element.getAnnotation(Entity.class).value().equals(Entity.DEFAULT_VALE); } }
EntityModel implements EntityData { public boolean hasAnnotationValue() { return !element.getAnnotation(Entity.class).value().equals(Entity.DEFAULT_VALE); } EntityModel(TypeElement element); }
EntityModel implements EntityData { public boolean hasAnnotationValue() { return !element.getAnnotation(Entity.class).value().equals(Entity.DEFAULT_VALE); } 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 { public boolean hasAnnotationValue() { return !element.getAnnotation(Entity.class).value().equals(Entity.DEFAULT_VALE); } 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();  }