@Test public void getNumFeatures() { result.newFeature("foo.1"); assertEquals(1, result.getNumFeatures()); result.newFeature("foo.2"); assertEquals(2, result.getNumFeatures()); }
public int getNumFeatures() { return items.size(); }
InfoToolResult { public int getNumFeatures() { return items.size(); } }
InfoToolResult { public int getNumFeatures() { return items.size(); } InfoToolResult(); }
InfoToolResult { public int getNumFeatures() { return items.size(); } InfoToolResult(); void newFeature(String id); void setFeatureValue(Name name, Object value); void setFeatureValue(String name, Object value); int getNumFeatures(); @Override String toString(); Map<String, Object> getFeatureData(int featureIndex); String getFeatureId(int featureIndex); }
InfoToolResult { public int getNumFeatures() { return items.size(); } InfoToolResult(); void newFeature(String id); void setFeatureValue(Name name, Object value); void setFeatureValue(String name, Object value); int getNumFeatures(); @Override String toString(); Map<String, Object> getFeatureData(int featureIndex); String getFeatureId(int featureIndex);  }