Skip to content
Snippets Groups Projects
Commit 13315f3e authored by buczekp's avatar buczekp
Browse files

[LMS-1268] fixed system tests

SVN: 13397
parent e64297b1
No related branches found
No related tags found
No related merge requests found
......@@ -145,17 +145,18 @@ public class RemoteConsole
final Object result)
{
detectCallback(callback);
if (entryIndex < commands.size())
// Sometimes there are no callbacks activated between execution of two commands.
// We invoke them one after another in a while loop.
while (areAllCallbacksFinished() && entryIndex < commands.size())
{
ITestCommand cmd = commands.get(entryIndex);
// Sometimes there are no callbacks activated between execution of two commands.
// We invoke them one after another in a while loop.
while (cmd.isValidOnSucess(result) && areAllCallbacksFinished())
if (cmd.isValidOnSucess(result))
{
while (areAllCallbacksFinished())
{
executeCommand();
}
executeCommand();
} else
{
// expected failure
return;
}
}
}
......@@ -168,8 +169,8 @@ public class RemoteConsole
if (entryIndex < commands.size())
{
ITestCommand cmd = commands.get(entryIndex);
// It doesn't need to be the last callbacks that fails,
// and it should rather be the last command.
// It doesn't need to be the last callback that fails,
// but command that expects failure should be the last one.
if (cmd.isValidOnFailure(callback, failureMessage, throwable))
{
executeCommand();
......
......@@ -14,11 +14,13 @@
* limitations under the License.
*/
package ch.systemsx.cisd.openbis.generic.shared.basic;
package ch.systemsx.cisd.openbis.generic.shared;
import org.testng.AssertJUnit;
import org.testng.annotations.Test;
import ch.systemsx.cisd.openbis.generic.shared.basic.URLMethodWithParameters;
/**
*
*
......
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