diff options
author | Teemu Suo-Anttila <teemusa@vaadin.com> | 2017-03-02 15:46:06 +0200 |
---|---|---|
committer | Henri Sara <henri.sara@gmail.com> | 2017-03-07 12:36:54 +0200 |
commit | daa42bfd19ae97dc6508add4f6bc69667556ad6b (patch) | |
tree | 9a27194cddd3611acfeee0c690d0a1b83a98aa61 /compatibility-server | |
parent | 6f8518579fd3301031800dffe046f8719f4cafd8 (diff) | |
download | vaadin-framework-daa42bfd19ae97dc6508add4f6bc69667556ad6b.tar.gz vaadin-framework-daa42bfd19ae97dc6508add4f6bc69667556ad6b.zip |
Revert immediate tests, deprecate HasUserSelectionAllowed
Diffstat (limited to 'compatibility-server')
-rw-r--r-- | compatibility-server/src/main/java/com/vaadin/v7/ui/Grid.java | 1 | ||||
-rw-r--r-- | compatibility-server/src/test/java/com/vaadin/v7/tests/server/component/abstractfield/AbsFieldValidatorsTest.java | 36 |
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()); - } } |