package loc;

import org.junit.Test;

import java.io.IOException;
import java.nio.file.Path;
import java.nio.file.Paths;
import static org.junit.Assert.*;

public class LineCounterTest {
    @Test (expected = IOException.class)
    public void inexistantFile() throws Exception {
        LineCounter.count(Paths.get("no file"));
    }

    @Test
    public void customFile() throws IOException {
        Path path = Paths.get("tests/input/10lines");
        int count = LineCounter.count(path);
        assertEquals(10, count);
    }
}
@@ -180,20 +180,17 @@
 rTest %7B%0A
-    
+%09
 @Test (e
@@ -218,20 +218,17 @@
 .class)%0A
-    
+%09
 public v
@@ -267,24 +267,18 @@
 ption %7B%0A
-        
+%09%09
 LineCoun
@@ -314,29 +314,20 @@
 ));%0A
-    %7D%0A%0A    
+%09%7D%0A%0A%09
 @Test%0A
-    
+%09
 publ
@@ -368,24 +368,18 @@
 ption %7B%0A
-        
+%09%09
 Path pat
@@ -416,24 +416,18 @@
 ines%22);%0A
-        
+%09%09
 int coun
@@ -459,16 +459,10 @@
 h);%0A
-        
+%09%09
 asse
@@ -486,11 +486,8 @@
 t);%0A
-    
+%09
 %7D%0A%7D

Fix indents