summaryrefslogtreecommitdiffstats
path: root/server/tests
diff options
context:
space:
mode:
authorJonatan Kronqvist <jonatan@vaadin.com>2014-04-08 15:02:58 +0300
committerJonatan Kronqvist <jonatan@vaadin.com>2014-04-14 11:43:18 +0300
commitd2e24feb09ccba7f3a2f253687488774af2bc340 (patch)
treef66161d98c5c1638741569c45712a6f06e7fd756 /server/tests
parent51c2e93172b0132ead54573c74117efac29c1cec (diff)
downloadvaadin-framework-d2e24feb09ccba7f3a2f253687488774af2bc340.tar.gz
vaadin-framework-d2e24feb09ccba7f3a2f253687488774af2bc340.zip
Update some APIs based on the 7.2 API review comments
* NotificationConfiguration "helpers" removed from Notification * NotificationConfiguration methods accept Type instead of style (String) * Tab.setIconAltText -> Tab.setIconAlternateText * Remove the two new TabSheet.addTab() methods * UI.reinit() -> UI.refresh() Change-Id: I97488e7c6de8cfacc591450d69c821b2973b8707
Diffstat (limited to 'server/tests')
-rw-r--r--server/tests/src/com/vaadin/ui/UIInitRefreshTest.java (renamed from server/tests/src/com/vaadin/ui/UIInitReinitTest.java)14
1 files changed, 7 insertions, 7 deletions
diff --git a/server/tests/src/com/vaadin/ui/UIInitReinitTest.java b/server/tests/src/com/vaadin/ui/UIInitRefreshTest.java
index f8ec0e68c2..a807e4b656 100644
--- a/server/tests/src/com/vaadin/ui/UIInitReinitTest.java
+++ b/server/tests/src/com/vaadin/ui/UIInitRefreshTest.java
@@ -27,10 +27,10 @@ import com.vaadin.server.Page.UriFragmentChangedEvent;
import com.vaadin.server.Page.UriFragmentChangedListener;
import com.vaadin.server.VaadinRequest;
-public class UIInitReinitTest {
+public class UIInitRefreshTest {
private boolean initCalled;
- private boolean reinitCalled;
+ private boolean refreshCalled;
private boolean fragmentChangeCalled;
private boolean browserWindowResizeCalled;
@@ -52,8 +52,8 @@ public class UIInitReinitTest {
}
@Override
- protected void reinit(VaadinRequest request) {
- reinitCalled = true;
+ protected void refresh(VaadinRequest request) {
+ refreshCalled = true;
Assert.assertEquals("bar", getPage().getUriFragment());
Assert.assertEquals(200, getPage().getBrowserWindowWidth());
@@ -79,7 +79,7 @@ public class UIInitReinitTest {
@Before
public void setUp() {
- initCalled = reinitCalled = fragmentChangeCalled = browserWindowResizeCalled = false;
+ initCalled = refreshCalled = fragmentChangeCalled = browserWindowResizeCalled = false;
}
@Test
@@ -107,9 +107,9 @@ public class UIInitReinitTest {
Assert.assertFalse(fragmentChangeCalled);
Assert.assertFalse(browserWindowResizeCalled);
- ui.doReinit(reinitRequest);
+ ui.doRefresh(reinitRequest);
- Assert.assertTrue(reinitCalled);
+ Assert.assertTrue(refreshCalled);
Assert.assertTrue(fragmentChangeCalled);
Assert.assertTrue(browserWindowResizeCalled);
}