From a9c83ba07e4dec90eb7d6e332b91adde9613ebb4 Mon Sep 17 00:00:00 2001 From: Ahmed Ashour Date: Fri, 20 Oct 2017 10:10:02 +0200 Subject: Use .toLowerCase and .toUpperCase(Locale.ROOT) (#10182) * Use .toLowerCase and .toUpperCase(Locale.ROOT) * Spaces * add spaces after if( --- .../java/com/vaadin/tests/integration/AbstractIntegrationTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test/servlet-containers') diff --git a/test/servlet-containers/generic-tests/src/main/java/com/vaadin/tests/integration/AbstractIntegrationTest.java b/test/servlet-containers/generic-tests/src/main/java/com/vaadin/tests/integration/AbstractIntegrationTest.java index c05cb6fdc6..68a030ec85 100644 --- a/test/servlet-containers/generic-tests/src/main/java/com/vaadin/tests/integration/AbstractIntegrationTest.java +++ b/test/servlet-containers/generic-tests/src/main/java/com/vaadin/tests/integration/AbstractIntegrationTest.java @@ -3,6 +3,7 @@ package com.vaadin.tests.integration; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; +import java.util.Locale; import java.util.logging.Logger; import java.util.stream.Collectors; import java.util.stream.Stream; @@ -81,10 +82,10 @@ public abstract class AbstractIntegrationTest extends ParallelTest { protected void compareScreen(String identifier) throws IOException { String refFileName = identifier + "-" - + getDesiredCapabilities().getBrowserName().toLowerCase() + + getDesiredCapabilities().getBrowserName().toLowerCase(Locale.ROOT) + ".png"; String errorFileName = identifier + "-" - + getDesiredCapabilities().getBrowserName().toLowerCase() + "-" + + getDesiredCapabilities().getBrowserName().toLowerCase(Locale.ROOT) + "-" + System.getProperty("server-name") + "[" + getClass().getSimpleName() + "].png"; File referenceFile = ImageFileUtil -- cgit v1.2.3