Skip to content

Commit

Permalink
[JENKINS-54916] Eliminate some of the Job DSL tests
Browse files Browse the repository at this point in the history
  • Loading branch information
olivergondza committed Jan 4, 2019
1 parent 55f2292 commit 84a610d
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 84a610d

Please sign in to comment.