コード例 #1
0
 /** Test of extendFeature method, of class FeatureCollection. */
 @Test(expected = IllegalArgumentException.class)
 public void testExtendFeatureWrongFeature() {
   System.out.println("extendFeature");
   String feature = "hoi";
   FeatureCollection instance = new FeatureCollection();
   String[] expResult = new String[] {"growthHeight", "growthWeight", "growthOther"};
   String[] result = instance.extendFeature(feature);
   assertArrayEquals(expResult, result);
 }
コード例 #2
0
 /** Test of extendFeature method, of class FeatureCollection. */
 @Test
 public void testExtendFeature() {
   System.out.println("extendFeature");
   String feature = "growth";
   FeatureCollection instance = new FeatureCollection();
   String[] expResult = new String[] {"growthHeight", "growthWeight", "growthOther"};
   String[] result = instance.extendFeature(feature);
   assertArrayEquals(expResult, result);
 }