diff options
author | Leif Åstrand <leif@vaadin.com> | 2014-06-26 12:11:44 +0300 |
---|---|---|
committer | Leif Åstrand <leif@vaadin.com> | 2014-07-01 09:12:52 +0000 |
commit | 264e617c58d537d12a03b5f3fb73f5129fcadc09 (patch) | |
tree | c02022030218e6e4f293f95ac5471755e5b81153 /server/tests | |
parent | f7e7f0e4f7ec4463863910ef66308dd71762acce (diff) | |
download | vaadin-framework-264e617c58d537d12a03b5f3fb73f5129fcadc09.tar.gz vaadin-framework-264e617c58d537d12a03b5f3fb73f5129fcadc09.zip |
Add conf option for disabling sync id checking (#14084)
Change-Id: If3fcc88e69d797b219f5af5906853a42d81f693c
Diffstat (limited to 'server/tests')
-rw-r--r-- | server/tests/src/com/vaadin/tests/util/MockDeploymentConfiguration.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/server/tests/src/com/vaadin/tests/util/MockDeploymentConfiguration.java b/server/tests/src/com/vaadin/tests/util/MockDeploymentConfiguration.java index d113efdfaf..fe7f9ba03e 100644 --- a/server/tests/src/com/vaadin/tests/util/MockDeploymentConfiguration.java +++ b/server/tests/src/com/vaadin/tests/util/MockDeploymentConfiguration.java @@ -19,6 +19,7 @@ public class MockDeploymentConfiguration implements DeploymentConfiguration { private Properties initParameters = new Properties(); private Map<String, String> applicationOrSystemProperty = new HashMap<String, String>(); private LegacyProperyToStringMode legacyPropertyToStringMode = LegacyProperyToStringMode.DISABLED; + private boolean syncIdCheckEnabled = true; @Override public boolean isProductionMode() { @@ -34,6 +35,15 @@ public class MockDeploymentConfiguration implements DeploymentConfiguration { return xsrfProtectionEnabled; } + @Override + public boolean isSyncIdCheckEnabled() { + return syncIdCheckEnabled; + } + + public void setSyncIdCheckEnabled(boolean syncIdCheckEnabled) { + this.syncIdCheckEnabled = syncIdCheckEnabled; + } + public void setXsrfProtectionEnabled(boolean xsrfProtectionEnabled) { this.xsrfProtectionEnabled = xsrfProtectionEnabled; } |