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