diff --git a/src/test/java/hudson/plugins/jobConfigHistory/FileHistoryDaoTest.java b/src/test/java/hudson/plugins/jobConfigHistory/FileHistoryDaoTest.java index 4d975ad1..ffcb3ce1 100644 --- a/src/test/java/hudson/plugins/jobConfigHistory/FileHistoryDaoTest.java +++ b/src/test/java/hudson/plugins/jobConfigHistory/FileHistoryDaoTest.java @@ -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; @@ -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.*; @@ -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 func) throws Exception { + private void printTestData(Callable func) throws Exception { when(mockedNode.getNodeName()).thenReturn("slave1"); File file = sutWithUserAndNoDuplicateHistory.getNodeHistoryRootDir(); File revisions = new File(file, "slave1"); @@ -683,7 +683,7 @@ private void printTestData(Callable func) throws Exception { @Test public void testDeleteNode()throws Exception{ - printTestData(new Callable() { + printTestData(new Callable() { @Override public Void call() throws Exception { sutWithUserAndNoDuplicateHistory.deleteNode(mockedNode); @@ -694,7 +694,7 @@ public Void call() throws Exception { @Test public void testRenameNode() throws Exception{ - printTestData(new Callable() { + printTestData(new Callable() { @Override public Void call() throws Exception { sutWithUserAndNoDuplicateHistory.renameNode(mockedNode,