summaryrefslogtreecommitdiffstats
path: root/tests/server-side/com/vaadin
diff options
context:
space:
mode:
authorJohannes Dahlström <johannesd@vaadin.com>2012-06-19 13:46:38 +0300
committerJohannes Dahlström <johannesd@vaadin.com>2012-06-19 13:46:38 +0300
commitd3a13928a8f856ae3bff668db7f13d6f60f7a358 (patch)
tree3018f9bc5251958d1ac92735f52420448ae26796 /tests/server-side/com/vaadin
parent66e9b8cec5bd22672b8498716015ec3e2dc748aa (diff)
parent10237a5329d87c44e5d6d0ccd4a19231549f0a2d (diff)
downloadvaadin-framework-d3a13928a8f856ae3bff668db7f13d6f60f7a358.tar.gz
vaadin-framework-d3a13928a8f856ae3bff668db7f13d6f60f7a358.zip
Merge remote-tracking branch 'origin/master'
Conflicts: tests/testbench/com/vaadin/tests/integration/EmbedSizeTest.java
Diffstat (limited to 'tests/server-side/com/vaadin')
-rw-r--r--tests/server-side/com/vaadin/tests/server/navigator/NavigatorTest.java6
-rw-r--r--tests/server-side/com/vaadin/tests/server/navigator/UriFragmentManagerTest.java24
2 files changed, 15 insertions, 15 deletions
diff --git a/tests/server-side/com/vaadin/tests/server/navigator/NavigatorTest.java b/tests/server-side/com/vaadin/tests/server/navigator/NavigatorTest.java
index ab983b4022..03f49d4ab6 100644
--- a/tests/server-side/com/vaadin/tests/server/navigator/NavigatorTest.java
+++ b/tests/server-side/com/vaadin/tests/server/navigator/NavigatorTest.java
@@ -19,9 +19,9 @@ import com.vaadin.navigator.ViewChangeListener;
import com.vaadin.navigator.ViewChangeListener.ViewChangeEvent;
import com.vaadin.navigator.ViewDisplay;
import com.vaadin.navigator.ViewProvider;
+import com.vaadin.terminal.Page;
import com.vaadin.tests.server.navigator.ClassBasedViewProviderTest.TestView;
import com.vaadin.tests.server.navigator.ClassBasedViewProviderTest.TestView2;
-import com.vaadin.ui.Root;
public class NavigatorTest extends TestCase {
@@ -366,9 +366,9 @@ public class NavigatorTest extends TestCase {
public void testDefaultDisplayType() {
IMocksControl control = EasyMock.createControl();
- Root root = control.createMock(Root.class);
+ Page page = control.createMock(Page.class);
- Navigator navigator = new Navigator(root);
+ Navigator navigator = new Navigator(page);
assertEquals("Default display should be a SimpleViewDisplay",
SimpleViewDisplay.class, navigator.getDisplay().getClass());
diff --git a/tests/server-side/com/vaadin/tests/server/navigator/UriFragmentManagerTest.java b/tests/server-side/com/vaadin/tests/server/navigator/UriFragmentManagerTest.java
index cfbf50f256..65294b2913 100644
--- a/tests/server-side/com/vaadin/tests/server/navigator/UriFragmentManagerTest.java
+++ b/tests/server-side/com/vaadin/tests/server/navigator/UriFragmentManagerTest.java
@@ -11,20 +11,20 @@ import org.easymock.IMocksControl;
import com.vaadin.navigator.Navigator;
import com.vaadin.navigator.Navigator.UriFragmentManager;
-import com.vaadin.ui.Root;
-import com.vaadin.ui.Root.FragmentChangedEvent;
+import com.vaadin.terminal.Page;
+import com.vaadin.terminal.Page.FragmentChangedEvent;
public class UriFragmentManagerTest extends TestCase {
public void testGetSetFragment() {
- Root root = EasyMock.createMock(Root.class);
- UriFragmentManager manager = new UriFragmentManager(root, null);
+ Page page = EasyMock.createMock(Page.class);
+ UriFragmentManager manager = new UriFragmentManager(page, null);
// prepare mock
- EasyMock.expect(root.getFragment()).andReturn("");
- root.setFragment("test");
- EasyMock.expect(root.getFragment()).andReturn("test");
- EasyMock.replay(root);
+ EasyMock.expect(page.getFragment()).andReturn("");
+ page.setFragment("test");
+ EasyMock.expect(page.getFragment()).andReturn("test");
+ EasyMock.replay(page);
// test manager using the mock
assertEquals("Incorrect fragment value", "", manager.getFragment());
@@ -36,15 +36,15 @@ public class UriFragmentManagerTest extends TestCase {
// create mocks
IMocksControl control = EasyMock.createControl();
Navigator navigator = control.createMock(Navigator.class);
- Root root = control.createMock(Root.class);
+ Page page = control.createMock(Page.class);
- UriFragmentManager manager = new UriFragmentManager(root, navigator);
+ UriFragmentManager manager = new UriFragmentManager(page, navigator);
- EasyMock.expect(root.getFragment()).andReturn("test");
+ EasyMock.expect(page.getFragment()).andReturn("test");
navigator.navigateTo("test");
control.replay();
- FragmentChangedEvent event = root.new FragmentChangedEvent(root,
+ FragmentChangedEvent event = page.new FragmentChangedEvent(page,
"oldtest");
manager.fragmentChanged(event);
}