@Test public void testNameLength() { String name = "aNameThatIsShort Enough"; assertEquals(name, Page.Name.valueOf(name).toString()); StringBuffer outputBuffer = new StringBuffer(); for (int i = 0; i < 257; i++) { outputBuffer.append("a"); } name = outputBuffer.toString(); try { Page.Name.valueOf(name); fail(); } catch (InvalidIdentifierException e) { } }
@Override public String toString() { return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE); }
Page { @Override public String toString() { return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE); } }
Page { @Override public String toString() { return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE); } private  Page(); }
Page { @Override public String toString() { return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE); } private  Page(); static Builder withName(Name name); Name getName(); void setName(Name name); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj); }
Page { @Override public String toString() { return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE); } private  Page(); static Builder withName(Name name); Name getName(); void setName(Name name); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj);  }