Skip to content

Commit

Permalink
Merge pull request #472 from olivergondza/JENKINS-54916
Browse files Browse the repository at this point in the history
[JENKINS-54916] Eliminate some of the Job DSL tests
  • Loading branch information
olivergondza committed Jan 7, 2019
2 parents febf279 + 84a610d commit 2096d2a
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 659 deletions.
9 changes: 9 additions & 0 deletions src/main/java/org/jenkinsci/test/acceptance/utils/IOUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,13 @@ public static HttpURLConnection openConnection(@Nonnull URL url) throws IOExcept
httpURLConnection.setReadTimeout(timeout);
return httpURLConnection;
}

public static String multiline(String... lines) {
String newline = System.lineSeparator();
StringBuilder sb = new StringBuilder();
for (String line : lines) {
sb.append(line).append(newline);
}
return sb.toString();
}
}

0 comments on commit 2096d2a

Please sign in to comment.