DefineWOApplicationResourcesMojo extends AbstractDefineResourcesMojo { protected File getFrameworksFolder() { return new File(getBuildDirectory(), File.separator + getFinalName() + getClassifierAsString() + ".woa" + File.separator + "Contents" + File.separator + "Frameworks" + File.separator); } DefineWOApplicationResourcesMojo(); static String normalizedPath(final String path); @Override void execute(); @Override String getProductExtension(); @Override MavenProject getProject(); @Override boolean hasContentsFolder(); @Override boolean includesVersionInArtifactName();  }
@Test public void testDefaultFrameworksFolder() throws Exception { mojo.setClassifier(null); File folder = mojo.getFrameworksFolder(); assertThat(folder.getAbsolutePath(), containsString("foo-1.0-SNAPSHOT.woa/Contents/Frameworks")); }
@Test public void testFrameworksFolderWithClassifier() throws Exception { File folder = mojo.getFrameworksFolder(); assertThat(folder.getAbsolutePath(), containsString("foo-1.0-SNAPSHOT-someClassifier.woa/Contents/Frameworks")); }
@Test public void testFrameworksFolderWithFinalName() throws Exception { mojo.setFinalName("foo-bar-name"); mojo.setClassifier(null); File folder = mojo.getFrameworksFolder(); assertThat(folder.getAbsolutePath(), containsString("foo-bar-name.woa/Contents/Frameworks")); }