use of org.eclipse.tycho.core.shared.BuildPropertiesImpl in project tycho by eclipse.
the class IncludeValidationHelperTest method testCheckBinIncludesExistWithIgnoredPatterns.
@Test
public void testCheckBinIncludesExistWithIgnoredPatterns() throws Exception {
BuildPropertiesImpl buildProperties = createBuildProperties("bin.includes", "foo.txt, bar*,**/*.me,TO_BE_IGNORED");
subject.checkBinIncludesExist(createMockProject(), buildProperties, true, "TO_BE_IGNORED");
}
use of org.eclipse.tycho.core.shared.BuildPropertiesImpl in project tycho by eclipse.
the class IncludeValidationHelperTest method testCheckBinIncludesDontExist.
@Test
public void testCheckBinIncludesDontExist() throws Exception {
BuildPropertiesImpl buildProperties = createBuildProperties("bin.includes", "foo2.txt, bar2*,**/*.me");
try {
subject.checkBinIncludesExist(createMockProject(), buildProperties, true);
fail();
} catch (MojoExecutionException e) {
assertStringContains("bin.includes value(s) [foo2.txt, bar2*] do not match any files.", e.getMessage());
}
}
Aggregations