@Test public void getPathShouldReturnPomFilePath() { String[] names = {"pomtest", "test", "app"}; for (String name : names) { Mockito.when(jsfApp.getName()).thenReturn(name); assertThat(pomFileService.getPath()).isEqualTo(Paths.get(name, "pom.xml")); } }
@Test public void getRootShouldReturnPomFile() { Mockito.when(jsfApp.getPomFile()).thenReturn(pomFile); assertThat(pomFileService.getRoot()).contains(entry("pom", pomFile)); }