]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixed warnings in tests
authorArtur Signell <artur.signell@itmill.com>
Mon, 20 Dec 2010 14:19:46 +0000 (14:19 +0000)
committerArtur Signell <artur.signell@itmill.com>
Mon, 20 Dec 2010 14:19:46 +0000 (14:19 +0000)
svn changeset:16583/svn branch:6.5

tests/src/com/vaadin/tests/CustomLayoutDemo.java
tests/src/com/vaadin/tests/components/notification/Notifications.java
tests/src/com/vaadin/tests/components/select/MultiSelect.java
tests/src/com/vaadin/tests/components/table/Tables.java
tests/src/com/vaadin/tests/components/textfield/SelectionAndCursorPosition.java
tests/src/com/vaadin/tests/components/textfield/SizedTextFields.java
tests/src/com/vaadin/tests/components/window/SubWindows.java
tests/src/com/vaadin/tests/tickets/Ticket1230.java

index 2a8d5de9b77efba84ec41a1180a4ff358ef919b0..7ef51374144b08ae9b22244416f1cc10076a1018 100644 (file)
@@ -11,6 +11,7 @@ import com.vaadin.ui.CustomLayout;
 import com.vaadin.ui.Field;
 import com.vaadin.ui.Label;
 import com.vaadin.ui.Panel;
+import com.vaadin.ui.PasswordField;
 import com.vaadin.ui.TextField;
 import com.vaadin.ui.Tree;
 import com.vaadin.ui.Window;
@@ -37,7 +38,7 @@ public class CustomLayoutDemo extends com.vaadin.Application implements
 
     private final TextField username = new TextField("Username");
 
-    private final TextField loginPwd = new TextField("Password");
+    private final PasswordField loginPwd = new PasswordField("Password");
 
     private final Button loginButton = new Button("Login", this, "loginClicked");
 
@@ -62,7 +63,6 @@ public class CustomLayoutDemo extends com.vaadin.Application implements
         customLayoutPanel.addComponent(mainLayout);
 
         // Login components
-        loginPwd.setSecret(true);
         mainLayout.addComponent(username, "loginUser");
         mainLayout.addComponent(loginPwd, "loginPassword");
         mainLayout.addComponent(loginButton, "loginButton");
index d59abbd586e023a53a2cf72454f39afb95b7f0bd..e938495e9f63ccb0fce346aaff6c9d9d9c457cd5 100644 (file)
@@ -14,6 +14,7 @@ public class Notifications extends TestBase implements ClickListener {
     private TextField tf;\r
     private NativeSelect type;\r
 \r
+    @SuppressWarnings("deprecation")\r
     @Override\r
     protected void setup() {\r
         tf = new TextField("Text", "Hello world");\r
index 66ca41d8292094995601f998605d54113b28dead..b3c15251a120648e955799f512317894df7c7eb7 100644 (file)
@@ -5,6 +5,7 @@ import com.vaadin.ui.Select;
 \r
 public class MultiSelect extends TestBase {\r
 \r
+    @SuppressWarnings("deprecation")\r
     @Override\r
     protected void setup() {\r
         Select selectComponent = new Select();\r
index c581091b251b9078956e7ae35e1eddfd2c527dc9..03858b0bf11715dd8a9c670f87975ffc1f59cf54 100644 (file)
@@ -112,9 +112,9 @@ public class Tables extends AbstractSelectTestCase<Table> implements
     protected Command<Table, Alignments> columnAlignmentCommand = new Command<Table, Alignments>() {\r
 \r
         public void execute(Table c, Alignments value, Object data) {\r
-            for (Object propertyId : c.getContainerPropertyIds()) {\r
-                // TODO\r
-            }\r
+            // TODO\r
+            // for (Object propertyId : c.getContainerPropertyIds()) {\r
+            // }\r
         }\r
     };\r
 \r
index 09b7fe0d6cadb17b5115af09b5797bf58c4a5e95..d362a3050d4629c6c14b86f7eeae49351f4cf026 100644 (file)
@@ -29,6 +29,7 @@ public class SelectionAndCursorPosition extends TestBase {
         CheckBox ml = new CheckBox("Multiline");
         ml.setImmediate(true);
         ml.addListener(new Property.ValueChangeListener() {
+            @SuppressWarnings("deprecation")
             public void valueChange(ValueChangeEvent event) {
                 if (tf.getHeight() < 0) {
                     tf.setHeight("50px");
index f639172340abe74cbb0f2250d3e7bf91791e9c69..93ab80b88a43f1d234d7acbb9748f548c1a72b3e 100644 (file)
@@ -8,6 +8,7 @@ import com.vaadin.ui.VerticalLayout;
 
 public class SizedTextFields extends TestBase {
 
+    @SuppressWarnings("deprecation")
     @Override
     protected void setup() {
 
index bbd830b85bd56a7e2ea05e2884e0412172ee341a..6c5bfccf6e6e8500c21e9eb287fa8cc85d038d30 100644 (file)
@@ -41,6 +41,7 @@ public class SubWindows extends TestBase {
         return b;
     }
 
+    @SuppressWarnings("deprecation")
     @Override
     protected void setup() {
         autoWideWindow = new Window("Dialog - width by contents",
index 740f79337a1afb585741f25901eb025f810d7d62..fd859459c082664ccad48e64f2d5b1c38ac86d54 100644 (file)
@@ -124,6 +124,7 @@ public class Ticket1230 extends Application {
                 }));
     }
 
+    @SuppressWarnings("deprecation")
     private Select createSelect() {
         Select select = new Select();
         select.setMultiSelect(false);