Skip to content
Snippets Groups Projects
Commit 4ffd70a1 authored by felmer's avatar felmer
Browse files

LMS-1257 tiny clean-up

SVN: 13310
parent df109bcd
No related branches found
No related tags found
No related merge requests found
...@@ -16,9 +16,6 @@ ...@@ -16,9 +16,6 @@
package ch.systemsx.cisd.openbis.generic.client.web.client.testframework; package ch.systemsx.cisd.openbis.generic.client.web.client.testframework;
import java.util.ArrayList;
import java.util.List;
import junit.framework.Assert; import junit.framework.Assert;
import com.google.gwt.user.client.rpc.AsyncCallback; import com.google.gwt.user.client.rpc.AsyncCallback;
...@@ -36,9 +33,6 @@ import ch.systemsx.cisd.openbis.generic.client.web.client.application.AbstractAs ...@@ -36,9 +33,6 @@ import ch.systemsx.cisd.openbis.generic.client.web.client.application.AbstractAs
*/ */
public abstract class AbstractDefaultTestCommand extends Assert implements ITestCommand public abstract class AbstractDefaultTestCommand extends Assert implements ITestCommand
{ {
// TODO 2009-11-10, Piotr Buczek: expected callbacks are now completely ignored - cleanup
protected final List<String> expectedCallbackIds = new ArrayList<String>();
/** /**
* Creates an instance with initially no expected callback class. * Creates an instance with initially no expected callback class.
*/ */
...@@ -65,17 +59,10 @@ public abstract class AbstractDefaultTestCommand extends Assert implements ITest ...@@ -65,17 +59,10 @@ public abstract class AbstractDefaultTestCommand extends Assert implements ITest
/** /**
* Adds the callback with the specified id. * Adds the callback with the specified id.
*/ */
// TODO 2009-11-11, Franz-Josef Elmer: Remove this method because expected callbacks are now completely ignored.
public void addCallbackClass(final String callbackId) public void addCallbackClass(final String callbackId)
{ {
System.out.println("The command " + getClass().getName() + " is waiting for callback " // ignored
+ callbackId);
// escaping is needed because we use callbackId as a regular expression
expectedCallbackIds.add(escape(callbackId));
}
private String escape(String string)
{
return string.replace("$", "\\$");
} }
public boolean isValidOnSucess(Object result) public boolean isValidOnSucess(Object result)
......
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