Ejemplo n.º 1
0
  @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"));
    }
  }
Ejemplo n.º 2
0
 @Test
 public void getRootShouldReturnPomFile() {
   Mockito.when(jsfApp.getPomFile()).thenReturn(pomFile);
   assertThat(pomFileService.getRoot()).contains(entry("pom", pomFile));
 }