package sherlock;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.List;
import java.util.stream.Collectors;

public class CommitParserTest {

	public void testA() throws IOException {
		InputStream is = this.getClass().getClassLoader().getResourceAsStream("migration-task.diff");
		List<String> commits = new CommitParser(is).getCommits().collect(Collectors.toList());
		System.out.println(commits);
	}
}

@@ -16,39 +16,8 @@
 k;%0A%0A
-import java.io.BufferedReader;%0A
 impo
@@ -84,42 +84,8 @@
 ava.
-io.InputStreamReader;%0Aimport java.
 util
@@ -124,16 +124,68 @@
 ollector
+s;%0A%0Aimport static junit.framework.Assert.assertEqual
 s;%0A%0Apubl
@@ -446,34 +446,38 @@
 ;%0A%09%09
-System.out.println(commits
+assertEquals(4, commits.size()
 );%0A%09

Test for SVN commit parser