@Test public void checkGetName() { Name simpleName = mock(Name.class); when(simpleName.toString()).thenReturn("test"); VariableElement element = mock(VariableElement.class); when(element.getSimpleName()).thenReturn(simpleName); FieldModel model = new FieldModel(element, null); ASSERT.that("test").isEqualTo(model.getName()); }
public String getName() { return element.getSimpleName().toString(); }
FieldModel { public String getName() { return element.getSimpleName().toString(); } }
FieldModel { public String getName() { return element.getSimpleName().toString(); } FieldModel(VariableElement element, EntityModel dependency); }
FieldModel { public String getName() { return element.getSimpleName().toString(); } FieldModel(VariableElement element, EntityModel dependency); static FieldKind getKind(Helper helper, VariableElement element); VariableElement getElement(); String getName(); TypeModel getType(); String getPropertyKey(); EntityModel getDependency(); @Override boolean equals(Object o); @Override int hashCode(); FieldKind getKind(Helper helper); }
FieldModel { public String getName() { return element.getSimpleName().toString(); } FieldModel(VariableElement element, EntityModel dependency); static FieldKind getKind(Helper helper, VariableElement element); VariableElement getElement(); String getName(); TypeModel getType(); String getPropertyKey(); EntityModel getDependency(); @Override boolean equals(Object o); @Override int hashCode(); FieldKind getKind(Helper helper);  }