@@ -0,0 +1,1760 @@
+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 BeeCollection model%0A * @author Wisthy%0A *%0A */%0Apublic class BeeCollectionTest %7B%0A%0A%09@Before%0A%09public void setUp() throws Exception %7B%0A%09%7D%0A%0A%09@Test%0A%09public void testAvailableSimple() %7B%0A%09%09BeeCollection collection = new BeeCollection();%0A%09%09collection.setName(%22test modpack%22);%0A%09%09%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%09collection.addSpecie(forest);%0A%09%09%0A%09%09Specie meadow = new Specie();%0A%09%09meadow.setName(%22meadow%22);%0A%09%09meadow.addGroup(gNatural);%0A%09%09collection.addSpecie(meadow);%0A%09%09%0A%09%09Specie mystical = new Specie();%0A%09%09mystical.setName(%22mystical%22);%0A%09%09mystical.addGroup(gMundane);%0A%09%09collection.addSpecie(mystical);%0A%09%09%0A%09%09Specie common = new Specie();%0A%09%09common.setName(%22common%22);%0A%09%09//collection.addSpecie(common);%0A%09%09%0A%09%09Specie cultivated = new Specie();%0A%09%09cultivated.setName(%22cultivated%22);%0A%09%09//collection.addSpecie(cultivated);%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 availableBees = collection.available();%0A%09%09assertTrue(availableBees.contains(common));%0A%09%09assertTrue(availableBees.contains(forest));%0A%09%09assertTrue(availableBees.contains(meadow));%0A%09%09assertTrue(availableBees.contains(mystical));%0A%09%09assertFalse(availableBees.contains(cultivated));%0A%09%09assertEquals(4, availableBees.size());%0A%09%7D%0A%7D%0A

Create BeeCollectionTest.java