@Test public void testGlobalInclusionRule() { TypeSpec.Builder builder = TypeSpec.classBuilder("Test"); TypeModel model = mock(TypeModel.class); when(model.getInclusion()).thenReturn(InclusionType.NON_NULL); new GsonStyle().processGlobalInclusionRule(builder, model); TypeSpec typeSpec = builder.build(); assertEquals("Test", typeSpec.name); assertEquals(0, typeSpec.annotations.size()); }
@Override public void processGlobalInclusionRule(TypeSpec.Builder typeSpec, TypeModel typeModel) { }
GsonStyle extends AnnotatorStyle { @Override public void processGlobalInclusionRule(TypeSpec.Builder typeSpec, TypeModel typeModel) { } }
GsonStyle extends AnnotatorStyle { @Override public void processGlobalInclusionRule(TypeSpec.Builder typeSpec, TypeModel typeModel) { }  }
GsonStyle extends AnnotatorStyle { @Override public void processGlobalInclusionRule(TypeSpec.Builder typeSpec, TypeModel typeModel) { }  @Override void processNamedAsRule(FieldSpec.Builder fieldSpec, FieldModel fieldModel); @Override void processInclusionRule(FieldSpec.Builder fieldSpec, FieldModel fieldModel); @Override void processGlobalInclusionRule(TypeSpec.Builder typeSpec, TypeModel typeModel); @Override void processSubTypeRule(TypeSpec.Builder typeSpec, TypeModel typeModel); @Override void processIgnoreUnknownsRule(TypeSpec.Builder typeSpec, TypeModel typeModel); @Override void processPropertyOrderRule(TypeSpec.Builder typeSpec, TypeModel typeModel); @Override void processConstructorOrderRule(MethodSpec.Builder methodSpec, TypeModel typeModel, List<String> constructorFields); }
GsonStyle extends AnnotatorStyle { @Override public void processGlobalInclusionRule(TypeSpec.Builder typeSpec, TypeModel typeModel) { }  @Override void processNamedAsRule(FieldSpec.Builder fieldSpec, FieldModel fieldModel); @Override void processInclusionRule(FieldSpec.Builder fieldSpec, FieldModel fieldModel); @Override void processGlobalInclusionRule(TypeSpec.Builder typeSpec, TypeModel typeModel); @Override void processSubTypeRule(TypeSpec.Builder typeSpec, TypeModel typeModel); @Override void processIgnoreUnknownsRule(TypeSpec.Builder typeSpec, TypeModel typeModel); @Override void processPropertyOrderRule(TypeSpec.Builder typeSpec, TypeModel typeModel); @Override void processConstructorOrderRule(MethodSpec.Builder methodSpec, TypeModel typeModel, List<String> constructorFields);  }