Skip to content

Commit

Permalink
Fixing Travis CI Builds
Browse files Browse the repository at this point in the history
Autocommit Tue Feb 21 14:24:41 AEDT 2017
  • Loading branch information
mxro committed Feb 21, 2017
1 parent e7e333d commit 11b0d17
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 18 deletions.
12 changes: 3 additions & 9 deletions src/test/java/de/mxro/maven/tools/tests/TestGenerateHashes.java
Expand Up @@ -4,7 +4,6 @@
import de.mxro.file.Jre.FilesJre;
import de.mxro.maven.tools.WriteHashes;
import java.io.File;
import java.nio.file.Path;
import org.eclipse.xtend2.lib.StringConcatenation;
import org.eclipse.xtext.xbase.lib.Exceptions;
import org.eclipse.xtext.xbase.lib.Functions.Function0;
Expand All @@ -21,17 +20,12 @@ public class TestGenerateHashes {
@Test
public void test() {
try {
File _newFolder = this.folder.newFolder("test");
final FileItem folder = FilesJre.wrap(_newFolder);
final FileItem folder = FilesJre.wrap(this.folder.newFolder("test"));
final FileItem pom = folder.createFile("pom.xml");
pom.setText(TestGenerateHashes.POM_CONTENT);
String _path = pom.getPath();
File _file = new File(_path);
Path _path_1 = _file.toPath();
WriteHashes.forFile(_path_1);
FileItem _get = folder.get("pom.xml.md5");
String _text = _get.getText();
InputOutput.<String>println(_text);
WriteHashes.forFile(new File(_path).toPath());
InputOutput.<String>println(folder.get("pom.xml.md5").getText());
} catch (Throwable _e) {
throw Exceptions.sneakyThrow(_e);
}
Expand Down
Expand Up @@ -24,20 +24,16 @@ public class TestThatDependenciesCanBeReplaced {

@Test
public void test() {
File _newFolder = this.tempFolder.newFolder("test");
final FileItem root = FilesJre.wrap(_newFolder);
final FileItem root = FilesJre.wrap(this.tempFolder.newFolder("test"));
final FileItem pom = root.createFile("pom.xml");
pom.setText(this.examplePom);
String _path = root.getPath();
File _file = new File(_path);
Dependency _define = Dependency.define("junit", "junit", null);
Dependency _define_1 = Dependency.define("junit", "junit", "4.11");
MavenProject.replaceDependency(_file, _define, _define_1);
String _text = pom.getText();
boolean _contains = _text.contains("<version>4.7</version>");
MavenProject.replaceDependency(_file, Dependency.define("junit", "junit", null),
Dependency.define("junit", "junit", "4.11"));
boolean _contains = pom.getText().contains("<version>4.7</version>");
TestThatDependenciesCanBeReplaced.<Boolean, Boolean>operator_doubleArrow(Boolean.valueOf(_contains), Boolean.valueOf(false));
String _text_1 = pom.getText();
boolean _contains_1 = _text_1.contains("<version>4.11</version>");
boolean _contains_1 = pom.getText().contains("<version>4.11</version>");
TestThatDependenciesCanBeReplaced.<Boolean, Boolean>operator_doubleArrow(Boolean.valueOf(_contains_1), Boolean.valueOf(true));
}

Expand Down

0 comments on commit 11b0d17

Please sign in to comment.