Code example for Excluder

Methods: excludeField

0
    assertFalse(excluder.excludeClass(MockObject.class, false));
  } 
 
  public void testSkipNonAnnotatedFields() throws Exception { 
    Field f = createFieldAttributes("hiddenField");
    assertTrue(excluder.excludeField(f, true));
    assertTrue(excluder.excludeField(f, false));
  } 
 
  public void testSkipExplicitlySkippedFields() throws Exception { 
    Field f = createFieldAttributes("explicitlyHiddenField");
    assertTrue(excluder.excludeField(f, true));
    assertTrue(excluder.excludeField(f, false));
  } 
 
  public void testNeverSkipExposedAnnotatedFields() throws Exception { 
    Field f = createFieldAttributes("exposedField");
    assertFalse(excluder.excludeField(f, true));
    assertFalse(excluder.excludeField(f, false));
  } 
Contextual code suggestions in your IDE  Get Codota for Java