@Test public void fileExistsTest() { FileExists fileExists = new FileExists().relative("/src/main/resources/application.properties"); TUExecutionResult executionResult = fileExists.execution(transformedAppFolder, transformationContext); Assert.assertEquals(executionResult.getType(), TUExecutionResult.Type.VALUE); Assert.assertNotNull(executionResult.getValue()); Assert.assertTrue((Boolean) executionResult.getValue()); Assert.assertEquals(fileExists.getDescription(), "Check if file or folder '/src/main/resources/application.properties' exists"); }
@SuppressWarnings("PMD.UnnecessaryConstructor") public FileExists() { }
FileExists extends SingleCondition<FileExists> { @SuppressWarnings("PMD.UnnecessaryConstructor") public FileExists() { } }
FileExists extends SingleCondition<FileExists> { @SuppressWarnings("PMD.UnnecessaryConstructor") public FileExists() { } @SuppressWarnings("PMD.UnnecessaryConstructor")  FileExists(); }
FileExists extends SingleCondition<FileExists> { @SuppressWarnings("PMD.UnnecessaryConstructor") public FileExists() { } @SuppressWarnings("PMD.UnnecessaryConstructor")  FileExists(); @Override String getDescription(); }
FileExists extends SingleCondition<FileExists> { @SuppressWarnings("PMD.UnnecessaryConstructor") public FileExists() { } @SuppressWarnings("PMD.UnnecessaryConstructor")  FileExists(); @Override String getDescription();  }