@@ -0,0 +1,1485 @@
+package uk.me.graphe.server;%0A%0Aimport junit.framework.TestCase;%0Aimport uk.me.graphe.server.database.Database;%0Aimport uk.me.graphe.server.database.DatabaseFactory;%0Aimport uk.me.graphe.shared.Edge;%0Aimport uk.me.graphe.shared.Vertex;%0Aimport uk.me.graphe.shared.graphmanagers.OTGraphManager2d;%0Aimport uk.me.graphe.shared.graphmanagers.OTGraphManagerFactory;%0Aimport uk.me.graphe.shared.messages.operations.AddEdgeOperation;%0Aimport uk.me.graphe.shared.messages.operations.AddNodeOperation;%0A%0A%0Apublic class DatabaseTest extends TestCase%7B%0A%0A    private Database db = DatabaseFactory.newInstance();%0A    private OTGraphManager2d mManager;%0A    private int graphId = 0;%0A    @Override%0A    protected void setUp() throws Exception %7B%0A        // TODO Auto-generated method stub%0A        super.setUp();%0A        mManager = OTGraphManagerFactory.newInstance(17);%0A    %7D%0A%0A    @Override%0A    protected void tearDown() throws Exception %7B%0A        // TODO Auto-generated method stub%0A        super.tearDown();%0A        mManager = null;%0A    %7D%0A    %0A    public void testStore () %7B%0A        Vertex v1 = new Vertex(%22v1%22);%0A        Vertex v2 = new Vertex(%22v2%22);%0A        mManager.applyOperation(new AddNodeOperation(v1, 1, 1));%0A        mManager.applyOperation(new AddNodeOperation(v2, 1, 4));%0A        mManager.applyOperation(new AddEdgeOperation(new Edge(v1,v2)));%0A        graphId = db.store(mManager);   %0A    %7D%0A    %0A    public void testRetrieve() %7B%0A        //OTGraphManager2d retrieve = db.retrieve(graphId);%0A        %0A    %7D%0A%7D%0A

Test suite