You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mo...@apache.org on 2015/11/29 17:05:31 UTC

[05/33] wicket git commit: WICKET-6017 Tests fail when executed with not expected locale

WICKET-6017 Tests fail when executed with not expected locale

Use a random locale that has both a country and a language


Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/e8b874f8
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/e8b874f8
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/e8b874f8

Branch: refs/heads/lambdas
Commit: e8b874f8d6a23ef419396412815b5b2742e5fca2
Parents: e4399d7
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Sat Nov 14 11:21:59 2015 +0100
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Sat Nov 14 11:22:59 2015 +0100

----------------------------------------------------------------------
 .../wicket/util/resource/locator/ResourceNameIteratorTest.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/e8b874f8/wicket-core/src/test/java/org/apache/wicket/util/resource/locator/ResourceNameIteratorTest.java
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/util/resource/locator/ResourceNameIteratorTest.java b/wicket-core/src/test/java/org/apache/wicket/util/resource/locator/ResourceNameIteratorTest.java
index 8816e31..6c804b1 100644
--- a/wicket-core/src/test/java/org/apache/wicket/util/resource/locator/ResourceNameIteratorTest.java
+++ b/wicket-core/src/test/java/org/apache/wicket/util/resource/locator/ResourceNameIteratorTest.java
@@ -151,7 +151,7 @@ public class ResourceNameIteratorTest extends WicketTestCase
 		String path = "patch.extension";
 		String style = null;
 		String var = "var";
-		Locale locale = Locale.getDefault();
+		Locale locale = Locale.CANADA_FRENCH;
 		Iterable<String> extensions = null;
 		boolean strict = false;
 		Iterator<String> iterator = new ResourceNameIterator(path, style, var, locale, extensions, strict);