FileExists extends SingleCondition<FileExists> { @SuppressWarnings("PMD.UnnecessaryConstructor") public FileExists() { } @SuppressWarnings("PMD.UnnecessaryConstructor")  FileExists(); @Override String getDescription();  }
@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"); }