GEIndividual extends AbstractIndividual { @Override public String toString() { String s = ""; if (this.phenotype != null) { s = this.phenotype.getString(); } return s; } GEIndividual();  GEIndividual(GEGrammar g, Phenotype p, Genotype gen, Fitness f); private  GEIndividual(GEIndividual i); static GEIndividual getIndividual(final GEGrammar grammar, final Phenotype phen, final Genotype genotype, final Fitness fitness); void revalidate(GEIndividual ind); void invalidate(); boolean isMapped(); void setMapped(boolean mapped); boolean isValid(); void setValid(boolean b); boolean wasPreviouslyValid(); void setUsedCodons(int usedCodons); void setUsedWraps(int usedWraps); void map(int map); String getPhenotypeString(int map); Genotype getGenotype(); Mapper getMapper(); void setMapper(Mapper m); void setGenotype(Genotype g); void setPhenotype(Phenotype p); Phenotype getPhenotype(); Individual clone(); @Override String toString(); int getUsedCodons(); void setPreviouslyUsedCodons(int previouslyUsedCodons); int getPreviouslyUsedCodons(); int getUsedWraps(); int[] getCrossoverPoints(); int[] getMutationPoints(); ArrayList<Fitness> getParents(); void setCrossoverPoints(int[] crossoverPoints); void setMutationPoints(int[] mutationPoints); void setParents(ArrayList<Fitness> parents);  }
@Test public void testToString() { System.out.println("* GEIndividualTest: toString"); String expResult = ""; String result = gei.toString(); assertEquals(expResult, result); gei = IndividualMaker.makeIndividual(); gei.map(0); result = gei.toString(); expResult = "a "; assertEquals(true, result.equals(expResult)); }