aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/themes/valo
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2015-05-27 22:03:26 +0300
committerVaadin Code Review <review@vaadin.com>2015-05-29 13:33:47 +0000
commited5ad86b114ccb4d6ab08e19a734bdb8b3342399 (patch)
treefa6bfdda2d616589acc2205ad3da84e9f513a691 /uitest/src/com/vaadin/tests/themes/valo
parent4a79c3c5c5cf14dde6f696a0fe924227d00a0ec5 (diff)
downloadvaadin-framework-ed5ad86b114ccb4d6ab08e19a734bdb8b3342399.tar.gz
vaadin-framework-ed5ad86b114ccb4d6ab08e19a734bdb8b3342399.zip
Ensure method and property names are capitalized using English locale (#13389)
Change-Id: Idde4fc54950f2bb83e0bb8d36a84a5bf075eb8de
Diffstat (limited to 'uitest/src/com/vaadin/tests/themes/valo')
-rw-r--r--uitest/src/com/vaadin/tests/themes/valo/StringGenerator.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/uitest/src/com/vaadin/tests/themes/valo/StringGenerator.java b/uitest/src/com/vaadin/tests/themes/valo/StringGenerator.java
index 7e5cc0f691..bffd94137c 100644
--- a/uitest/src/com/vaadin/tests/themes/valo/StringGenerator.java
+++ b/uitest/src/com/vaadin/tests/themes/valo/StringGenerator.java
@@ -15,6 +15,8 @@
*/
package com.vaadin.tests.themes.valo;
+import com.vaadin.shared.util.SharedUtil;
+
public class StringGenerator {
static String[] strings = new String[] { "lorem", "ipsum", "dolor", "sit",
"amet", "consectetur", "quid", "securi", "etiam", "tamquam", "eu",
@@ -25,8 +27,8 @@ public class StringGenerator {
if (++stringCount >= strings.length) {
stringCount = 0;
}
- return capitalize ? strings[stringCount].substring(0, 1).toUpperCase()
- + strings[stringCount].substring(1) : strings[stringCount];
+ return capitalize ? SharedUtil.capitalize(strings[stringCount])
+ : strings[stringCount];
}
}