@Test public void checkGetVariable() { Name simpleName = mock(Name.class); when(simpleName.toString()).thenReturn("Test"); TypeElement element = mock(TypeElement.class); when(element.getSimpleName()).thenReturn(simpleName); MapperModel object = new MapperModel(element); ASSERT.that("testMapper").isEqualTo(object.getVariable()); }
@Override public String getVariable() { String mapperVariable = element.getSimpleName().toString(); return mapperVariable.substring(0, 1).toLowerCase(Locale.US) + mapperVariable.substring(1) + "Mapper"; }
MapperModel implements EntityData { @Override public String getVariable() { String mapperVariable = element.getSimpleName().toString(); return mapperVariable.substring(0, 1).toLowerCase(Locale.US) + mapperVariable.substring(1) + "Mapper"; } }
MapperModel implements EntityData { @Override public String getVariable() { String mapperVariable = element.getSimpleName().toString(); return mapperVariable.substring(0, 1).toLowerCase(Locale.US) + mapperVariable.substring(1) + "Mapper"; } MapperModel(TypeElement element); }
MapperModel implements EntityData { @Override public String getVariable() { String mapperVariable = element.getSimpleName().toString(); return mapperVariable.substring(0, 1).toLowerCase(Locale.US) + mapperVariable.substring(1) + "Mapper"; } MapperModel(TypeElement element); @Override String getName(); @Override String getFullQualifiedName(); @Override String getPackage(); @Override String getVariable(); }
MapperModel implements EntityData { @Override public String getVariable() { String mapperVariable = element.getSimpleName().toString(); return mapperVariable.substring(0, 1).toLowerCase(Locale.US) + mapperVariable.substring(1) + "Mapper"; } MapperModel(TypeElement element); @Override String getName(); @Override String getFullQualifiedName(); @Override String getPackage(); @Override String getVariable();  }