summaryrefslogtreecommitdiffstats
path: root/server/tests/src
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2012-11-13 16:29:01 +0200
committerArtur Signell <artur@vaadin.com>2012-11-13 16:29:01 +0200
commitad54bec291ebb929f55b4f9208ed29f018223659 (patch)
treea2e64210f6b0d322fd2a42f1377fceb86b4a6d64 /server/tests/src
parentd65970d329249c6725ec0bafd46725405492e833 (diff)
downloadvaadin-framework-ad54bec291ebb929f55b4f9208ed29f018223659.tar.gz
vaadin-framework-ad54bec291ebb929f55b4f9208ed29f018223659.zip
Renamed uri fragment methods in Page to use UriFragment instead of Fragment (#10141)
Change-Id: I1c5826a667e718ec147807889082d27392cf44e8
Diffstat (limited to 'server/tests/src')
-rw-r--r--server/tests/src/com/vaadin/tests/server/navigator/UriFragmentManagerTest.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/server/tests/src/com/vaadin/tests/server/navigator/UriFragmentManagerTest.java b/server/tests/src/com/vaadin/tests/server/navigator/UriFragmentManagerTest.java
index 41bebfcf0c..c680e59210 100644
--- a/server/tests/src/com/vaadin/tests/server/navigator/UriFragmentManagerTest.java
+++ b/server/tests/src/com/vaadin/tests/server/navigator/UriFragmentManagerTest.java
@@ -24,18 +24,18 @@ import org.easymock.IMocksControl;
import com.vaadin.navigator.Navigator;
import com.vaadin.navigator.Navigator.UriFragmentManager;
import com.vaadin.server.Page;
-import com.vaadin.server.Page.FragmentChangedEvent;
+import com.vaadin.server.Page.UriFragmentChangedEvent;
public class UriFragmentManagerTest extends TestCase {
- public void testGetSetFragment() {
+ public void testGetSetUriFragment() {
Page page = EasyMock.createMock(Page.class);
UriFragmentManager manager = new UriFragmentManager(page);
// prepare mock
- EasyMock.expect(page.getFragment()).andReturn("");
- page.setFragment("!test", false);
- EasyMock.expect(page.getFragment()).andReturn("!test");
+ EasyMock.expect(page.getUriFragment()).andReturn("");
+ page.setUriFragment("!test", false);
+ EasyMock.expect(page.getUriFragment()).andReturn("!test");
EasyMock.replay(page);
// test manager using the mock
@@ -53,11 +53,11 @@ public class UriFragmentManagerTest extends TestCase {
UriFragmentManager manager = new UriFragmentManager(page);
manager.setNavigator(navigator);
- EasyMock.expect(page.getFragment()).andReturn("!test");
+ EasyMock.expect(page.getUriFragment()).andReturn("!test");
navigator.navigateTo("test");
control.replay();
- FragmentChangedEvent event = new FragmentChangedEvent(page, "oldtest");
- manager.fragmentChanged(event);
+ UriFragmentChangedEvent event = new UriFragmentChangedEvent(page, "oldtest");
+ manager.uriFragmentChanged(event);
}
}