@@ -0,0 +1,1848 @@
+package Reaction;%0A%0Aimport Pair.Pair;%0Aimport org.junit.After;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport static org.junit.Assert.*;%0A%0Aimport java.util.ArrayList;%0A%0Apublic class ReactionDBWriterTest %7B%0A%0A    Pair pair0 = createPair(%22UNIQUE-ID%22, %22ANDELA-FELLOW%22);%0A    Pair pair1 = createPair(%22TYPES%22, %22OMOTOSO%22);%0A    Pair pair2 = createPair(%22COMMON-NAME%22, %22FEMALE%22);%0A    Pair pair3 = createPair(%22ATOM-MAPPINGS%22, %22ANDELA%22);%0A    Pair pair4 = createPair(%22IN-PATHWAY%22, %2210%22);%0A%0A    ReactionDBWriter reactionDBWriter;%0A    Reaction reaction;%0A%0A    public Pair%3CString, ArrayList%3CString%3E%3E createPair(String key, String value) %7B%0A        ArrayList%3CString%3E values = new ArrayList%3C%3E();%0A        values.add(value);%0A        return new Pair%3C%3E(key, values);%0A    %7D%0A%0A    public void populatePairList()%7B%0A        reaction.add(pair0);%0A        reaction.add(pair1);%0A        reaction.add(pair2);%0A        reaction.add(pair3);%0A        reaction.add(pair4);%0A    %7D%0A%0A    @Before%0A    public void setUp() throws Exception %7B%0A        reactionDBWriter = new ReactionDBWriter();%0A        reaction = new Reaction();%0A        populatePairList();%0A    %7D%0A%0A    @After%0A    public void tearDown() throws Exception %7B%0A%0A    %7D%0A%0A    @Test%0A    public void testConnectToReactionDatabase() throws Exception %7B%0A        reactionDBWriter.connectToReactionDatabase();%0A        assertTrue(reactionDBWriter.isConnected());%0A    %7D%0A%0A    @Test%0A    public void testCreateReactionTable() throws Exception %7B%0A        testConnectToReactionDatabase();%0A        reactionDBWriter.createReactionTable();%0A    %7D%0A%0A    @Test%0A    public void testWriteReactionToDatabase() throws Exception %7B%0A        testConnectToReactionDatabase();%0A        testCreateReactionTable();%0A        reactionDBWriter.writeReactionToDatabase(reaction);%0A        reactionDBWriter.disconnect();%0A        assertFalse(reactionDBWriter.isConnected());%0A    %7D%0A%7D

Add Test to fail ReactionDBWriter class