@@ -0,0 +1,1419 @@
+package fr.techad.sonar.gerrit;%0A%0Aimport static org.junit.Assert.*;%0Aimport static org.hamcrest.CoreMatchers.*;%0A%0Aimport java.util.Map;%0A%0Aimport org.junit.Test;%0A%0Apublic class GerritFacadeTest %7B%0A%09%0A%09private GerritFacade facade = new GerritFacade() %7B%0A%09%09public Map%3CString, String%3E listFiles() %7B return null;%7D;%0A%09%09public void setReview(ReviewInput reviewInput) %7B%7D;%0A%09%7D;%0A%0A%09@Test%0A%09public void testParseFileName() %7B%0A%09%09assertThat(facade.parseFileName(%22subdirectory/src/fr/techad/sonar/gerrit/GerritFacadeTest.java%22),%0A%09%09%09%09is(%22src/fr/techad/sonar/gerrit/GerritFacadeTest.java%22));%0A%09%09assertThat(facade.parseFileName(%22fr/techad/sonar/gerrit/GerritFacadeTest.java%22),%0A%09%09%09%09is(%22fr/techad/sonar/gerrit/GerritFacadeTest.java%22));%0A%09%09assertThat(facade.parseFileName(%22sub1/sub2/sub3/sub4/src/fr/techad/sonar/gerrit/GerritFacadeTest.java%22),%0A%09%09%09%09is(%22src/fr/techad/sonar/gerrit/GerritFacadeTest.java%22));%0A%09%09assertThat(facade.parseFileName(%22subdirectory/src/main/java/src/fr/techad/sonar/gerrit/GerritFacadeTest.java%22),%0A%09%09%09%09is(%22src/main/java/src/fr/techad/sonar/gerrit/GerritFacadeTest.java%22));%0A%09%09assertThat(facade.parseFileName(%22src/main/java/src/fr/techad/sonar/gerrit/GerritFacadeTest.java%22),%0A%09%09%09%09is(%22src/main/java/src/fr/techad/sonar/gerrit/GerritFacadeTest.java%22));%0A%09%09assertThat(facade.parseFileName(%22/src/main/java/src/fr/techad/sonar/gerrit/GerritFacadeTest.java%22),%0A%09%09%09%09is(%22src/main/java/src/fr/techad/sonar/gerrit/GerritFacadeTest.java%22));%0A%09%7D%0A%0A%7D%0A

Create GerritFacadeTest.java