diff options
author | Henri Sara <henri.sara@itmill.com> | 2009-12-01 07:07:12 +0000 |
---|---|---|
committer | Henri Sara <henri.sara@itmill.com> | 2009-12-01 07:07:12 +0000 |
commit | d645c3db7409978fe318c278b1158f987fc59a6a (patch) | |
tree | 45942cb266a72f9648a20171c24b3eeff08aa70a /tests | |
parent | 0d588b3eb06bf4cc8246701946fc3560084d9c10 (diff) | |
download | vaadin-framework-d645c3db7409978fe318c278b1158f987fc59a6a.tar.gz vaadin-framework-d645c3db7409978fe318c278b1158f987fc59a6a.zip |
Fixed automated test after refactoring: reference to context.startTransaction()
svn changeset:10109/svn branch:6.2
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/com/vaadin/tests/server/TransactionListenersConcurrency.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/src/com/vaadin/tests/server/TransactionListenersConcurrency.java b/tests/src/com/vaadin/tests/server/TransactionListenersConcurrency.java index d33163ddae..c3e914a806 100644 --- a/tests/src/com/vaadin/tests/server/TransactionListenersConcurrency.java +++ b/tests/src/com/vaadin/tests/server/TransactionListenersConcurrency.java @@ -13,7 +13,6 @@ import java.util.List; import java.util.Properties;
import java.util.Random;
-import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import junit.framework.TestCase;
@@ -22,6 +21,7 @@ import org.easymock.EasyMock; import com.vaadin.Application;
import com.vaadin.service.ApplicationContext.TransactionListener;
+import com.vaadin.terminal.gwt.server.AbstractWebApplicationContext;
import com.vaadin.terminal.gwt.server.WebApplicationContext;
public class TransactionListenersConcurrency extends TestCase {
@@ -32,7 +32,7 @@ public class TransactionListenersConcurrency extends TestCase { * transaction is then started for each application. Some semi-random delays
* are included so that calls to addTransactionListener and
* WebApplicationContext.startTransaction are mixed.
- *
+ *
*/
public void testTransactionListeners() throws Exception {
final List<Throwable> exceptions = new ArrayList<Throwable>();
@@ -81,9 +81,9 @@ public class TransactionListenersConcurrency extends TestCase { // Call the transaction listener using reflection as
// startTransaction is protected.
- Method m = context.getClass().getDeclaredMethod(
- "startTransaction", Application.class,
- HttpServletRequest.class);
+ Method m = AbstractWebApplicationContext.class
+ .getDeclaredMethod("startTransaction",
+ Application.class, Object.class);
m.setAccessible(true);
m.invoke(context, app, null);
} catch (Exception e) {
@@ -133,7 +133,7 @@ public class TransactionListenersConcurrency extends TestCase { /**
* Creates a HttpSession mock
- *
+ *
*/
private static HttpSession createSession() {
HttpSession session = createMock(HttpSession.class);
@@ -151,7 +151,7 @@ public class TransactionListenersConcurrency extends TestCase { /**
* A transaction listener that just sleeps for the given amount of time in
* transactionStart and transactionEnd.
- *
+ *
*/
public static class DelayTransactionListener implements TransactionListener {
|