summaryrefslogtreecommitdiffstats
path: root/compatibility-server
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <teemusa@vaadin.com>2017-03-02 15:46:06 +0200
committerHenri Sara <henri.sara@gmail.com>2017-03-07 15:43:00 +0200
commit427e31f5b66bfd19bd08a329c83bb435e87c393d (patch)
tree382543627ac7840eb940045cd8686bcd341c1d73 /compatibility-server
parentfda9af0a7579788ca7eb45da6dfc02ab3109f87c (diff)
downloadvaadin-framework-427e31f5b66bfd19bd08a329c83bb435e87c393d.tar.gz
vaadin-framework-427e31f5b66bfd19bd08a329c83bb435e87c393d.zip
Revert immediate tests, deprecate HasUserSelectionAllowed
Diffstat (limited to 'compatibility-server')
-rw-r--r--compatibility-server/src/main/java/com/vaadin/v7/ui/Grid.java1
-rw-r--r--compatibility-server/src/test/java/com/vaadin/v7/tests/server/component/abstractfield/AbsFieldValidatorsTest.java36
2 files changed, 1 insertions, 36 deletions
diff --git a/compatibility-server/src/main/java/com/vaadin/v7/ui/Grid.java b/compatibility-server/src/main/java/com/vaadin/v7/ui/Grid.java
index f9a5062ac1..a72222d325 100644
--- a/compatibility-server/src/main/java/com/vaadin/v7/ui/Grid.java
+++ b/compatibility-server/src/main/java/com/vaadin/v7/ui/Grid.java
@@ -1150,6 +1150,7 @@ public class Grid extends AbstractComponent
*
* @since 7.7.7
*/
+ @Deprecated
public interface HasUserSelectionAllowed extends SelectionModel {
/**
diff --git a/compatibility-server/src/test/java/com/vaadin/v7/tests/server/component/abstractfield/AbsFieldValidatorsTest.java b/compatibility-server/src/test/java/com/vaadin/v7/tests/server/component/abstractfield/AbsFieldValidatorsTest.java
index 5aee75af36..7dbc3b766d 100644
--- a/compatibility-server/src/test/java/com/vaadin/v7/tests/server/component/abstractfield/AbsFieldValidatorsTest.java
+++ b/compatibility-server/src/test/java/com/vaadin/v7/tests/server/component/abstractfield/AbsFieldValidatorsTest.java
@@ -69,46 +69,10 @@ public class AbsFieldValidatorsTest {
}
@Test
- public void validatorShouldMakeImmediate() {
- assertFalse("field should not be immediate by default",
- field.isImmediate());
- field.addValidator(validator);
- assertTrue("field should be immediate when it has a validator",
- field.isImmediate());
- }
-
- @Test
public void nonImmediateFieldWithValidator() {
field.setImmediate(false);
field.addValidator(validator);
assertFalse("field should be non-immediate because explicitly set",
field.isImmediate());
}
-
- @Test
- public void removeValidatorMakesNonImmediate() {
- field.addValidator(validator);
- field.removeValidator(validator);
- assertFalse("field should be non-immediate after validator was removed",
- field.isImmediate());
- }
-
- @Test
- public void requiredMakesImmediate() {
- assertFalse("field should not be immediate by default",
- field.isImmediate());
- field.setRequired(true);
- assertTrue("field should be immediate when it is required",
- field.isImmediate());
- }
-
- @Test
- public void removeRequiredMakesNonImmediate() {
- assertFalse("field should not be immediate by default",
- field.isImmediate());
- field.setRequired(true);
- field.setRequired(false);
- assertFalse("field should not be immediate even though it was required",
- field.isImmediate());
- }
}