@Test public void testWrappedMavenProject() throws IOException { String artifactId = "test"; String version = "x.x.x"; File pomFile = folder.newFile("pom.xml"); String outputDir = folder.newFolder("outputdir").getName(); Build build = new Build(); build.setOutputDirectory(outputDir); MavenProject mavenProject = new MavenProject(); mavenProject.setArtifactId(artifactId); mavenProject.setVersion(version); mavenProject.setFile(pomFile); mavenProject.setBuild(build); WrappedMavenProject wrappedMavenProject = new WrappedMavenProject(mavenProject); assertThat(wrappedMavenProject.getBuildDirectory()).isEqualTo(outputDir); assertThat(wrappedMavenProject.getConfigFile()).isEqualTo(pomFile); assertThat(wrappedMavenProject.getRawProject()).isEqualTo(mavenProject); assertThat(wrappedMavenProject.getProjectId()).isEqualTo(artifactId); assertThat(wrappedMavenProject.getVersion()).isEqualTo(version); }
public WrappedMavenProject(MavenProject innerProject) { this.innerProject = innerProject; }
WrappedMavenProject implements IProject { public WrappedMavenProject(MavenProject innerProject) { this.innerProject = innerProject; } }
WrappedMavenProject implements IProject { public WrappedMavenProject(MavenProject innerProject) { this.innerProject = innerProject; } WrappedMavenProject(MavenProject innerProject); }
WrappedMavenProject implements IProject { public WrappedMavenProject(MavenProject innerProject) { this.innerProject = innerProject; } WrappedMavenProject(MavenProject innerProject); @Override Object getRawProject(); @Override String getProjectId(); @Override String getVersion(); @Override String getBuildDirectory(); @Override File getConfigFile(); }
WrappedMavenProject implements IProject { public WrappedMavenProject(MavenProject innerProject) { this.innerProject = innerProject; } WrappedMavenProject(MavenProject innerProject); @Override Object getRawProject(); @Override String getProjectId(); @Override String getVersion(); @Override String getBuildDirectory(); @Override File getConfigFile();  }