BasicFitness implements Fitness { public int getMaxIntFitness() { return BasicFitness.Max_Int; } BasicFitness();  BasicFitness(double f, Individual i);  BasicFitness(Individual i); int compareTo(Fitness o); double getMaxDoubleFitness(); void setMaxDoubleFitness(double d); double getMinDoubleFitness(); void setMinDoubleFitness(double d); int getMaxIntFitness(); void setMaxIntFitness(int d); int getMinIntFitness(); void setMinIntFitness(int d); void setDefault(); double getDefaultFitness(); double getDouble(); double getDistance(DoubleFitness f); Individual getIndividual(); void setIndividual(Individual i); void setDouble(double f); int getInt(); void setInt(int f); Object getData(); void setData(Object data); static final double DEFAULT_FITNESS; }
@Test public void testGetMaxIntFitness() { System.out.println("*BaicFitnessTest: getMaxIntFitness"); BasicFitness instance = new BasicFitness(); int expResult = (int)BasicFitness.DEFAULT_FITNESS; int result = instance.getMaxIntFitness(); assertEquals(expResult, result); }