Skip to content
Snippets Groups Projects
Commit 1d6d021f authored by buczekp's avatar buczekp
Browse files

last chance to fix (old) system tests

SVN: 21807
parent cbebcf94
No related branches found
No related tags found
No related merge requests found
...@@ -231,6 +231,11 @@ public abstract class AbstractAsyncCallback<T> implements AsyncCallback<T> ...@@ -231,6 +231,11 @@ public abstract class AbstractAsyncCallback<T> implements AsyncCallback<T>
if (caught instanceof InvalidSessionException) if (caught instanceof InvalidSessionException)
{ {
handleSessionTerminated(msg); handleSessionTerminated(msg);
// only for tests
if (staticCallbackListener != DEFAULT_CALLBACK_LISTENER)
{
callbackListener.onFailureOf(viewContext, this, msg, caught);
}
} else } else
{ {
callbackListener.onFailureOf(viewContext, this, msg, caught); callbackListener.onFailureOf(viewContext, this, msg, caught);
...@@ -274,6 +279,7 @@ public abstract class AbstractAsyncCallback<T> implements AsyncCallback<T> ...@@ -274,6 +279,7 @@ public abstract class AbstractAsyncCallback<T> implements AsyncCallback<T>
private void showSessionTerminated(String msg) private void showSessionTerminated(String msg)
{ {
System.err.println("Session terminated"); // only for tests
Dialog dialog = new Dialog(); Dialog dialog = new Dialog();
GWTUtils.setToolTip(dialog, getMessage(Dict.MESSAGEBOX_WARNING)); GWTUtils.setToolTip(dialog, getMessage(Dict.MESSAGEBOX_WARNING));
......
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