aboutsummaryrefslogtreecommitdiffstats
path: root/server/tests/src/com
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2013-04-22 15:06:09 +0300
committerVaadin Code Review <review@vaadin.com>2013-04-24 09:41:22 +0000
commitbe433ace81027bfe9225513badbf4a07d3816377 (patch)
tree0cac26e36226ab27901a58276a4ebadd9eae3ccd /server/tests/src/com
parent9fe007a843805e8f8d8926848ce07bdab0bcd1d7 (diff)
downloadvaadin-framework-be433ace81027bfe9225513badbf4a07d3816377.tar.gz
vaadin-framework-be433ace81027bfe9225513badbf4a07d3816377.zip
Re-added Property.toString warning messages (#10916)
* Made it possible to toggle the toString() behavior using the "legacyPropertyToString" init parameter. The default value is "warning" which enables the legacy Property.toString implementation and logs a warning message when it is used. Other supported values are "true" which enables the legacy mode and "false" which disables it. Change-Id: Ife19352b86590464c8e441b7f82f4fec3b1f3235
Diffstat (limited to 'server/tests/src/com')
-rw-r--r--server/tests/src/com/vaadin/tests/util/MockDeploymentConfiguration.java19
1 files changed, 19 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 cd53a564d2..d113efdfaf 100644
--- a/server/tests/src/com/vaadin/tests/util/MockDeploymentConfiguration.java
+++ b/server/tests/src/com/vaadin/tests/util/MockDeploymentConfiguration.java
@@ -18,7 +18,9 @@ public class MockDeploymentConfiguration implements DeploymentConfiguration {
private PushMode pushMode = PushMode.DISABLED;
private Properties initParameters = new Properties();
private Map<String, String> applicationOrSystemProperty = new HashMap<String, String>();
+ private LegacyProperyToStringMode legacyPropertyToStringMode = LegacyProperyToStringMode.DISABLED;
+ @Override
public boolean isProductionMode() {
return productionMode;
}
@@ -27,6 +29,7 @@ public class MockDeploymentConfiguration implements DeploymentConfiguration {
this.productionMode = productionMode;
}
+ @Override
public boolean isXsrfProtectionEnabled() {
return xsrfProtectionEnabled;
}
@@ -35,6 +38,7 @@ public class MockDeploymentConfiguration implements DeploymentConfiguration {
this.xsrfProtectionEnabled = xsrfProtectionEnabled;
}
+ @Override
public int getResourceCacheTime() {
return resourceCacheTime;
}
@@ -43,6 +47,7 @@ public class MockDeploymentConfiguration implements DeploymentConfiguration {
this.resourceCacheTime = resourceCacheTime;
}
+ @Override
public int getHeartbeatInterval() {
return heartbeatInterval;
}
@@ -51,6 +56,7 @@ public class MockDeploymentConfiguration implements DeploymentConfiguration {
this.heartbeatInterval = heartbeatInterval;
}
+ @Override
public boolean isCloseIdleSessions() {
return closeIdleSessions;
}
@@ -59,6 +65,7 @@ public class MockDeploymentConfiguration implements DeploymentConfiguration {
this.closeIdleSessions = closeIdleSessions;
}
+ @Override
public PushMode getPushMode() {
return pushMode;
}
@@ -67,6 +74,7 @@ public class MockDeploymentConfiguration implements DeploymentConfiguration {
this.pushMode = pushMode;
}
+ @Override
public Properties getInitParameters() {
return initParameters;
}
@@ -89,4 +97,15 @@ public class MockDeploymentConfiguration implements DeploymentConfiguration {
}
}
+ @Override
+ @Deprecated
+ public LegacyProperyToStringMode getLegacyPropertyToStringMode() {
+ return legacyPropertyToStringMode;
+ }
+
+ public void setLegacyPropertyToStringMode(
+ LegacyProperyToStringMode legacyPropertyToStringMode) {
+ this.legacyPropertyToStringMode = legacyPropertyToStringMode;
+ }
+
}