@Test(expected = IllegalStateException.class) public void checkLength() throws Exception { StringBuilder builder = new StringBuilder(); for (int i = 0; i <= 200; i++) { builder.append("a"); } AbstractConfig.checkLength("hello", builder.toString()); }
protected static void checkLength(String property, String value) { checkProperty(property, value, MAX_LENGTH, null); }
AbstractConfig implements Serializable { protected static void checkLength(String property, String value) { checkProperty(property, value, MAX_LENGTH, null); } }
AbstractConfig implements Serializable { protected static void checkLength(String property, String value) { checkProperty(property, value, MAX_LENGTH, null); }  }
AbstractConfig implements Serializable { protected static void checkLength(String property, String value) { checkProperty(property, value, MAX_LENGTH, null); }  @Parameter(excluded = true) String getId(); void setId(String id); @Override String toString(); }
AbstractConfig implements Serializable { protected static void checkLength(String property, String value) { checkProperty(property, value, MAX_LENGTH, null); }  @Parameter(excluded = true) String getId(); void setId(String id); @Override String toString();  }