PropertyDescription { public String getPropertyClassTypeParameter() { return propertyClassName.substring(propertyClassName.indexOf("<")+1, propertyClassName.length()-1); } PropertyDescription();  PropertyDescription(BeanDescription bean, String propertyName, String propertyClassName); BeanDescription getBean(); void setBean(BeanDescription bean); String getPropertyName(); void setPropertyName(String propertyName); String getPropertyGetterName(); String getPropertySetterName(); String getPropertyObtainMethodName(); String getPropertySetChoicesForMethodName(); String getPropertyChoicesForParamName(); String getPropertyClassName(); String getPropertyClassTypeParameter(); String getPropertyClassWithoutTypeParameter(); void setPropertyClassName(String propertyClassName); boolean isPropertyUnboxed(); String getPropertyClassNameBoxed(); String getPropertyClassNameBoxedWithoutTypeParameter(); String getPropertyUnboxedFromString(); String getPropertyUnboxedToString(); boolean isPropertyClassRange(); boolean isMapped(); void setMapped(boolean mapped); boolean isDisplayed(); void setDisplayed(boolean displayed); boolean isContainedInMapProfile(MapProfileDescription profileToCheck); List<MapPropertyProfileDescription> getMapPropertyProfiles(); void setMapPropertyProfiles(List<MapPropertyProfileDescription> mapPropertyProfiles); void addMapPropertyProfile(MapPropertyProfileDescription mapPropertyProfile); void removePropertyProfile(MapPropertyProfileDescription mapPropertyProfile); MapPropertyProfileDescription getMapPropertyProfile(MapProfileDescription profile); MapPropertyProfileDescription getMapPropertyProfile(String profileName); String getCaptionText(); void setCaptionText(String captionText); String getCaptionProp(); void setCaptionProp(String captionProp); String getEffectiveCaption(); boolean isContainedInDisplayProfile(DisplayProfileDescription profileToCheck); List<DisplayPropertyProfileDescription> getDisplayPropertyProfiles(); void setDisplayPropertyProfiles(List<DisplayPropertyProfileDescription> displayPropertyProfiles); void addDisplayPropertyProfile(DisplayPropertyProfileDescription displayPropertyProfile); void removeDisplayPropertyProfile(DisplayPropertyProfileDescription displayPropertyProfile); DisplayPropertyProfileDescription getDisplayPropertyProfile(DisplayProfileDescription profile); DisplayPropertyProfileDescription getDisplayPropertyProfile(String profileName); BeanDescription getEnumClass(List<BeanDescription> candidates); boolean hasEnumClass(List<BeanDescription> candidates); String getConverterClassName(); void setConverterClassName(String converterClassName); @Override String toString(); boolean isSortable(); void setSortable(boolean sortable);  }
@Test public void testGetPropertyClassTypeParameter() { propertyDescriptionUnderTest.setPropertyClassName("List<String>"); assertThat(propertyDescriptionUnderTest.getPropertyClassTypeParameter(), is("String")); }