@Test public void testGetAbstractWhenFeatureTypeTypeAbstractIsEmpty() { when(fttMock.getAbstract()).thenReturn(ECollections.<AbstractType>emptyEList()); String abstractExpected = ""; String abstractResult = featureType.getAbstract(); assertEquals(abstractExpected, abstractResult); }
@Override public String getAbstract() { StringBuffer sb = new StringBuffer(); for (Object a : eType.getAbstract()) { sb.append(a); sb.append(" "); } if (sb.length() > 0) { sb.setLength(sb.length() - 1); } return sb.toString(); }
FeatureTypeInfoImpl implements FeatureTypeInfo { @Override public String getAbstract() { StringBuffer sb = new StringBuffer(); for (Object a : eType.getAbstract()) { sb.append(a); sb.append(" "); } if (sb.length() > 0) { sb.setLength(sb.length() - 1); } return sb.toString(); } }
FeatureTypeInfoImpl implements FeatureTypeInfo { @Override public String getAbstract() { StringBuffer sb = new StringBuffer(); for (Object a : eType.getAbstract()) { sb.append(a); sb.append(" "); } if (sb.length() > 0) { sb.setLength(sb.length() - 1); } return sb.toString(); } FeatureTypeInfoImpl(FeatureTypeType eType, WFSConfig config); }
FeatureTypeInfoImpl implements FeatureTypeInfo { @Override public String getAbstract() { StringBuffer sb = new StringBuffer(); for (Object a : eType.getAbstract()) { sb.append(a); sb.append(" "); } if (sb.length() > 0) { sb.setLength(sb.length() - 1); } return sb.toString(); } FeatureTypeInfoImpl(FeatureTypeType eType, WFSConfig config); @Override String getTitle(); @Override Set<String> getKeywords(); @Override String getDescription(); @Override String getName(); QName getQName(); @Override URI getSchema(); @Override ReferencedEnvelope getBounds(); @Override String getDefaultSRS(); @Override CoordinateReferenceSystem getCRS(); @Override ReferencedEnvelope getWGS84BoundingBox(); @Override List<String> getOtherSRS(); @Override Set<String> getOutputFormats(); @Override String getAbstract(); }
FeatureTypeInfoImpl implements FeatureTypeInfo { @Override public String getAbstract() { StringBuffer sb = new StringBuffer(); for (Object a : eType.getAbstract()) { sb.append(a); sb.append(" "); } if (sb.length() > 0) { sb.setLength(sb.length() - 1); } return sb.toString(); } FeatureTypeInfoImpl(FeatureTypeType eType, WFSConfig config); @Override String getTitle(); @Override Set<String> getKeywords(); @Override String getDescription(); @Override String getName(); QName getQName(); @Override URI getSchema(); @Override ReferencedEnvelope getBounds(); @Override String getDefaultSRS(); @Override CoordinateReferenceSystem getCRS(); @Override ReferencedEnvelope getWGS84BoundingBox(); @Override List<String> getOtherSRS(); @Override Set<String> getOutputFormats(); @Override String getAbstract();  }