package com.andela.notelib.mapper;

import static org.junit.Assert.*;

/**
 * Created by andela on 2/13/16.
 */
public class NoteMapperTest {

    @org.junit.Before
    public void setUp() throws Exception {

    }

    @org.junit.After
    public void tearDown() throws Exception {

    }

    @org.junit.Test
    public void testReadNote() throws Exception {

    }

    @org.junit.Test
    public void testWriteNote() throws Exception {

    }
}
@@ -40,140 +40,300 @@
 ort 
-static org.junit.Assert.*;%0A%0A/**%0A * Created by andela on 2/13/16.%0A */%0Apublic class NoteMapperTest %7B%0A%0A    @org.junit.Before%0A    public
+android.test.ApplicationTestCase;%0A%0Aimport com.andela.notelib.note.PaperNote;%0A%0Aimport junit.framework.TestCase;%0A%0A/**%0A * Created by andela on 2/13/16.%0A */%0Apublic class NoteMapperTest extends TestCase %7B%0A%0A    PaperNote paperNote;%0A    NoteMapper%3CPaperNote%3E noteMapper;%0A%0A    @Override%0A    protected
  voi
@@ -365,47 +365,190 @@
 n %7B%0A
-%0A
     
-%7D%0A%0A
     
-@org.junit.After%0A    public
+paperNote = new PaperNote(%22Everybody%22,%22Beautiful people%22, %22Arial%22, 23, 0);%0A        noteMapper = new NoteMapper%3C%3E();%0A        super.setUp();%0A    %7D%0A%0A%0A    @Override%0A    protected
  voi
@@ -583,35 +583,40 @@
 n %7B%0A
-%0A
     
-%7D%0A%0A
     
-@org.junit.Test
+super.tearDown();%0A    %7D%0A
 %0A   
@@ -666,91 +666,368 @@
 n %7B%0A
-%0A
     
-%7D%0A%0A
     
-@org.junit.Test%0A    public void testWriteNote() throws Exception %7B%0A
+String strPaper = noteMapper.readNote(paperNote);%0A        assertNotNull(strPaper);%0A    %7D%0A%0A    public void testWriteNote() throws Exception %7B%0A        String strPaper = noteMapper.readNote(paperNote);%0A        PaperNote newPaperNote = noteMapper.writeNote(strPaper, PaperNote.class);%0A        assertEquals(newPaperNote.getNote(), paperNote.getNote());
 %0A    %7D%0A
+%0A
 %7D

Write Test to fail NoteMapper class