package Parser;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import static org.junit.Assert.*;

public class PairBufferTest {

    @Before
    public void setUp() throws Exception {

    }

    @After
    public void tearDown() throws Exception {

    }

    @Test
    public void testToPair() throws Exception {

    }

    @Test
    public void testAppendKey() throws Exception {

    }

    @Test
    public void testAppendValue() throws Exception {

    }

    @Test
    public void testToKey() throws Exception {

    }

    @Test
    public void testToValue() throws Exception {

    }
}
@@ -10,16 +10,34 @@
 arser;%0A%0A
+import Pair.Pair;%0A
 import o
@@ -101,16 +101,45 @@
 .Test;%0A%0A
+import java.util.ArrayList;%0A%0A
 import s
@@ -204,330 +204,1738 @@
     
-@Before%0A    public void setUp() throws Exception %7B%0A%0A    %7D%0A%0A    @After%0A    public void tearDown() throws Exception %7B%0A%0A    %7D%0A%0A    @Test%0A    public void testToPair() throws Exception %7B%0A%0A    %7D%0A%0A    @Test%0A    public void testAppendKey() throws Exception %7B%0A%0A    %7D%0A%0A    @Test%0A    public void testAppendValue() throws Exception %7B%0A
+Pair%3CString, ArrayList%3CString%3E%3E pair;%0A    PairBuffer pairBuffer;%0A%0A    @Before%0A    public void setUp() throws Exception %7B%0A        pair = new Pair%3C%3E(Pair.DEFAULT_KEY, Pair.DEFAULT_VALUE);%0A        pairBuffer = new PairBuffer();%0A    %7D%0A%0A    @After%0A    public void tearDown() throws Exception %7B%0A%0A    %7D%0A%0A    public void setKey(String key)%7B%0A        for (int i = 0, s = key.length(); i %3C s; i++)%7B%0A            pairBuffer.appendKey(key.charAt(i));%0A        %7D%0A    %7D%0A%0A    public void setValue(String value)%7B%0A        for (int i = 0, s = value.length(); i %3C s; i++)%7B%0A            pairBuffer.appendValue(value.charAt(i));%0A        %7D%0A    %7D%0A%0A    @Test%0A    public void testToPair() throws Exception %7B%0A        testAppendKey();%0A        testAppendValue();%0A        pair = pairBuffer.toPair();%0A        assertEquals(pair.getKey(), %22TOSIN%22);%0A        assertEquals(pair.getValue().size(), 1);%0A        assertEquals(pair.getValue().get(0), %22ADESANYA%22);%0A%0A        setKey(%22TOSIN%22);%0A        setValue(%22DANNY JAX%22);%0A        assertEquals(pair.getKey(), %22TOSIN%22);%0A        pair = pairBuffer.toPair();%0A        assertEquals(pair.getValue().size(), 2);%0A        assertEquals(pair.getValue().get(0), %22ADESANYA%22);%0A        assertEquals(pair.getValue().get(1), %22DANNY JAX%22);%0A    %7D%0A%0A    @Test%0A    public void testAppendKey() throws Exception %7B%0A        assertTrue(pairBuffer.toKey().isEmpty());%0A        setKey(%22TOSIN%22);%0A        assertFalse(pairBuffer.toKey().isEmpty());%0A        assertEquals(pairBuffer.toKey(), %22TOSIN%22);%0A    %7D%0A%0A    @Test%0A    public void testAppendValue() throws Exception %7B%0A        assertTrue(pairBuffer.toValue().isEmpty());%0A        setValue(%22ADESANYA%22);%0A        assertFalse(pairBuffer.toValue().isEmpty());%0A        assertEquals(pairBuffer.toValue(), %22ADESANYA%22);
 %0A   
@@ -1987,32 +1987,56 @@
 ows Exception %7B%0A
+        testAppendKey();
 %0A    %7D%0A%0A    @Tes
@@ -2082,20 +2082,46 @@
 Exception %7B%0A
+        testAppendValue();
 %0A    %7D%0A%7D

Create and pass PairBufferTest class