Skip to content

Commit

Permalink
Merge pull request #41 from jglick/test-against-new-baseline
Browse files Browse the repository at this point in the history
Allow plugin to compile against newer baselines
  • Loading branch information
Stefan Brausch committed Dec 18, 2014
2 parents 04c5d9a + d329c88 commit c2fb690
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -33,7 +33,6 @@
import hudson.XmlFile;
import hudson.model.AbstractItem;
import hudson.model.User;
import hudson.remoting.Callable;
import hudson.util.IOUtils;
import java.io.File;
import java.io.FileNotFoundException;
Expand All @@ -47,6 +46,7 @@
import java.util.Date;
import java.util.GregorianCalendar;
import java.util.SortedMap;
import java.util.concurrent.Callable;
import java.util.concurrent.atomic.AtomicReference;
import org.apache.commons.io.FileUtils;
import static org.hamcrest.Matchers.*;
Expand Down Expand Up @@ -654,7 +654,7 @@ public void testCreateNewNode()throws Exception{
* Runs a test, which renames or deletes a node.
* This method decouples the shared logic from {@link #testDeleteNode()} and {@link #testRenameNode()}.
*/
private void printTestData(Callable<Void, Exception> func) throws Exception {
private void printTestData(Callable<Void> func) throws Exception {
when(mockedNode.getNodeName()).thenReturn("slave1");
File file = sutWithUserAndNoDuplicateHistory.getNodeHistoryRootDir();
File revisions = new File(file, "slave1");
Expand Down Expand Up @@ -683,7 +683,7 @@ private void printTestData(Callable<Void, Exception> func) throws Exception {

@Test
public void testDeleteNode()throws Exception{
printTestData(new Callable<Void, Exception>() {
printTestData(new Callable<Void>() {
@Override
public Void call() throws Exception {
sutWithUserAndNoDuplicateHistory.deleteNode(mockedNode);
Expand All @@ -694,7 +694,7 @@ public Void call() throws Exception {

@Test
public void testRenameNode() throws Exception{
printTestData(new Callable<Void, Exception>() {
printTestData(new Callable<Void>() {
@Override
public Void call() throws Exception {
sutWithUserAndNoDuplicateHistory.renameNode(mockedNode,
Expand Down

0 comments on commit c2fb690

Please sign in to comment.