Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
4ffd70a1
Commit
4ffd70a1
authored
15 years ago
by
felmer
Browse files
Options
Downloads
Patches
Plain Diff
LMS-1257 tiny clean-up
SVN: 13310
parent
df109bcd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openbis/sourceTest/java/ch/systemsx/cisd/openbis/generic/client/web/client/testframework/AbstractDefaultTestCommand.java
+2
-15
2 additions, 15 deletions
.../web/client/testframework/AbstractDefaultTestCommand.java
with
2 additions
and
15 deletions
openbis/sourceTest/java/ch/systemsx/cisd/openbis/generic/client/web/client/testframework/AbstractDefaultTestCommand.java
+
2
−
15
View file @
4ffd70a1
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment