@@ -0,0 +1,1064 @@
+package com.dhemery.slicer.test.unit;%0A%0Aimport static org.hamcrest.Matchers.*;%0Aimport static org.junit.Assert.*;%0A%0Aimport java.io.FileNotFoundException;%0Aimport java.io.FileReader;%0Aimport java.io.IOException;%0Aimport java.util.Arrays;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Aimport com.dhemery.slicer.Grid;%0Aimport com.dhemery.slicer.GridReader;%0Aimport com.dhemery.slicer.test.util.CsvTmpFileCreator;%0A%0Apublic class AGridReader %7B%0A%09String%5B%5D%5B%5D cells = %7B%0A%09%09%09%7B %22a%22, %22b%22, %22c%22, %22d%22, %7D,%0A%09%09%09%7B %221%22, %223%22, %225%22, %2242%22, %2242 again%22, %7D,%0A%09%09%09%7B %22-%22, %22$%22, %22*%22, %7D,%0A%09%09%09%7B %22the%22, %22quick%22, %22brown%22, %22fox%22, %7D,%0A%09%7D;%0A%09private String csvFileName;%0A%0A%09@Before%0A%09public void writeCellsToCsvFile() throws IOException %7B%0A%09%09csvFileName = CsvTmpFileCreator.create(cells);%0A%09%7D%0A%0A%09@Test%0A%09public void createsAGridWithTheValuesFromTheCsvFile() throws FileNotFoundException, IOException  %7B%0A%09%09GridReader gridReader = new GridReader(new FileReader(csvFileName));%0A%09%09Grid grid = gridReader.grid();%0A%09%09for(int i = 0 ; i %3C cells.length ; i++) %7B%0A%09%09%09assertThat(grid.row(i), is(Arrays.asList(cells%5Bi%5D)));%09%09%09%0A%09%09%7D%0A%09%7D%0A%7D%0A

Test that the reader reads the same values as were written