use of org.eclipse.xtext.xbase.lib.Procedures.Procedure0 in project xtext-eclipse by eclipse.
the class AbstractFSSynchronizationTest method testUpdateFileContentWithProjectAsOutput.
@Test
public void testUpdateFileContentWithProjectAsOutput() {
final Procedure1<OutputConfiguration> _function = (OutputConfiguration it) -> {
it.setOutputDirectory("./");
};
final Procedure0 _function_1 = () -> {
this.testUpdateFileContent(this.project);
};
this.withOutputConfiguration(_function, _function_1);
}
use of org.eclipse.xtext.xbase.lib.Procedures.Procedure0 in project xtext-eclipse by eclipse.
the class AbstractFSSynchronizationTest method testCleanUpProjectDerivedResourcesWithDeleteDerived.
@Test
public void testCleanUpProjectDerivedResourcesWithDeleteDerived() {
final Procedure1<OutputConfiguration> _function = (OutputConfiguration it) -> {
it.setOutputDirectory("./");
};
final Procedure0 _function_1 = () -> {
this.testCleanUpDerivedResourcesWithDeleteDerived(this.project);
};
this.withOutputConfiguration(_function, _function_1);
}
use of org.eclipse.xtext.xbase.lib.Procedures.Procedure0 in project xtext-eclipse by eclipse.
the class AbstractFSSynchronizationTest method testDeleteUpdatedDerivedResourceWithProjectAsOutput.
@Test
public void testDeleteUpdatedDerivedResourceWithProjectAsOutput() {
final Procedure1<OutputConfiguration> _function = (OutputConfiguration it) -> {
it.setOutputDirectory("./");
};
final Procedure0 _function_1 = () -> {
this.testDeleteUpdatedDerivedResource(this.project);
};
this.withOutputConfiguration(_function, _function_1);
}
use of org.eclipse.xtext.xbase.lib.Procedures.Procedure0 in project xtext-eclipse by eclipse.
the class AbstractFSSynchronizationTest method testCreateFileWithProjectAsOutput.
@Test
public void testCreateFileWithProjectAsOutput() {
final Procedure1<OutputConfiguration> _function = (OutputConfiguration it) -> {
it.setOutputDirectory("./");
};
final Procedure0 _function_1 = () -> {
this.testCreateFile(this.project);
};
this.withOutputConfiguration(_function, _function_1);
}
use of org.eclipse.xtext.xbase.lib.Procedures.Procedure0 in project xtext-eclipse by eclipse.
the class AbstractFSSynchronizationTest method testCleanOutput_02.
@Test
public void testCleanOutput_02() {
final Procedure1<OutputConfiguration> _function = (OutputConfiguration it) -> {
it.setCanClearOutputDirectory(true);
it.setCleanUpDerivedResources(false);
};
final Procedure0 _function_1 = () -> {
try {
final File srcGenDirectory = this.project.getFolder("src-gen").getLocation().toFile();
Assert.assertFalse(srcGenDirectory.exists());
IResourcesSetupUtil.createFile(this.project.getFile(("src/Foo" + this.F_EXT)).getFullPath(), "object Foo");
IResourcesSetupUtil.reallyWaitForAutoBuild();
Assert.assertTrue(srcGenDirectory.exists());
Assert.assertFalse(((List<File>) Conversions.doWrapArray(srcGenDirectory.listFiles())).isEmpty());
this.createJavaIoFile(this.project.getFile("src-gen/Lalala.txt").getLocation());
IResourcesSetupUtil.cleanBuild();
Assert.assertTrue(srcGenDirectory.exists());
Assert.assertTrue(((List<File>) Conversions.doWrapArray(srcGenDirectory.listFiles())).isEmpty());
} catch (Throwable _e) {
throw Exceptions.sneakyThrow(_e);
}
};
this.withOutputConfiguration(_function, _function_1);
}
Aggregations