@@ -0,0 +1,1289 @@
+package be.shoktan.BeeBreedingManager.model;%0A%0Aimport static org.junit.Assert.*;%0A%0Aimport java.util.Collection;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0A/**%0A * Test class for the Specie model class%0A * @author Wisthy%0A *%0A */%0Apublic class SpecieTest %7B%0A%0A%09@Before%0A%09public void setUp() throws Exception %7B%0A%09%7D%0A%0A%09@Test%0A%09public void test() %7B%0A%09%09Group gMundane = new Group();%0A%09%09gMundane.setName(%22mundane%22);%0A%09%09%0A%09%09Group gNatural = new Group();%0A%09%09gNatural.setName(%22natural%22);%0A%09%09gNatural.addGroup(gMundane);%0A%09%09%0A%09%09Specie forest = new Specie();%0A%09%09forest.setName(%22forest%22);%0A%09%09forest.addGroup(gNatural);%0A%09%09%0A%09%09Specie meadow = new Specie();%0A%09%09meadow.setName(%22meadow%22);%0A%09%09meadow.addGroup(gNatural);%0A%09%09%0A%09%09Specie mystical = new Specie();%0A%09%09mystical.setName(%22mystical%22);%0A%09%09mystical.addGroup(gMundane);%0A%09%09%0A%09%09Specie common = new Specie();%0A%09%09common.setName(%22common%22);%0A%09%09%0A%09%09Specie cultivated = new Specie();%0A%09%09cultivated.setName(%22cultivated%22);%0A%09%09%0A%09%09Mutation mCommon = new Mutation(gNatural, gMundane, common, false, %22%22);%0A%09%09mCommon.derivate();%0A%09%09%0A%09%09Mutation mCultivated = new Mutation(gMundane, common, cultivated, false, %22%22);%0A%09%09mCultivated.derivate();%0A%09%09%0A%09%09Collection%3CSpecie%3E mutationResultWith = forest.mutationResultWith(common);%0A%09%09for(Specie s : mutationResultWith)%7B%0A%09%09%09assertEquals(cultivated, s);%0A%09%09%7D%0A%09%7D%0A%0A%7D%0A

Create SpecieTest.java