summaryrefslogtreecommitdiffstats
path: root/uitest/src/com
diff options
context:
space:
mode:
Diffstat (limited to 'uitest/src/com')
-rw-r--r--uitest/src/com/vaadin/launcher/ApplicationRunnerServlet.java2
-rw-r--r--uitest/src/com/vaadin/tests/ListenerOrder.java6
-rw-r--r--uitest/src/com/vaadin/tests/Parameters.java4
-rw-r--r--uitest/src/com/vaadin/tests/appengine/GAESyncTest.java1
-rw-r--r--uitest/src/com/vaadin/tests/application/RefreshStatePreserve.java13
-rw-r--r--uitest/src/com/vaadin/tests/application/TerminalErrorNotification.java1
-rw-r--r--uitest/src/com/vaadin/tests/application/ThreadLocalInstances.java3
-rw-r--r--uitest/src/com/vaadin/tests/components/AbstractComponentTest.java1
-rw-r--r--uitest/src/com/vaadin/tests/components/HierarchyChangeForRemovedComponentContainers.java1
-rw-r--r--uitest/src/com/vaadin/tests/components/absolutelayout/AbsoluteLayoutHideComponent.java1
-rw-r--r--uitest/src/com/vaadin/tests/components/button/ShortCutListenerModification.java1
-rw-r--r--uitest/src/com/vaadin/tests/components/combobox/GridLayoutComboBoxZoomOut.java3
-rw-r--r--uitest/src/com/vaadin/tests/components/datefield/PopupDateFieldTextEnabled.java5
-rw-r--r--uitest/src/com/vaadin/tests/components/orderedlayout/InsertComponentInHorizontalLayout.java3
-rw-r--r--uitest/src/com/vaadin/tests/components/table/PropertyValueChange.java4
-rw-r--r--uitest/src/com/vaadin/tests/components/tabsheet/TabsheetShouldUpdateHeight.java1
-rw-r--r--uitest/src/com/vaadin/tests/components/tree/TreeIconUpdate.java2
-rw-r--r--uitest/src/com/vaadin/tests/components/ui/InitialFragmentEvent.java23
-rw-r--r--uitest/src/com/vaadin/tests/components/ui/UIsInMultipleTabs.java3
-rw-r--r--uitest/src/com/vaadin/tests/minitutorials/v7a1/IntegerTextFieldDataSource.java2
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1365.java3
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1589.java4
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket1921.java4
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket2292.java4
-rw-r--r--uitest/src/com/vaadin/tests/tickets/Ticket34.java3
-rw-r--r--uitest/src/com/vaadin/tests/util/LargeContainer.java29
-rw-r--r--uitest/src/com/vaadin/tests/util/RangeCollection.java3
-rw-r--r--uitest/src/com/vaadin/tests/util/SampleDirectory.java3
28 files changed, 84 insertions, 49 deletions
diff --git a/uitest/src/com/vaadin/launcher/ApplicationRunnerServlet.java b/uitest/src/com/vaadin/launcher/ApplicationRunnerServlet.java
index c356465fcc..8e8d94bcbd 100644
--- a/uitest/src/com/vaadin/launcher/ApplicationRunnerServlet.java
+++ b/uitest/src/com/vaadin/launcher/ApplicationRunnerServlet.java
@@ -37,8 +37,8 @@ import com.vaadin.server.SessionInitListener;
import com.vaadin.server.UIClassSelectionEvent;
import com.vaadin.server.UIProvider;
import com.vaadin.server.VaadinRequest;
-import com.vaadin.server.VaadinSession;
import com.vaadin.server.VaadinServletRequest;
+import com.vaadin.server.VaadinSession;
import com.vaadin.tests.components.TestBase;
import com.vaadin.ui.UI;
diff --git a/uitest/src/com/vaadin/tests/ListenerOrder.java b/uitest/src/com/vaadin/tests/ListenerOrder.java
index 1576a5888f..8375b75f4b 100644
--- a/uitest/src/com/vaadin/tests/ListenerOrder.java
+++ b/uitest/src/com/vaadin/tests/ListenerOrder.java
@@ -16,9 +16,9 @@ import com.vaadin.ui.Label;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.Select;
-public class ListenerOrder extends com.vaadin.server.LegacyApplication implements
- Button.ClickListener, PropertySetChangeListener, ItemSetChangeListener,
- ValueChangeListener {
+public class ListenerOrder extends com.vaadin.server.LegacyApplication
+ implements Button.ClickListener, PropertySetChangeListener,
+ ItemSetChangeListener, ValueChangeListener {
Button b1;
diff --git a/uitest/src/com/vaadin/tests/Parameters.java b/uitest/src/com/vaadin/tests/Parameters.java
index 934a98e910..0e1256680a 100644
--- a/uitest/src/com/vaadin/tests/Parameters.java
+++ b/uitest/src/com/vaadin/tests/Parameters.java
@@ -107,8 +107,8 @@ public class Parameters extends com.vaadin.server.LegacyApplication implements
}
@Override
- public boolean handleRequest(VaadinSession session,
- VaadinRequest request, VaadinResponse response) throws IOException {
+ public boolean handleRequest(VaadinSession session, VaadinRequest request,
+ VaadinResponse response) throws IOException {
context.setValue("Context not available");
relative.setValue(request.getPathInfo());
diff --git a/uitest/src/com/vaadin/tests/appengine/GAESyncTest.java b/uitest/src/com/vaadin/tests/appengine/GAESyncTest.java
index ea462dbaae..f5d90bae79 100644
--- a/uitest/src/com/vaadin/tests/appengine/GAESyncTest.java
+++ b/uitest/src/com/vaadin/tests/appengine/GAESyncTest.java
@@ -5,7 +5,6 @@ import com.vaadin.data.Property;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.server.ClassResource;
import com.vaadin.server.DownloadStream;
-import com.vaadin.server.ErrorEvent;
import com.vaadin.server.LegacyApplication;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
diff --git a/uitest/src/com/vaadin/tests/application/RefreshStatePreserve.java b/uitest/src/com/vaadin/tests/application/RefreshStatePreserve.java
index 34c102df7f..8988fe764a 100644
--- a/uitest/src/com/vaadin/tests/application/RefreshStatePreserve.java
+++ b/uitest/src/com/vaadin/tests/application/RefreshStatePreserve.java
@@ -21,12 +21,13 @@ public class RefreshStatePreserve extends AbstractTestUI {
addComponent(log);
log.log("Initial fragment: " + getPage().getUriFragment());
- getPage().addUriFragmentChangedListener(new UriFragmentChangedListener() {
- @Override
- public void uriFragmentChanged(UriFragmentChangedEvent event) {
- log.log("Fragment changed to " + event.getUriFragment());
- }
- });
+ getPage().addUriFragmentChangedListener(
+ new UriFragmentChangedListener() {
+ @Override
+ public void uriFragmentChanged(UriFragmentChangedEvent event) {
+ log.log("Fragment changed to " + event.getUriFragment());
+ }
+ });
}
@Override
diff --git a/uitest/src/com/vaadin/tests/application/TerminalErrorNotification.java b/uitest/src/com/vaadin/tests/application/TerminalErrorNotification.java
index 7ab552a96b..9dee2fe0b6 100644
--- a/uitest/src/com/vaadin/tests/application/TerminalErrorNotification.java
+++ b/uitest/src/com/vaadin/tests/application/TerminalErrorNotification.java
@@ -15,7 +15,6 @@
*/
package com.vaadin.tests.application;
-import com.vaadin.server.ErrorEvent;
import com.vaadin.tests.components.TestBase;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
diff --git a/uitest/src/com/vaadin/tests/application/ThreadLocalInstances.java b/uitest/src/com/vaadin/tests/application/ThreadLocalInstances.java
index 82d876d9cb..b6774ae56a 100644
--- a/uitest/src/com/vaadin/tests/application/ThreadLocalInstances.java
+++ b/uitest/src/com/vaadin/tests/application/ThreadLocalInstances.java
@@ -93,8 +93,7 @@ public class ThreadLocalInstances extends AbstractTestCase {
reportStatus(phase, VaadinSession.getCurrent(), UI.getCurrent());
}
- private void reportStatus(String phase, VaadinSession application,
- UI uI) {
+ private void reportStatus(String phase, VaadinSession application, UI uI) {
log.log(getState(application, this) + " app in " + phase);
log.log(getState(uI, mainWindow) + " root in " + phase);
}
diff --git a/uitest/src/com/vaadin/tests/components/AbstractComponentTest.java b/uitest/src/com/vaadin/tests/components/AbstractComponentTest.java
index 0cde43119a..f36437326a 100644
--- a/uitest/src/com/vaadin/tests/components/AbstractComponentTest.java
+++ b/uitest/src/com/vaadin/tests/components/AbstractComponentTest.java
@@ -14,7 +14,6 @@ import com.vaadin.event.FieldEvents.BlurNotifier;
import com.vaadin.event.FieldEvents.FocusEvent;
import com.vaadin.event.FieldEvents.FocusListener;
import com.vaadin.event.FieldEvents.FocusNotifier;
-import com.vaadin.server.ErrorEvent;
import com.vaadin.server.Resource;
import com.vaadin.server.ThemeResource;
import com.vaadin.tests.util.Log;
diff --git a/uitest/src/com/vaadin/tests/components/HierarchyChangeForRemovedComponentContainers.java b/uitest/src/com/vaadin/tests/components/HierarchyChangeForRemovedComponentContainers.java
index db6ff9f537..4a9c46409e 100644
--- a/uitest/src/com/vaadin/tests/components/HierarchyChangeForRemovedComponentContainers.java
+++ b/uitest/src/com/vaadin/tests/components/HierarchyChangeForRemovedComponentContainers.java
@@ -7,7 +7,6 @@ import com.vaadin.ui.VerticalLayout;
public class HierarchyChangeForRemovedComponentContainers extends TestBase {
-
private HorizontalLayout mainContent;
private VerticalLayout lo2;
diff --git a/uitest/src/com/vaadin/tests/components/absolutelayout/AbsoluteLayoutHideComponent.java b/uitest/src/com/vaadin/tests/components/absolutelayout/AbsoluteLayoutHideComponent.java
index b08d27eefa..eba39499cd 100644
--- a/uitest/src/com/vaadin/tests/components/absolutelayout/AbsoluteLayoutHideComponent.java
+++ b/uitest/src/com/vaadin/tests/components/absolutelayout/AbsoluteLayoutHideComponent.java
@@ -74,6 +74,7 @@ public class AbsoluteLayoutHideComponent extends AbstractTestUI {
btnLogin.setWidth("-1px");
btnLogin.setHeight("-1px");
btnLogin.addClickListener(new Button.ClickListener() {
+ @Override
public void buttonClick(Button.ClickEvent event) {
login();
}
diff --git a/uitest/src/com/vaadin/tests/components/button/ShortCutListenerModification.java b/uitest/src/com/vaadin/tests/components/button/ShortCutListenerModification.java
index 646b8f67f7..51ca47b4b7 100644
--- a/uitest/src/com/vaadin/tests/components/button/ShortCutListenerModification.java
+++ b/uitest/src/com/vaadin/tests/components/button/ShortCutListenerModification.java
@@ -2,7 +2,6 @@ package com.vaadin.tests.components.button;
import com.vaadin.event.ShortcutAction.KeyCode;
import com.vaadin.event.ShortcutAction.ModifierKey;
-import com.vaadin.server.ErrorEvent;
import com.vaadin.tests.components.TestBase;
import com.vaadin.ui.Button;
import com.vaadin.ui.Button.ClickEvent;
diff --git a/uitest/src/com/vaadin/tests/components/combobox/GridLayoutComboBoxZoomOut.java b/uitest/src/com/vaadin/tests/components/combobox/GridLayoutComboBoxZoomOut.java
index 410b5c17ad..c2c3703ee4 100644
--- a/uitest/src/com/vaadin/tests/components/combobox/GridLayoutComboBoxZoomOut.java
+++ b/uitest/src/com/vaadin/tests/components/combobox/GridLayoutComboBoxZoomOut.java
@@ -12,8 +12,7 @@ public class GridLayoutComboBoxZoomOut extends AbstractTestCase {
@Override
public void init() {
- LegacyWindow mainWindow = new LegacyWindow(
- "Gridlayoutbug Application");
+ LegacyWindow mainWindow = new LegacyWindow("Gridlayoutbug Application");
setMainWindow(mainWindow);
Label description = new Label(
diff --git a/uitest/src/com/vaadin/tests/components/datefield/PopupDateFieldTextEnabled.java b/uitest/src/com/vaadin/tests/components/datefield/PopupDateFieldTextEnabled.java
index 731869f668..1ba6409a6f 100644
--- a/uitest/src/com/vaadin/tests/components/datefield/PopupDateFieldTextEnabled.java
+++ b/uitest/src/com/vaadin/tests/components/datefield/PopupDateFieldTextEnabled.java
@@ -9,6 +9,7 @@ public class PopupDateFieldTextEnabled extends TestBase {
private static final String ENABLED = "DateField text box enabled";
private static final String DISABLED = "DateField text box disabled";
+
@Override
public void setup() {
final PopupDateField field = new PopupDateField();
@@ -19,9 +20,9 @@ public class PopupDateFieldTextEnabled extends TestBase {
public void valueChange(Property.ValueChangeEvent event) {
field.setTextFieldEnabled((Boolean) event.getProperty()
.getValue());
- if(field.isTextFieldEnabled()){
+ if (field.isTextFieldEnabled()) {
box.setCaption(ENABLED);
- }else{
+ } else {
box.setCaption(DISABLED);
}
}
diff --git a/uitest/src/com/vaadin/tests/components/orderedlayout/InsertComponentInHorizontalLayout.java b/uitest/src/com/vaadin/tests/components/orderedlayout/InsertComponentInHorizontalLayout.java
index 7ddaabd60e..0849980384 100644
--- a/uitest/src/com/vaadin/tests/components/orderedlayout/InsertComponentInHorizontalLayout.java
+++ b/uitest/src/com/vaadin/tests/components/orderedlayout/InsertComponentInHorizontalLayout.java
@@ -22,7 +22,6 @@ import com.vaadin.ui.Button.ClickEvent;
import com.vaadin.ui.Button.ClickListener;
import com.vaadin.ui.ComboBox;
import com.vaadin.ui.Component;
-import com.vaadin.ui.ComponentContainer;
import com.vaadin.ui.HorizontalLayout;
import com.vaadin.ui.VerticalLayout;
@@ -56,7 +55,7 @@ public class InsertComponentInHorizontalLayout extends AbstractTestUI {
@Override
protected void setup(VaadinRequest request) {
- setContent((ComponentContainer) getTestLayout());
+ setContent(getTestLayout());
}
@Override
diff --git a/uitest/src/com/vaadin/tests/components/table/PropertyValueChange.java b/uitest/src/com/vaadin/tests/components/table/PropertyValueChange.java
index e85bfc55a7..1e3c058458 100644
--- a/uitest/src/com/vaadin/tests/components/table/PropertyValueChange.java
+++ b/uitest/src/com/vaadin/tests/components/table/PropertyValueChange.java
@@ -49,8 +49,8 @@ public class PropertyValueChange extends TestBase {
Object columnId) {
final Label l = new Label();
@SuppressWarnings("unchecked")
- final Property<Integer> integer = (Property<Integer>) source
- .getContainerProperty(itemId, "integer");
+ final Property<Integer> integer = source.getContainerProperty(
+ itemId, "integer");
l.setValue(String.valueOf(getMultipliedValue(integer)));
// we must hook value change listener to ensure updates in all use
diff --git a/uitest/src/com/vaadin/tests/components/tabsheet/TabsheetShouldUpdateHeight.java b/uitest/src/com/vaadin/tests/components/tabsheet/TabsheetShouldUpdateHeight.java
index af0cd8b49b..f1a53eca60 100644
--- a/uitest/src/com/vaadin/tests/components/tabsheet/TabsheetShouldUpdateHeight.java
+++ b/uitest/src/com/vaadin/tests/components/tabsheet/TabsheetShouldUpdateHeight.java
@@ -26,6 +26,7 @@ public class TabsheetShouldUpdateHeight extends TestBase {
final Button btnSwitch = new Button("switch to Tab2",
new Button.ClickListener() {
+ @Override
public void buttonClick(final ClickEvent inEvent) {
tabsOuter.setSelectedTab(tabsInner);
tabsInner.setSelectedTab(tab2);
diff --git a/uitest/src/com/vaadin/tests/components/tree/TreeIconUpdate.java b/uitest/src/com/vaadin/tests/components/tree/TreeIconUpdate.java
index 8e0eac801d..6580133645 100644
--- a/uitest/src/com/vaadin/tests/components/tree/TreeIconUpdate.java
+++ b/uitest/src/com/vaadin/tests/components/tree/TreeIconUpdate.java
@@ -41,6 +41,7 @@ public class TreeIconUpdate extends TestBase {
Button button = new Button("Change icon", new ClickListener() {
+ @Override
public void buttonClick(ClickEvent event) {
tree.getItem("bar0").getItemProperty("icon").setValue(ICON2);
}
@@ -49,6 +50,7 @@ public class TreeIconUpdate extends TestBase {
addComponent(button);
button = new Button("Change caption", new ClickListener() {
+ @Override
public void buttonClick(ClickEvent event) {
tree.getItem("bar0").getItemProperty("name").setValue("foo");
}
diff --git a/uitest/src/com/vaadin/tests/components/ui/InitialFragmentEvent.java b/uitest/src/com/vaadin/tests/components/ui/InitialFragmentEvent.java
index c9788b8540..ce8ca8e083 100644
--- a/uitest/src/com/vaadin/tests/components/ui/InitialFragmentEvent.java
+++ b/uitest/src/com/vaadin/tests/components/ui/InitialFragmentEvent.java
@@ -15,19 +15,23 @@ public class InitialFragmentEvent extends AbstractTestUI {
@Override
protected void setup(VaadinRequest request) {
- getPage().addUriFragmentChangedListener(new UriFragmentChangedListener() {
-
- public void uriFragmentChanged(UriFragmentChangedEvent source) {
- String newFragment = source.getUriFragment();
- log.log("Fragment changed from " + lastKnownFragment + " to "
- + newFragment);
- lastKnownFragment = newFragment;
- }
- });
+ getPage().addUriFragmentChangedListener(
+ new UriFragmentChangedListener() {
+
+ @Override
+ public void uriFragmentChanged(
+ UriFragmentChangedEvent source) {
+ String newFragment = source.getUriFragment();
+ log.log("Fragment changed from " + lastKnownFragment
+ + " to " + newFragment);
+ lastKnownFragment = newFragment;
+ }
+ });
addComponent(log);
addComponent(new Button("Set fragment to 'foo'",
new Button.ClickListener() {
+ @Override
public void buttonClick(ClickEvent event) {
setFragment("foo");
}
@@ -35,6 +39,7 @@ public class InitialFragmentEvent extends AbstractTestUI {
addComponent(new Button("Set fragment to 'bar'",
new Button.ClickListener() {
+ @Override
public void buttonClick(ClickEvent event) {
setFragment("bar");
}
diff --git a/uitest/src/com/vaadin/tests/components/ui/UIsInMultipleTabs.java b/uitest/src/com/vaadin/tests/components/ui/UIsInMultipleTabs.java
index 49b8472a7a..25bf40edde 100644
--- a/uitest/src/com/vaadin/tests/components/ui/UIsInMultipleTabs.java
+++ b/uitest/src/com/vaadin/tests/components/ui/UIsInMultipleTabs.java
@@ -18,8 +18,7 @@ public class UIsInMultipleTabs extends AbstractTestUIProvider {
public static class TabUI extends UI {
@Override
protected void init(VaadinRequest request) {
- VaadinSession application = VaadinSession
- .getCurrent();
+ VaadinSession application = VaadinSession.getCurrent();
AtomicInteger count = numberOfUIsOpened.get(application);
if (count == null) {
numberOfUIsOpened.putIfAbsent(application, new AtomicInteger());
diff --git a/uitest/src/com/vaadin/tests/minitutorials/v7a1/IntegerTextFieldDataSource.java b/uitest/src/com/vaadin/tests/minitutorials/v7a1/IntegerTextFieldDataSource.java
index 8c38cf03b0..9a9bc8fae0 100644
--- a/uitest/src/com/vaadin/tests/minitutorials/v7a1/IntegerTextFieldDataSource.java
+++ b/uitest/src/com/vaadin/tests/minitutorials/v7a1/IntegerTextFieldDataSource.java
@@ -30,7 +30,7 @@ public class IntegerTextFieldDataSource extends AbstractTestUI {
final MyBean myBean = new MyBean();
BeanItem<MyBean> beanItem = new BeanItem<MyBean>(myBean);
- final Property<Integer> integerProperty = (Property<Integer>) beanItem
+ final Property<Integer> integerProperty = beanItem
.getItemProperty("value");
final TextField textField = new TextField("Text field", integerProperty);
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1365.java b/uitest/src/com/vaadin/tests/tickets/Ticket1365.java
index d7f397e488..3fc900bf3e 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1365.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1365.java
@@ -7,7 +7,8 @@ import com.vaadin.ui.Label;
import com.vaadin.ui.LegacyWindow;
import com.vaadin.ui.TextField;
-public class Ticket1365 extends com.vaadin.server.LegacyApplication implements Handler {
+public class Ticket1365 extends com.vaadin.server.LegacyApplication implements
+ Handler {
TextField f = new TextField();
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1589.java b/uitest/src/com/vaadin/tests/tickets/Ticket1589.java
index db6fa682fc..05e336f4a1 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1589.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1589.java
@@ -52,8 +52,8 @@ class MyDynamicResource implements RequestHandler {
* stream that contains the response from the server.
*/
@Override
- public boolean handleRequest(VaadinSession session,
- VaadinRequest request, VaadinResponse response) throws IOException {
+ public boolean handleRequest(VaadinSession session, VaadinRequest request,
+ VaadinResponse response) throws IOException {
String relativeUri = request.getPathInfo();
// Catch the given URI that identifies the resource, otherwise let other
// URI handlers or the Application to handle the response.
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket1921.java b/uitest/src/com/vaadin/tests/tickets/Ticket1921.java
index 79dcd3bd71..ab43b45576 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket1921.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket1921.java
@@ -94,8 +94,8 @@ public class Ticket1921 extends LegacyApplication implements RequestHandler {
}
@Override
- public boolean handleRequest(VaadinSession session,
- VaadinRequest request, VaadinResponse response) throws IOException {
+ public boolean handleRequest(VaadinSession session, VaadinRequest request,
+ VaadinResponse response) throws IOException {
Map<String, String[]> parameters = request.getParameterMap();
String[] s = parameters.get("state");
if (s == null || s.length != 1) {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket2292.java b/uitest/src/com/vaadin/tests/tickets/Ticket2292.java
index e81ad3185a..b50a1d073e 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket2292.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket2292.java
@@ -48,8 +48,8 @@ public class Ticket2292 extends com.vaadin.server.LegacyApplication implements
}
@Override
- public boolean handleRequest(VaadinSession session,
- VaadinRequest request, VaadinResponse response) throws IOException {
+ public boolean handleRequest(VaadinSession session, VaadinRequest request,
+ VaadinResponse response) throws IOException {
String relativeUri = request.getPathInfo();
if (!relativeUri.contains("icon.png")) {
diff --git a/uitest/src/com/vaadin/tests/tickets/Ticket34.java b/uitest/src/com/vaadin/tests/tickets/Ticket34.java
index 920ca76e37..d095889d6d 100644
--- a/uitest/src/com/vaadin/tests/tickets/Ticket34.java
+++ b/uitest/src/com/vaadin/tests/tickets/Ticket34.java
@@ -97,7 +97,8 @@ public class Ticket34 extends LegacyApplication {
public void buttonClick(ClickEvent event) {
String viewName = tf.getValue().toString();
// fragmentChangedListener will change the view if possible
- event.getButton().getUI().getPage().setUriFragment(viewName);
+ event.getButton().getUI().getPage()
+ .setUriFragment(viewName);
}
});
diff --git a/uitest/src/com/vaadin/tests/util/LargeContainer.java b/uitest/src/com/vaadin/tests/util/LargeContainer.java
index 9d02cfa53c..3c18899493 100644
--- a/uitest/src/com/vaadin/tests/util/LargeContainer.java
+++ b/uitest/src/com/vaadin/tests/util/LargeContainer.java
@@ -23,6 +23,7 @@ public class LargeContainer extends AbstractContainer implements
this.itemId = itemId;
}
+ @Override
public Property<?> getItemProperty(Object propertyId) {
ObjectProperty<String> property = new ObjectProperty<String>(
containerPropertyIdDefaults.get(propertyId) + " (item "
@@ -31,16 +32,19 @@ public class LargeContainer extends AbstractContainer implements
}
+ @Override
public Collection<?> getItemPropertyIds() {
return getContainerPropertyIds();
}
+ @Override
@SuppressWarnings("rawtypes")
public boolean addItemProperty(Object id, Property property)
throws UnsupportedOperationException {
throw new UnsupportedOperationException("Cannot add item property");
}
+ @Override
public boolean removeItemProperty(Object id)
throws UnsupportedOperationException {
throw new UnsupportedOperationException(
@@ -54,6 +58,7 @@ public class LargeContainer extends AbstractContainer implements
private Map<Object, Class<?>> containerPropertyIdTypes = new HashMap<Object, Class<?>>();
private Map<Object, Object> containerPropertyIdDefaults = new HashMap<Object, Object>();
+ @Override
public Object nextItemId(Object itemId) {
Integer id = (Integer) itemId;
if (id >= size() - 1) {
@@ -62,6 +67,7 @@ public class LargeContainer extends AbstractContainer implements
return (id + 1);
}
+ @Override
public Object prevItemId(Object itemId) {
Integer id = (Integer) itemId;
if (id <= 0) {
@@ -70,6 +76,7 @@ public class LargeContainer extends AbstractContainer implements
return (id - 1);
}
+ @Override
public Object firstItemId() {
if (0 == size()) {
return null;
@@ -77,6 +84,7 @@ public class LargeContainer extends AbstractContainer implements
return 0;
}
+ @Override
public Object lastItemId() {
if (0 == size()) {
return null;
@@ -84,6 +92,7 @@ public class LargeContainer extends AbstractContainer implements
return (size() - 1);
}
+ @Override
public boolean isFirstId(Object itemId) {
if (null == itemId) {
return false;
@@ -91,6 +100,7 @@ public class LargeContainer extends AbstractContainer implements
return itemId.equals(firstItemId());
}
+ @Override
public boolean isLastId(Object itemId) {
if (null == itemId) {
return false;
@@ -98,6 +108,7 @@ public class LargeContainer extends AbstractContainer implements
return itemId.equals(lastItemId());
}
+ @Override
public TestItem getItem(Object itemId) {
if (!containsId(itemId)) {
return null;
@@ -105,6 +116,7 @@ public class LargeContainer extends AbstractContainer implements
return new TestItem(itemId);
}
+ @Override
public Collection<?> getItemIds() {
return new RangeCollection(size());
}
@@ -116,6 +128,7 @@ public class LargeContainer extends AbstractContainer implements
numberOfIds, this);
}
+ @Override
public Property<?> getContainerProperty(Object itemId, Object propertyId) {
TestItem item = getItem(itemId);
if (null == item) {
@@ -124,10 +137,12 @@ public class LargeContainer extends AbstractContainer implements
return item.getItemProperty(propertyId);
}
+ @Override
public int size() {
return size;
}
+ @Override
public boolean containsId(Object itemId) {
if (!(itemId instanceof Integer)) {
return false;
@@ -136,6 +151,7 @@ public class LargeContainer extends AbstractContainer implements
return (id >= 0 && id < (size() - 1));
}
+ @Override
public int indexOfId(Object itemId) {
if (!containsId(itemId)) {
return -1;
@@ -143,6 +159,7 @@ public class LargeContainer extends AbstractContainer implements
return (Integer) itemId;
}
+ @Override
public Object getIdByIndex(int index) {
return index;
}
@@ -151,19 +168,23 @@ public class LargeContainer extends AbstractContainer implements
size = newSize;
}
+ @Override
public boolean removeAllItems() throws UnsupportedOperationException {
setSize(0);
return true;
}
+ @Override
public Class<?> getType(Object propertyId) {
return containerPropertyIdTypes.get(propertyId);
}
+ @Override
public Collection<?> getContainerPropertyIds() {
return containerPropertyIdTypes.keySet();
}
+ @Override
public boolean addContainerProperty(Object propertyId, Class<?> type,
Object defaultValue) throws UnsupportedOperationException {
if (containerPropertyIdTypes.containsKey(propertyId) || null == type) {
@@ -174,6 +195,7 @@ public class LargeContainer extends AbstractContainer implements
return true;
}
+ @Override
public boolean removeContainerProperty(Object propertyId)
throws UnsupportedOperationException {
if (!containerPropertyIdTypes.containsKey(propertyId)) {
@@ -184,33 +206,40 @@ public class LargeContainer extends AbstractContainer implements
return true;
}
+ @Override
public Item addItem(Object itemId) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Not supported");
}
+ @Override
public Object addItem() throws UnsupportedOperationException {
throw new UnsupportedOperationException("Not supported");
}
+ @Override
public boolean removeItem(Object itemId)
throws UnsupportedOperationException {
throw new UnsupportedOperationException("Not supported");
}
+ @Override
public Object addItemAt(int index) throws UnsupportedOperationException {
throw new UnsupportedOperationException("Not supported");
}
+ @Override
public Item addItemAt(int index, Object newItemId)
throws UnsupportedOperationException {
throw new UnsupportedOperationException("Not supported");
}
+ @Override
public Object addItemAfter(Object previousItemId)
throws UnsupportedOperationException {
throw new UnsupportedOperationException("Not supported");
}
+ @Override
public Item addItemAfter(Object previousItemId, Object newItemId)
throws UnsupportedOperationException {
throw new UnsupportedOperationException("Not supported");
diff --git a/uitest/src/com/vaadin/tests/util/RangeCollection.java b/uitest/src/com/vaadin/tests/util/RangeCollection.java
index f26e3cfb15..302619c5b9 100644
--- a/uitest/src/com/vaadin/tests/util/RangeCollection.java
+++ b/uitest/src/com/vaadin/tests/util/RangeCollection.java
@@ -15,14 +15,17 @@ public class RangeCollection extends AbstractCollection<Integer> {
value = 0;
}
+ @Override
public boolean hasNext() {
return (value < max - 1);
}
+ @Override
public Integer next() {
return value++;
}
+ @Override
public void remove() {
throw new UnsupportedOperationException();
}
diff --git a/uitest/src/com/vaadin/tests/util/SampleDirectory.java b/uitest/src/com/vaadin/tests/util/SampleDirectory.java
index 0eeae4ca9e..c141c456e9 100644
--- a/uitest/src/com/vaadin/tests/util/SampleDirectory.java
+++ b/uitest/src/com/vaadin/tests/util/SampleDirectory.java
@@ -43,8 +43,7 @@ public class SampleDirectory {
* @param application
* @return file pointing to sample directory
*/
- public static File getDirectory(VaadinSession application,
- LegacyWindow uI) {
+ public static File getDirectory(VaadinSession application, LegacyWindow uI) {
String errorMessage = "Access to application "
+ "context base directory failed, "
+ "possible security constraint with Application "