@@ -0,0 +1,2658 @@
+/**%0A * %0A */%0Apackage mathsquared.resultswizard2;%0A%0Aimport static org.junit.Assert.assertEquals;%0Aimport static org.junit.Assert.fail;%0A%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0A%0Aimport org.junit.Test;%0A%0A/**%0A * @author MathSquared%0A * %0A */%0Apublic class AdditiveMapUtilsTest %7B%0A%0A    /**%0A     * Test method for %7B@link mathsquared.resultswizard2.AdditiveMapUtils#addNumber(java.util.Map, java.lang.Object, int)%7D.%0A     */%0A    @Test%0A    public void testAddNumberMapOfQsuperKIntegerKInt () %7B%0A        Map%3CString, Integer%3E one = new HashMap%3CString, Integer%3E();%0A        one.put(%22a%22, 1);%0A        one.put(%22b%22, 2);%0A%0A        Map%3CString, Integer%3E first = new HashMap%3CString, Integer%3E();%0A        first.put(%22a%22, 1);%0A        first.put(%22b%22, 4);%0A%0A        Map%3CString, Integer%3E second = new HashMap%3CString, Integer%3E();%0A        second.put(%22a%22, 1);%0A        second.put(%22b%22, 4);%0A        second.put(%22c%22, 3);%0A%0A        AdditiveMapUtils.addNumber(one, %22b%22, 2);%0A        assertEquals(%22Simple addition%22, one, first);%0A%0A        AdditiveMapUtils.addNumber(one, %22c%22, 3);%0A        assertEquals(%22Pre-existing null%22, one, second);%0A    %7D%0A%0A    /**%0A     * Test method for %7B@link mathsquared.resultswizard2.AdditiveMapUtils#addNumber(java.util.Map, java.lang.Object, mathsquared.resultswizard2.Fraction)%7D.%0A     */%0A    @Test%0A    public void testAddNumberMapOfQsuperKFractionKFraction () %7B%0A        Map%3CString, Fraction%3E one = new HashMap%3CString, Fraction%3E();%0A        one.put(%22a%22, new Fraction(1, 2));%0A        one.put(%22b%22, new Fraction(5, 3));%0A%0A        Map%3CString, Fraction%3E first = new HashMap%3CString, Fraction%3E();%0A        first.put(%22a%22, new Fraction(1, 2));%0A        first.put(%22b%22, new Fraction(10, 3));%0A%0A        Map%3CString, Fraction%3E second = new HashMap%3CString, Fraction%3E();%0A        second.put(%22a%22, new Fraction(1, 2));%0A        second.put(%22b%22, new Fraction(10, 3));%0A        second.put(%22c%22, new Fraction(4, 7));%0A%0A        AdditiveMapUtils.addNumber(one, %22b%22, new Fraction(5, 3));%0A        assertEquals(%22Simple addition%22, one, first);%0A%0A        AdditiveMapUtils.addNumber(one, %22c%22, new Fraction(4, 7));%0A        assertEquals(%22Pre-existing null%22, one, second);%0A    %7D%0A%0A    /**%0A     * Test method for %7B@link mathsquared.resultswizard2.AdditiveMapUtils#addAllNumbers(java.util.Map, java.util.Map)%7D.%0A     */%0A    @Test%0A    public void testAddAllNumbersMapOfQsuperKIntegerMapOfKInteger () %7B%0A        fail(%22Not yet implemented%22);%0A    %7D%0A%0A    /**%0A     * Test method for %7B@link mathsquared.resultswizard2.AdditiveMapUtils#addAllNumbers(java.util.Map, java.util.Map, boolean)%7D.%0A     */%0A    @Test%0A    public void testAddAllNumbersMapOfQsuperKFractionMapOfKFractionBoolean () %7B%0A        fail(%22Not yet implemented%22);%0A    %7D%0A%0A%7D%0A

Add AdditiveMapUtils and tests: addNumber(...)