Revert "mreged changes from metadata"

This reverts commit 5f89039177, reversing
changes made to d4ba7f906a.
This commit is contained in:
ken.lj 2019-11-15 13:22:35 +08:00
parent 5f89039177
commit 8d7e483bbd
4 changed files with 19 additions and 19 deletions

View File

@ -58,11 +58,11 @@ public class CollectionTypeDefinitionBuilderTest extends AbstractAnnotationProce
protected void beforeEach() {
builder = new CollectionTypeDefinitionBuilder();
TypeElement testType = getType(CollectionTypeModel.class);
stringsField = findField(testType, "strings");
colorsField = findField(testType, "colors");
primitiveTypeModelsField = findField(testType, "primitiveTypeModels");
modelsField = findField(testType, "models");
modelArraysField = findField(testType, "modelArrays");
stringsField = findField( testType, "strings");
colorsField = findField( testType, "colors");
primitiveTypeModelsField = findField( testType, "primitiveTypeModels");
modelsField = findField( testType, "models");
modelArraysField = findField( testType, "modelArrays");
assertEquals("strings", stringsField.getSimpleName().toString());
assertEquals("colors", colorsField.getSimpleName().toString());

View File

@ -61,11 +61,11 @@ public class MapTypeDefinitionBuilderTest extends AbstractAnnotationProcessingTe
protected void beforeEach() {
builder = new MapTypeDefinitionBuilder();
TypeElement testType = getType(MapTypeModel.class);
stringsField = findField(testType, "strings");
colorsField = findField(testType, "colors");
primitiveTypeModelsField = findField(testType, "primitiveTypeModels");
modelsField = findField(testType, "models");
modelArraysField = findField(testType, "modelArrays");
stringsField = findField( testType, "strings");
colorsField = findField( testType, "colors");
primitiveTypeModelsField = findField( testType, "primitiveTypeModels");
modelsField = findField( testType, "models");
modelArraysField = findField( testType, "modelArrays");
assertEquals("strings", stringsField.getSimpleName().toString());
assertEquals("colors", colorsField.getSimpleName().toString());

View File

@ -69,14 +69,14 @@ public class PrimitiveTypeDefinitionBuilderTest extends AbstractAnnotationProces
TypeElement testType = getType(PrimitiveTypeModel.class);
zField = findField(testType, "z");
bField = findField(testType, "b");
cField = findField(testType, "c");
sField = findField(testType, "s");
iField = findField(testType, "i");
lField = findField(testType, "l");
fField = findField(testType, "f");
dField = findField(testType, "d");
zField = findField( testType, "z");
bField = findField( testType, "b");
cField = findField( testType, "c");
sField = findField( testType, "s");
iField = findField( testType, "i");
lField = findField( testType, "l");
fField = findField( testType, "f");
dField = findField( testType, "d");
assertEquals("boolean", zField.asType().toString());
assertEquals("byte", bField.asType().toString());

View File

@ -125,7 +125,7 @@ public class ServiceAnnotationUtilsTest extends AbstractAnnotationProcessingTest
@Test
public void testGetGroup() {
TypeElement type = getType(TestServiceImpl.class);
assertEquals("test", getGroup(getAnnotation(type)));
assertEquals("test",getGroup(getAnnotation(type)));
type = getType(GenericTestService.class);
assertEquals("generic", getGroup(getAnnotation(type)));