package es.tid.smartsteps.footfalls.microgrids.parsing;

import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;

import es.tid.smartsteps.footfalls.microgrids.CatchmentsBasedTest;
import java.io.IOException;

/**
 *
 * @author dmicol
 */
public class CatchmentsParserTest extends CatchmentsBasedTest {

    CatchmentsParser instance;

    public CatchmentsParserTest() throws IOException {}

    @Before
    public void setUp() {
        this.instance = new CatchmentsParser();
    }

    @Test
    public void testParse() {
        this.instance.parse(this.catchments);
    }
}

@@ -50,16 +50,45 @@
 rsing;%0A%0A
+import java.io.IOException;%0A%0A
 import s
@@ -110,17 +110,28 @@
 .Assert.
-*
+assertEquals
 ;%0Aimport
@@ -247,35 +247,94 @@
 %0Aimport 
-java.io.IOException
+es.tid.smartsteps.footfalls.microgrids.data.generated.EntryProtocol.Catchments
 ;%0A%0A/**%0A 
@@ -656,43 +656,422 @@
     
-this.instance.parse(this.catchments
+final Catchments parsedCatchments = this.instance.parse(this.catchments);%0A        assertEquals(%22cell_distinct_hours_b%22, parsedCatchments.getId());%0A        assertEquals(%2220120424%22, parsedCatchments.getDate());%0A        assertEquals(54.813522D, parsedCatchments.getLatitude(), 0.0D);%0A        assertEquals(-1.845595, parsedCatchments.getLongitude(), 0.0D);%0A        assertEquals(5, parsedCatchments.getCatchmentsCount()
 );%0A 

Add asserts in CatchmentsBasedTest