ContextualDerivationTree extends DerivationTree { public ArrayList<Integer> getStructCodonList() { return structCodonList; } ContextualDerivationTree(GEGrammar gram, GEChromosome gen);  ContextualDerivationTree(ContextualDerivationTree copy); ArrayList<Integer> getStructCodonList(); ArrayList<Integer> getNodeCodonList();  }
@Test public void testGetStructCodonList() { System.out.println("getStructCodonList"); GEIndividual operand = IndividualMaker.makeIndividual(p); int[] chromosome = {1,2,1,2,Integer.MIN_VALUE,Integer.MAX_VALUE,0,2}; GEChromosome geChromosome = (GEChromosome)operand.getGenotype().get(0); Integer[] expected = {0,1,2,3,4,5}; geChromosome.setAll(chromosome); ContextualDerivationTree tree = (ContextualDerivationTree) GenotypeHelper.buildDerivationTree(operand); ArrayList<Integer> arrayResult = tree.getStructCodonList(); Integer[] result = arrayResult.toArray(new Integer[0]); assertArrayEquals(expected, result); }