package connector;

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

import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Paths;

import static org.junit.Assert.*;

/**
 * Created by hagen on 02/02/16.
 */
public class JsonListParserTest {

    String toPase;
//    String path = "src/test/resources/jsonList/jsonList2.json";
    String path = "src/test/resources/jsonList/auto.json";


    @Before
    public void setUp() throws Exception {
        byte[] encoded = Files.readAllBytes(Paths.get(path));
        this.toPase =  new String(encoded, StandardCharsets.UTF_8);
    }

    @Test
    public void testParseList() throws Exception {
        System.out.println(toPase);
        boolean bool = JsonListParser.parseList(this.toPase);
        assertTrue(false);
    }
}
@@ -408,12 +408,17 @@
 ist/
-auto
+jsonList2
 .jso
@@ -684,16 +684,18 @@
         
+//
 System.o
@@ -799,13 +799,12 @@
 rue(
-false
+bool
 );%0A 

add JsonList2 Object Mapper