@Test public void locateFileTest() throws IOException { LocateFile locateFile = new LocateFile().relative("pom.xml"); TUExecutionResult executionResult = locateFile.execution(transformedAppFolder, transformationContext); Assert.assertEquals(executionResult.getType(), TUExecutionResult.Type.VALUE); Assert.assertNotNull(executionResult.getValue()); File rootFile = (File) executionResult.getValue(); Assert.assertEquals(rootFile, new File(transformedAppFolder, "pom.xml")); Assert.assertEquals(locateFile.getParentLevel(), 0); Assert.assertEquals(locateFile.getDescription(), "Locate file pom.xml"); }
public LocateFile() { }
LocateFile extends TransformationUtility<LocateFile> { public LocateFile() { } }
LocateFile extends TransformationUtility<LocateFile> { public LocateFile() { } LocateFile();  LocateFile(int parentLevel); }
LocateFile extends TransformationUtility<LocateFile> { public LocateFile() { } LocateFile();  LocateFile(int parentLevel); LocateFile setParentLevel(int parentLevel); int getParentLevel(); @Override String getDescription(); }
LocateFile extends TransformationUtility<LocateFile> { public LocateFile() { } LocateFile();  LocateFile(int parentLevel); LocateFile setParentLevel(int parentLevel); int getParentLevel(); @Override String getDescription();  }