Skip to content
Snippets Groups Projects
Commit 0aaeb52e authored by tpylak's avatar tpylak
Browse files

minor: fix dss after cifex library update

SVN: 14597
parent 35df0a80
No related branches found
No related tags found
No related merge requests found
......@@ -92,8 +92,7 @@ class UploadingCommand implements IDataSetCommand
{
}
public void finished(boolean successful, List<String> warningMessages,
List<Throwable> exceptions)
public void finished(boolean successful)
{
if (successful)
{
......@@ -105,21 +104,22 @@ class UploadingCommand implements IDataSetCommand
{
operationLog.warn("Uploading of zip file " + zipFile
+ " has been aborted or failed.");
for (String warningMessage : warningMessages)
{
operationLog.warn(warningMessage);
}
for (Throwable throwable : exceptions)
{
notificationLog.error("An error occured during uploading of zip file "
+ zipFile + ".", throwable);
}
sendEMail("Uploading of zip file " + zipFile.getName()
+ " with requested data sets failed.");
}
}
public void exceptionOccured(Throwable throwable)
{
notificationLog.error("An error occured during uploading of zip file " + zipFile + ".",
throwable);
}
public void warningOccured(String warningMessage)
{
operationLog.warn(warningMessage);
}
}
private static final class MetaDataBuilder
......
......@@ -300,8 +300,7 @@ public class UploadingCommandTest extends AssertJUnit
{
public Object invoke(Invocation invocation) throws Throwable
{
listener[0].finished(true, Collections.<String> emptyList(),
Collections.<Throwable> emptyList());
listener[0].finished(true);
return null;
}
});
......@@ -357,8 +356,7 @@ public class UploadingCommandTest extends AssertJUnit
{
public Object invoke(Invocation invocation) throws Throwable
{
listener[0].finished(true, Collections.<String> emptyList(),
Collections.<Throwable> emptyList());
listener[0].finished(true);
return null;
}
});
......@@ -388,13 +386,13 @@ public class UploadingCommandTest extends AssertJUnit
{
one(factory).createCIFEXComponent();
will(returnValue(cifex));
one(cifex).login(uploadContextNoPasswordNotAuthenticated.getUserID(),
uploadContextNoPasswordNotAuthenticated.getPassword());
will(throwException(new AuthorizationFailureException("forget it!")));
}
});
logRecorder.resetLogContent();
commandAdminSessionNotAuthenticated.execute(STORE);
} finally
......@@ -452,8 +450,7 @@ public class UploadingCommandTest extends AssertJUnit
{
public Object invoke(Invocation invocation) throws Throwable
{
listener[0].finished(false, Collections.<String> emptyList(),
Collections.<Throwable> emptyList());
listener[0].finished(false);
return null;
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment