summaryrefslogtreecommitdiffstats
path: root/uitest
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2013-04-25 14:01:27 +0300
committerLeif Åstrand <leif@vaadin.com>2013-04-25 14:01:27 +0300
commit220b1150ca411a63009d7f30e0400dc062f10c27 (patch)
tree1b68d5ccf3dc2521caec0bb89fdb556d6742f69c /uitest
parent10b877bd1497dbc50e34f391134b9c1f86b683be (diff)
downloadvaadin-framework-220b1150ca411a63009d7f30e0400dc062f10c27.tar.gz
vaadin-framework-220b1150ca411a63009d7f30e0400dc062f10c27.zip
Global code clean up
Change-Id: I380d6afbc6b30d817ea6cca3d6b4634ab12522b1
Diffstat (limited to 'uitest')
-rw-r--r--uitest/src/com/vaadin/tests/components/ui/LoadingIndicatorConfigurationTest.java33
-rw-r--r--uitest/src/com/vaadin/tests/components/ui/TooltipConfiguration.java4
-rw-r--r--uitest/src/com/vaadin/tests/layouts/VerticalLayoutSlotExpansionAndAlignment.java1
-rw-r--r--uitest/src/com/vaadin/tests/minitutorials/broadcastingmessages/Broadcaster.java2
-rw-r--r--uitest/src/com/vaadin/tests/minitutorials/broadcastingmessages/BroadcasterUI.java1
-rw-r--r--uitest/src/com/vaadin/tests/widgetset/server/RoundTripTester.java3
6 files changed, 20 insertions, 24 deletions
diff --git a/uitest/src/com/vaadin/tests/components/ui/LoadingIndicatorConfigurationTest.java b/uitest/src/com/vaadin/tests/components/ui/LoadingIndicatorConfigurationTest.java
index 0d962309e4..3c857a8753 100644
--- a/uitest/src/com/vaadin/tests/components/ui/LoadingIndicatorConfigurationTest.java
+++ b/uitest/src/com/vaadin/tests/components/ui/LoadingIndicatorConfigurationTest.java
@@ -47,27 +47,24 @@ public class LoadingIndicatorConfigurationTest extends AbstractTestUIWithLog {
});
secondDelay = createIntegerTextField("Second delay (ms)",
getState().loadingIndicatorConfiguration.secondDelay);
- secondDelay
- .addValueChangeListener(new Property.ValueChangeListener() {
- @Override
- public void valueChange(ValueChangeEvent event) {
- getLoadingIndicatorConfiguration().setSecondDelay(
- (Integer) secondDelay.getConvertedValue());
- }
- });
+ secondDelay.addValueChangeListener(new Property.ValueChangeListener() {
+ @Override
+ public void valueChange(ValueChangeEvent event) {
+ getLoadingIndicatorConfiguration().setSecondDelay(
+ (Integer) secondDelay.getConvertedValue());
+ }
+ });
thirdDelay = createIntegerTextField("Third delay (ms)",
getState().loadingIndicatorConfiguration.thirdDelay);
- thirdDelay
- .addValueChangeListener(new Property.ValueChangeListener() {
- @Override
- public void valueChange(ValueChangeEvent event) {
- getLoadingIndicatorConfiguration().setThirdDelay(
- (Integer) thirdDelay.getConvertedValue());
- }
- });
+ thirdDelay.addValueChangeListener(new Property.ValueChangeListener() {
+ @Override
+ public void valueChange(ValueChangeEvent event) {
+ getLoadingIndicatorConfiguration().setThirdDelay(
+ (Integer) thirdDelay.getConvertedValue());
+ }
+ });
- getLayout()
- .addComponents(firstDelay, secondDelay, thirdDelay);
+ getLayout().addComponents(firstDelay, secondDelay, thirdDelay);
HorizontalLayout hl = new HorizontalLayout();
hl.setMargin(true);
diff --git a/uitest/src/com/vaadin/tests/components/ui/TooltipConfiguration.java b/uitest/src/com/vaadin/tests/components/ui/TooltipConfiguration.java
index 2227e89256..4d201d2a1a 100644
--- a/uitest/src/com/vaadin/tests/components/ui/TooltipConfiguration.java
+++ b/uitest/src/com/vaadin/tests/components/ui/TooltipConfiguration.java
@@ -41,8 +41,8 @@ public class TooltipConfiguration extends AbstractTestUIWithLog {
maxWidth.addValueChangeListener(new Property.ValueChangeListener() {
@Override
public void valueChange(ValueChangeEvent event) {
- getTooltipConfiguration()
- .setMaxWidth((Integer) maxWidth.getConvertedValue());
+ getTooltipConfiguration().setMaxWidth(
+ (Integer) maxWidth.getConvertedValue());
}
});
openDelay = createIntegerTextField("Open delay",
diff --git a/uitest/src/com/vaadin/tests/layouts/VerticalLayoutSlotExpansionAndAlignment.java b/uitest/src/com/vaadin/tests/layouts/VerticalLayoutSlotExpansionAndAlignment.java
index bba8ccf120..fe2dd6cea8 100644
--- a/uitest/src/com/vaadin/tests/layouts/VerticalLayoutSlotExpansionAndAlignment.java
+++ b/uitest/src/com/vaadin/tests/layouts/VerticalLayoutSlotExpansionAndAlignment.java
@@ -1,6 +1,5 @@
package com.vaadin.tests.layouts;
-import com.vaadin.annotations.Theme;
import com.vaadin.server.VaadinRequest;
import com.vaadin.ui.Alignment;
import com.vaadin.ui.HorizontalLayout;
diff --git a/uitest/src/com/vaadin/tests/minitutorials/broadcastingmessages/Broadcaster.java b/uitest/src/com/vaadin/tests/minitutorials/broadcastingmessages/Broadcaster.java
index e355cd1dbd..57ad0d97ba 100644
--- a/uitest/src/com/vaadin/tests/minitutorials/broadcastingmessages/Broadcaster.java
+++ b/uitest/src/com/vaadin/tests/minitutorials/broadcastingmessages/Broadcaster.java
@@ -1,4 +1,3 @@
-package com.vaadin.tests.minitutorials.broadcastingmessages;
/*
* Copyright 2000-2013 Vaadin Ltd.
*
@@ -15,6 +14,7 @@ package com.vaadin.tests.minitutorials.broadcastingmessages;
* the License.
*/
+package com.vaadin.tests.minitutorials.broadcastingmessages;
import java.util.ArrayList;
import java.util.List;
diff --git a/uitest/src/com/vaadin/tests/minitutorials/broadcastingmessages/BroadcasterUI.java b/uitest/src/com/vaadin/tests/minitutorials/broadcastingmessages/BroadcasterUI.java
index 80c847250d..88ab4af967 100644
--- a/uitest/src/com/vaadin/tests/minitutorials/broadcastingmessages/BroadcasterUI.java
+++ b/uitest/src/com/vaadin/tests/minitutorials/broadcastingmessages/BroadcasterUI.java
@@ -1,6 +1,5 @@
package com.vaadin.tests.minitutorials.broadcastingmessages;
-
import com.vaadin.server.VaadinRequest;
import com.vaadin.tests.minitutorials.broadcastingmessages.Broadcaster.BroadcastListener;
import com.vaadin.ui.Button;
diff --git a/uitest/src/com/vaadin/tests/widgetset/server/RoundTripTester.java b/uitest/src/com/vaadin/tests/widgetset/server/RoundTripTester.java
index d16a7a7811..c8e561e665 100644
--- a/uitest/src/com/vaadin/tests/widgetset/server/RoundTripTester.java
+++ b/uitest/src/com/vaadin/tests/widgetset/server/RoundTripTester.java
@@ -43,7 +43,8 @@ public class RoundTripTester extends AbstractComponent {
public void start(long testDuration, int payloadSize) {
testStart = System.currentTimeMillis();
testEnd = testStart + testDuration;
- getRpcProxy(RoundTripTesterRpc.class).ping(1, generatePayload(payloadSize));
+ getRpcProxy(RoundTripTesterRpc.class).ping(1,
+ generatePayload(payloadSize));
}
private String generatePayload(int payloadSize) {