@Test public void testAsGenotype() { StringBuilder sb = new StringBuilder(); for (String location : Locations.locations()) { sb.append("AC"); } Genome genome = new Genome("profileId", sb.toString()); Genotype genotype = genome.asGenotype(); assertEquals(genome.getProfileId(), genotype.getProfileId()); for (String location : Locations.locations()) { assertEquals("AC", genotype.getValues().get(location)); } }
public Genotype asGenotype() { return asGenotype(Locations.locations()); }
Genome { public Genotype asGenotype() { return asGenotype(Locations.locations()); } }
Genome { public Genotype asGenotype() { return asGenotype(Locations.locations()); } Genome(final String profileId, final String values); }
Genome { public Genotype asGenotype() { return asGenotype(Locations.locations()); } Genome(final String profileId, final String values); String getProfileId(); String getValues(); Genotype asGenotype(); Genotype asGenotype(final String... locations); Genotype asGenotype(final Iterable<String> locations); }
Genome { public Genotype asGenotype() { return asGenotype(Locations.locations()); } Genome(final String profileId, final String values); String getProfileId(); String getValues(); Genotype asGenotype(); Genotype asGenotype(final String... locations); Genotype asGenotype(final Iterable<String> locations);  }