@@ -0,0 +1,805 @@
+package me.teaisaweso.client;%0A%0Aimport junit.framework.Assert;%0Aimport junit.framework.TestCase;%0Aimport me.teaisaweso.client.graphmanagers.GraphManager2d;%0Aimport me.teaisaweso.client.graphmanagers.GraphManager2dFactory;%0A%0Apublic class GraphManager2dFactoryTest extends TestCase %7B%0A%09/**%0A%09 * verifies that the factory produces a singleton%0A%09 */%0A%09public void testSingleton() %7B%0A%09%09GraphManager2dFactory f = GraphManager2dFactory.getInstance();%0A%09%09GraphManager2dFactory f2 = GraphManager2dFactory.getInstance();%0A%09%09// check that we only ever get one instance%0A%09%09Assert.assertEquals(true, f == f2);%0A%09%7D%0A%0A%09/**%0A%09 * verifies that the factory product is not null%0A%09 */%0A%09public void testProduct() %7B%0A%09%09GraphManager2d manager = GraphManager2dFactory.getInstance().makeDefaultGraphManager();%0A%09%09Assert.assertNotNull(manager);%0A%09%7D%0A%7D%0A

add a test for the graphmanager2d factory