Search in sources :

Example 1 with FileExists

use of org.mule.tck.probe.file.FileExists in project mule by mulesoft.

the class AbstractDeploymentTestCase method assetArtifactFolderIsMaintained.

private void assetArtifactFolderIsMaintained(String artifactName, File artifactDir) {
    Prober prober = new PollingProber(DEPLOYMENT_TIMEOUT, 100);
    File appFolder = new File(artifactDir, artifactName);
    prober.check(new FileExists(appFolder));
}
Also used : PollingProber(org.mule.tck.probe.PollingProber) PollingProber(org.mule.tck.probe.PollingProber) Prober(org.mule.tck.probe.Prober) FileUtils.toFile(org.apache.commons.io.FileUtils.toFile) TestServicesUtils.buildExpressionLanguageServiceFile(org.mule.functional.services.TestServicesUtils.buildExpressionLanguageServiceFile) File(java.io.File) TestServicesUtils.buildSchedulerServiceFile(org.mule.functional.services.TestServicesUtils.buildSchedulerServiceFile) FileUtils.copyFile(org.apache.commons.io.FileUtils.copyFile) FileExists(org.mule.tck.probe.file.FileExists)

Example 2 with FileExists

use of org.mule.tck.probe.file.FileExists in project mule by mulesoft.

the class DeploymentTestUtils method assertFileExists.

public static void assertFileExists(File pluginsDir, String filePath) {
    Prober prober = new PollingProber(5000, 100);
    File marker = new File(pluginsDir, filePath);
    prober.check(new FileExists(marker));
}
Also used : PollingProber(org.mule.tck.probe.PollingProber) PollingProber(org.mule.tck.probe.PollingProber) Prober(org.mule.tck.probe.Prober) File(java.io.File) FileExists(org.mule.tck.probe.file.FileExists)

Aggregations

File (java.io.File)2 PollingProber (org.mule.tck.probe.PollingProber)2 Prober (org.mule.tck.probe.Prober)2 FileExists (org.mule.tck.probe.file.FileExists)2 FileUtils.copyFile (org.apache.commons.io.FileUtils.copyFile)1 FileUtils.toFile (org.apache.commons.io.FileUtils.toFile)1 TestServicesUtils.buildExpressionLanguageServiceFile (org.mule.functional.services.TestServicesUtils.buildExpressionLanguageServiceFile)1 TestServicesUtils.buildSchedulerServiceFile (org.mule.functional.services.TestServicesUtils.buildSchedulerServiceFile)1