You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by cm...@apache.org on 2012/06/27 19:23:30 UTC
[4/8] git commit: WICKET-4617 ResourceTest is actually
ResourceStreamLocatorTest, added PathTest to really test a Path,
which wasn't done before
WICKET-4617 ResourceTest is actually ResourceStreamLocatorTest, added PathTest to really test a Path, which wasn't done before
Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/ec7a022b
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/ec7a022b
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/ec7a022b
Branch: refs/heads/sandbox/resourcefinder
Commit: ec7a022bdf178552ee8c5fcf2ee972ee701a20ca
Parents: 0f74eec
Author: Carl-Eric Menzel <cm...@wicketbuch.de>
Authored: Wed Jun 27 18:38:51 2012 +0200
Committer: Carl-Eric Menzel <cm...@wicketbuch.de>
Committed: Wed Jun 27 18:38:59 2012 +0200
----------------------------------------------------------------------
.../resource/locator/ResourceStreamLocator.java | 3 +-
.../org/apache/wicket/util/resource/PathTest.java | 55 ++++
.../util/resource/ResourceStreamLocatorTest.java | 193 +++++++++++++++
.../util/resource/ResourceStreamLocatorTest.txt | 1 +
.../util/resource/ResourceStreamLocatorTest_de.txt | 1 +
.../resource/ResourceStreamLocatorTest_de_DE.txt | 1 +
.../ResourceStreamLocatorTest_de_DE_POSIX.txt | 1 +
.../ResourceStreamLocatorTest_de__POSIX.txt | 1 +
.../util/resource/ResourceStreamLocatorTest_fr.txt | 1 +
.../resource/ResourceStreamLocatorTest_style.txt | 1 +
.../ResourceStreamLocatorTest_style_de.txt | 1 +
.../ResourceStreamLocatorTest_style_de_DE.txt | 1 +
...ResourceStreamLocatorTest_style_de_DE_POSIX.txt | 1 +
.../ResourceStreamLocatorTest_style_de__POSIX.txt | 1 +
.../apache/wicket/util/resource/ResourceTest.java | 173 -------------
.../apache/wicket/util/resource/ResourceTest.txt | 1 -
.../wicket/util/resource/ResourceTest_de.txt | 1 -
.../wicket/util/resource/ResourceTest_de_DE.txt | 1 -
.../util/resource/ResourceTest_de_DE_POSIX.txt | 1 -
.../util/resource/ResourceTest_de__POSIX.txt | 1 -
.../wicket/util/resource/ResourceTest_fr.txt | 1 -
.../wicket/util/resource/ResourceTest_style.txt | 1 -
.../wicket/util/resource/ResourceTest_style_de.txt | 1 -
.../util/resource/ResourceTest_style_de_DE.txt | 1 -
.../resource/ResourceTest_style_de_DE_POSIX.txt | 1 -
.../util/resource/ResourceTest_style_de__POSIX.txt | 1 -
.../sourcePath/ResourceStreamLocatorTest.txt | 1 +
.../sourcePath/ResourceStreamLocatorTest_de.txt | 1 +
.../sourcePath/ResourceStreamLocatorTest_de_DE.txt | 1 +
.../ResourceStreamLocatorTest_de_DE_POSIX.txt | 1 +
.../ResourceStreamLocatorTest_de__POSIX.txt | 1 +
.../sourcePath/ResourceStreamLocatorTest_style.txt | 1 +
.../ResourceStreamLocatorTest_style_de.txt | 1 +
.../ResourceStreamLocatorTest_style_de_DE.txt | 1 +
...ResourceStreamLocatorTest_style_de_DE_POSIX.txt | 1 +
.../ResourceStreamLocatorTest_style_de__POSIX.txt | 1 +
.../util/resource/sourcePath/ResourceTest.txt | 1 -
.../util/resource/sourcePath/ResourceTest_de.txt | 1 -
.../resource/sourcePath/ResourceTest_de_DE.txt | 1 -
.../sourcePath/ResourceTest_de_DE_POSIX.txt | 1 -
.../resource/sourcePath/ResourceTest_de__POSIX.txt | 1 -
.../resource/sourcePath/ResourceTest_style.txt | 1 -
.../resource/sourcePath/ResourceTest_style_de.txt | 1 -
.../sourcePath/ResourceTest_style_de_DE.txt | 1 -
.../sourcePath/ResourceTest_style_de_DE_POSIX.txt | 1 -
.../sourcePath/ResourceTest_style_de__POSIX.txt | 1 -
46 files changed, 271 insertions(+), 195 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/wicket/blob/ec7a022b/wicket-core/src/main/java/org/apache/wicket/core/util/resource/locator/ResourceStreamLocator.java
----------------------------------------------------------------------
diff --git a/wicket-core/src/main/java/org/apache/wicket/core/util/resource/locator/ResourceStreamLocator.java b/wicket-core/src/main/java/org/apache/wicket/core/util/resource/locator/ResourceStreamLocator.java
index 1fa1f0e..b78cc67 100644
--- a/wicket-core/src/main/java/org/apache/wicket/core/util/resource/locator/ResourceStreamLocator.java
+++ b/wicket-core/src/main/java/org/apache/wicket/core/util/resource/locator/ResourceStreamLocator.java
@@ -195,7 +195,8 @@ public class ResourceStreamLocator implements IResourceStreamLocator
* @param path
* @return resource stream
*/
- private IResourceStream getResourceStream(final ClassLoader classLoader, final String path)
+ /* package private for testing */IResourceStream getResourceStream(
+ final ClassLoader classLoader, final String path)
{
if (classLoader == null)
{
http://git-wip-us.apache.org/repos/asf/wicket/blob/ec7a022b/wicket-core/src/test/java/org/apache/wicket/util/resource/PathTest.java
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/util/resource/PathTest.java b/wicket-core/src/test/java/org/apache/wicket/util/resource/PathTest.java
new file mode 100644
index 0000000..e3ba41e
--- /dev/null
+++ b/wicket-core/src/test/java/org/apache/wicket/util/resource/PathTest.java
@@ -0,0 +1,55 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.wicket.util.resource;
+
+import static org.apache.wicket.util.resource.ResourceStreamLocatorTest.*;
+
+import java.io.File;
+
+import org.apache.wicket.WicketTestCase;
+import org.apache.wicket.util.file.Path;
+import org.junit.Test;
+
+public class PathTest extends WicketTestCase
+{
+ private static final String PACKAGE_PATH = PathTest.class.getPackage()
+ .getName()
+ .replace('.', File.separatorChar);
+ private static final String CLASSPATH_ROOT = PathTest.class.getResource("/").getFile();
+
+ private static final String FILENAME = ResourceStreamLocatorTest.class.getSimpleName() + ".txt";
+
+ @Test
+ public void loadFromRootUsingSubpathInFilename() throws Exception
+ {
+ Path path = new Path();
+ path.add(CLASSPATH_ROOT);
+ IResourceStream rs = path.find(PathTest.class, PACKAGE_PATH + File.separatorChar + FILENAME);
+ assertNotNull(rs);
+ assertEquals(FILENAME, getFilename(rs));
+ }
+
+ @Test
+ public void loadFilenameFromPath() throws Exception
+ {
+ Path path = new Path();
+ path.add(CLASSPATH_ROOT + File.separatorChar + PACKAGE_PATH);
+ IResourceStream rs = path.find(PathTest.class, FILENAME);
+ assertNotNull(rs);
+ assertEquals(FILENAME, getFilename(rs));
+ }
+}
http://git-wip-us.apache.org/repos/asf/wicket/blob/ec7a022b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceStreamLocatorTest.java
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceStreamLocatorTest.java b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceStreamLocatorTest.java
new file mode 100644
index 0000000..3e9d2f3
--- /dev/null
+++ b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceStreamLocatorTest.java
@@ -0,0 +1,193 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.wicket.util.resource;
+
+import java.io.File;
+import java.io.IOException;
+import java.net.URI;
+import java.net.URISyntaxException;
+import java.net.URL;
+import java.util.Locale;
+
+import org.apache.wicket.WicketTestCase;
+import org.apache.wicket.core.util.resource.UrlResourceStream;
+import org.apache.wicket.core.util.resource.locator.IResourceStreamLocator;
+import org.apache.wicket.core.util.resource.locator.ResourceStreamLocator;
+import org.apache.wicket.util.file.Path;
+import org.apache.wicket.util.string.Strings;
+import org.junit.Test;
+
+
+/**
+ * ResourceStreamLocator test. Tests construction of resource names with
+ *
+ * @author Juergen Donnerstag
+ */
+public class ResourceStreamLocatorTest extends WicketTestCase
+{
+ private final Locale locale_de = new Locale("de");
+ private final Locale locale_de_DE = new Locale("de", "DE");
+ private final Locale locale_de_DE_POSIX = new Locale("de", "DE", "POSIX");
+ private final Locale locale_de_POSIX = new Locale("de", "", "POSIX");
+ private final Locale locale_de_CH = new Locale("de", "CH");
+
+ private final Locale locale_en = new Locale("en");
+ private final Locale locale_en_US = new Locale("en", "US");
+ private final Locale locale_en_US_WIN = new Locale("en", "US", "WIN");
+ private final Locale locale_en_WIN = new Locale("en", "", "WIN");
+
+ private final Locale locale_fr = new Locale("fr");
+ private final Locale locale_fr_FR = new Locale("fr", "FR");
+ private final Locale locale_fr_FR_WIN = new Locale("fr", "FR", "WIN");
+ private final Locale locale_fr_WIN = new Locale("fr", "", "WIN");
+
+ /**
+ *
+ * @param sourcePath
+ * @param style
+ * @param variation
+ * @param locale
+ * @param extension
+ */
+ public void createAndTestResource(Path sourcePath, String style, String variation,
+ Locale locale, String extension)
+ {
+ IResourceStreamLocator locator = new ResourceStreamLocator(sourcePath);
+ IResourceStream resource = locator.locate(this.getClass(), this.getClass()
+ .getName()
+ .replace('.', '/'), style, variation, locale, "txt", false);
+ compareFilename(resource, extension);
+ }
+
+ /**
+ *
+ * @param sourcePath
+ */
+ public void executeMultiple(Path sourcePath)
+ {
+ createAndTestResource(sourcePath, null, null, null, "");
+ createAndTestResource(sourcePath, "style", null, null, "_style");
+
+ createAndTestResource(sourcePath, null, null, locale_de, "_de");
+ createAndTestResource(sourcePath, null, null, locale_de_DE, "_de_DE");
+ createAndTestResource(sourcePath, null, null, locale_de_DE_POSIX, "_de_DE_POSIX");
+ createAndTestResource(sourcePath, null, null, locale_de_POSIX, "_de__POSIX");
+ createAndTestResource(sourcePath, null, null, locale_de_CH, "_de");
+
+ createAndTestResource(sourcePath, "style", null, locale_de, "_style_de");
+ createAndTestResource(sourcePath, "style", null, locale_de_DE, "_style_de_DE");
+ createAndTestResource(sourcePath, "style", null, locale_de_DE_POSIX, "_style_de_DE_POSIX");
+ createAndTestResource(sourcePath, "style", null, locale_de_POSIX, "_style_de__POSIX");
+ createAndTestResource(sourcePath, "style", null, locale_de_CH, "_style_de");
+
+ createAndTestResource(sourcePath, null, null, locale_en, "");
+ createAndTestResource(sourcePath, null, null, locale_en_US, "");
+ createAndTestResource(sourcePath, null, null, locale_en_US_WIN, "");
+ createAndTestResource(sourcePath, null, null, locale_en_WIN, "");
+ createAndTestResource(sourcePath, "style", null, locale_en_WIN, "_style");
+
+ createAndTestResource(sourcePath, null, null, locale_fr, "_fr");
+ createAndTestResource(sourcePath, null, null, locale_fr_FR, "_fr");
+ createAndTestResource(sourcePath, null, null, locale_fr_FR_WIN, "_fr");
+ createAndTestResource(sourcePath, null, null, locale_fr_WIN, "_fr");
+ createAndTestResource(sourcePath, "style", null, locale_fr_WIN, "_style");
+ }
+
+ /**
+ * Test locating a resource.
+ */
+ @Test
+ public void locateInClasspath()
+ {
+ // Execute without source path
+ executeMultiple(new Path());
+
+ // Determine source path
+ IResourceStreamLocator locator = new ResourceStreamLocator();
+ IResourceStream resource = locator.locate(getClass(),
+ this.getClass().getName().replace('.', '/'), null, null, null, "txt", false);
+ String path = getPath(resource);
+ path = Strings.beforeLastPathComponent(path, '/') + "/sourcePath";
+ }
+
+ /**
+ * Compares the given name with the resource.
+ *
+ * @param resource
+ * @param name
+ */
+ private void compareFilename(IResourceStream resource, String name)
+ {
+ assertNotNull("Did not find resource: " + name, resource);
+
+ String filename = Strings.replaceAll(this.getClass().getName(), ".", "/").toString();
+ filename += name + ".txt";
+ String resourcePath = getPath(resource);
+
+ if (!resourcePath.endsWith(filename))
+ {
+ filename = Strings.afterLast(filename, '/');
+ resourcePath = Strings.afterLast(resourcePath, '/');
+ assertEquals("Did not find resource", filename, resourcePath);
+ }
+ }
+
+ /**
+ * Gets the path of the resource as a string.
+ *
+ * @param resource
+ * the resource
+ * @return the path of the resource as a string
+ */
+ public static String getPath(IResourceStream resource)
+ {
+ if (resource instanceof UrlResourceStream)
+ {
+ try
+ {
+ URL url = ((UrlResourceStream)resource).getURL();
+ CharSequence path = new File(new URI(url.toString())).getPath();
+ path = Strings.replaceAll(path, "\\", "/");
+ return path.toString();
+ }
+ catch (URISyntaxException e)
+ {
+ throw new RuntimeException(e);
+ }
+ }
+ else if (resource instanceof FileResourceStream)
+ {
+ try
+ {
+ return ((FileResourceStream)resource).getFile().getCanonicalPath();
+ }
+ catch (IOException e)
+ {
+ throw new RuntimeException(e);
+ }
+ }
+ else
+ {
+ return null;
+ }
+ }
+
+ public static String getFilename(IResourceStream resource)
+ {
+ return Strings.afterLast(getPath(resource), File.separatorChar);
+ }
+}
http://git-wip-us.apache.org/repos/asf/wicket/blob/ec7a022b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceStreamLocatorTest.txt
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceStreamLocatorTest.txt b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceStreamLocatorTest.txt
new file mode 100644
index 0000000..ac8522fb
--- /dev/null
+++ b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceStreamLocatorTest.txt
@@ -0,0 +1 @@
+xxx
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/wicket/blob/ec7a022b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceStreamLocatorTest_de.txt
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceStreamLocatorTest_de.txt b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceStreamLocatorTest_de.txt
new file mode 100644
index 0000000..ac8522fb
--- /dev/null
+++ b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceStreamLocatorTest_de.txt
@@ -0,0 +1 @@
+xxx
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/wicket/blob/ec7a022b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceStreamLocatorTest_de_DE.txt
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceStreamLocatorTest_de_DE.txt b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceStreamLocatorTest_de_DE.txt
new file mode 100644
index 0000000..ac8522fb
--- /dev/null
+++ b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceStreamLocatorTest_de_DE.txt
@@ -0,0 +1 @@
+xxx
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/wicket/blob/ec7a022b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceStreamLocatorTest_de_DE_POSIX.txt
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceStreamLocatorTest_de_DE_POSIX.txt b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceStreamLocatorTest_de_DE_POSIX.txt
new file mode 100644
index 0000000..ac8522fb
--- /dev/null
+++ b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceStreamLocatorTest_de_DE_POSIX.txt
@@ -0,0 +1 @@
+xxx
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/wicket/blob/ec7a022b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceStreamLocatorTest_de__POSIX.txt
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceStreamLocatorTest_de__POSIX.txt b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceStreamLocatorTest_de__POSIX.txt
new file mode 100644
index 0000000..ac8522fb
--- /dev/null
+++ b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceStreamLocatorTest_de__POSIX.txt
@@ -0,0 +1 @@
+xxx
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/wicket/blob/ec7a022b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceStreamLocatorTest_fr.txt
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceStreamLocatorTest_fr.txt b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceStreamLocatorTest_fr.txt
new file mode 100644
index 0000000..ac8522fb
--- /dev/null
+++ b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceStreamLocatorTest_fr.txt
@@ -0,0 +1 @@
+xxx
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/wicket/blob/ec7a022b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceStreamLocatorTest_style.txt
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceStreamLocatorTest_style.txt b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceStreamLocatorTest_style.txt
new file mode 100644
index 0000000..ac8522fb
--- /dev/null
+++ b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceStreamLocatorTest_style.txt
@@ -0,0 +1 @@
+xxx
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/wicket/blob/ec7a022b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceStreamLocatorTest_style_de.txt
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceStreamLocatorTest_style_de.txt b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceStreamLocatorTest_style_de.txt
new file mode 100644
index 0000000..ac8522fb
--- /dev/null
+++ b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceStreamLocatorTest_style_de.txt
@@ -0,0 +1 @@
+xxx
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/wicket/blob/ec7a022b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceStreamLocatorTest_style_de_DE.txt
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceStreamLocatorTest_style_de_DE.txt b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceStreamLocatorTest_style_de_DE.txt
new file mode 100644
index 0000000..ac8522fb
--- /dev/null
+++ b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceStreamLocatorTest_style_de_DE.txt
@@ -0,0 +1 @@
+xxx
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/wicket/blob/ec7a022b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceStreamLocatorTest_style_de_DE_POSIX.txt
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceStreamLocatorTest_style_de_DE_POSIX.txt b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceStreamLocatorTest_style_de_DE_POSIX.txt
new file mode 100644
index 0000000..ac8522fb
--- /dev/null
+++ b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceStreamLocatorTest_style_de_DE_POSIX.txt
@@ -0,0 +1 @@
+xxx
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/wicket/blob/ec7a022b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceStreamLocatorTest_style_de__POSIX.txt
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceStreamLocatorTest_style_de__POSIX.txt b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceStreamLocatorTest_style_de__POSIX.txt
new file mode 100644
index 0000000..ac8522fb
--- /dev/null
+++ b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceStreamLocatorTest_style_de__POSIX.txt
@@ -0,0 +1 @@
+xxx
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/wicket/blob/ec7a022b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceTest.java
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceTest.java b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceTest.java
deleted file mode 100644
index 3737bdc..0000000
--- a/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceTest.java
+++ /dev/null
@@ -1,173 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.wicket.util.resource;
-
-import java.io.File;
-import java.net.URI;
-import java.net.URISyntaxException;
-import java.net.URL;
-import java.util.Locale;
-
-import org.apache.wicket.WicketTestCase;
-import org.apache.wicket.core.util.resource.UrlResourceStream;
-import org.apache.wicket.core.util.resource.locator.IResourceStreamLocator;
-import org.apache.wicket.core.util.resource.locator.ResourceStreamLocator;
-import org.apache.wicket.util.file.Folder;
-import org.apache.wicket.util.file.Path;
-import org.apache.wicket.util.string.Strings;
-import org.junit.Test;
-
-
-/**
- * Resources test.
- *
- * @author Juergen Donnerstag
- */
-public class ResourceTest extends WicketTestCase
-{
- private final Locale locale_de = new Locale("de");
- private final Locale locale_de_DE = new Locale("de", "DE");
- private final Locale locale_de_DE_POSIX = new Locale("de", "DE", "POSIX");
- private final Locale locale_de_POSIX = new Locale("de", "", "POSIX");
- private final Locale locale_de_CH = new Locale("de", "CH");
-
- private final Locale locale_en = new Locale("en");
- private final Locale locale_en_US = new Locale("en", "US");
- private final Locale locale_en_US_WIN = new Locale("en", "US", "WIN");
- private final Locale locale_en_WIN = new Locale("en", "", "WIN");
-
- private final Locale locale_fr = new Locale("fr");
- private final Locale locale_fr_FR = new Locale("fr", "FR");
- private final Locale locale_fr_FR_WIN = new Locale("fr", "FR", "WIN");
- private final Locale locale_fr_WIN = new Locale("fr", "", "WIN");
-
- /**
- *
- * @param sourcePath
- * @param style
- * @param variation
- * @param locale
- * @param extension
- */
- public void createAndTestResource(Path sourcePath, String style, String variation,
- Locale locale, String extension)
- {
- IResourceStreamLocator locator = new ResourceStreamLocator(sourcePath);
- IResourceStream resource = locator.locate(this.getClass(), this.getClass()
- .getName()
- .replace('.', '/'), style, variation, locale, "txt", false);
- compareFilename(resource, extension);
- }
-
- /**
- *
- * @param sourcePath
- */
- public void executeMultiple(Path sourcePath)
- {
- createAndTestResource(sourcePath, null, null, null, "");
- createAndTestResource(sourcePath, "style", null, null, "_style");
-
- createAndTestResource(sourcePath, null, null, locale_de, "_de");
- createAndTestResource(sourcePath, null, null, locale_de_DE, "_de_DE");
- createAndTestResource(sourcePath, null, null, locale_de_DE_POSIX, "_de_DE_POSIX");
- createAndTestResource(sourcePath, null, null, locale_de_POSIX, "_de__POSIX");
- createAndTestResource(sourcePath, null, null, locale_de_CH, "_de");
-
- createAndTestResource(sourcePath, "style", null, locale_de, "_style_de");
- createAndTestResource(sourcePath, "style", null, locale_de_DE, "_style_de_DE");
- createAndTestResource(sourcePath, "style", null, locale_de_DE_POSIX, "_style_de_DE_POSIX");
- createAndTestResource(sourcePath, "style", null, locale_de_POSIX, "_style_de__POSIX");
- createAndTestResource(sourcePath, "style", null, locale_de_CH, "_style_de");
-
- createAndTestResource(sourcePath, null, null, locale_en, "");
- createAndTestResource(sourcePath, null, null, locale_en_US, "");
- createAndTestResource(sourcePath, null, null, locale_en_US_WIN, "");
- createAndTestResource(sourcePath, null, null, locale_en_WIN, "");
- createAndTestResource(sourcePath, "style", null, locale_en_WIN, "_style");
-
- createAndTestResource(sourcePath, null, null, locale_fr, "_fr");
- createAndTestResource(sourcePath, null, null, locale_fr_FR, "_fr");
- createAndTestResource(sourcePath, null, null, locale_fr_FR_WIN, "_fr");
- createAndTestResource(sourcePath, null, null, locale_fr_WIN, "_fr");
- createAndTestResource(sourcePath, "style", null, locale_fr_WIN, "_style");
- }
-
- /**
- * Test locating a resource.
- */
- @Test
- public void locate()
- {
- // Execute without source path
- executeMultiple(new Path());
-
- // Determine source path
- IResourceStreamLocator locator = new ResourceStreamLocator();
- IResourceStream resource = locator.locate(getClass(),
- this.getClass().getName().replace('.', '/'), null, null, null, "txt", false);
- String path = getPath(resource);
- path = Strings.beforeLastPathComponent(path, '/') + "/sourcePath";
-
- // and execute
- executeMultiple(new Path(new Folder(path)));
- }
-
- /**
- * Compares the given name with the resource.
- *
- * @param resource
- * @param name
- */
- private void compareFilename(IResourceStream resource, String name)
- {
- assertNotNull("Did not find resource: " + name, resource);
-
- String filename = Strings.replaceAll(this.getClass().getName(), ".", "/").toString();
- filename += name + ".txt";
- String resourcePath = getPath(resource);
-
- if (!resourcePath.endsWith(filename))
- {
- filename = Strings.afterLast(filename, '/');
- resourcePath = Strings.afterLast(resourcePath, '/');
- assertEquals("Did not find resource", filename, resourcePath);
- }
- }
-
- /**
- * Gets the path of the resource as a string.
- *
- * @param resource
- * the resource
- * @return the path of the resource as a string
- */
- private String getPath(IResourceStream resource)
- {
- try
- {
- URL url = ((UrlResourceStream)resource).getURL();
- CharSequence path = new File(new URI(url.toString())).getPath();
- path = Strings.replaceAll(path, "\\", "/");
- return path.toString();
- }
- catch (URISyntaxException e)
- {
- throw new RuntimeException(e);
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/wicket/blob/ec7a022b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceTest.txt
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceTest.txt b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceTest.txt
deleted file mode 100644
index ac8522fb..0000000
--- a/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceTest.txt
+++ /dev/null
@@ -1 +0,0 @@
-xxx
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/wicket/blob/ec7a022b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceTest_de.txt
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceTest_de.txt b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceTest_de.txt
deleted file mode 100644
index ac8522fb..0000000
--- a/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceTest_de.txt
+++ /dev/null
@@ -1 +0,0 @@
-xxx
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/wicket/blob/ec7a022b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceTest_de_DE.txt
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceTest_de_DE.txt b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceTest_de_DE.txt
deleted file mode 100644
index ac8522fb..0000000
--- a/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceTest_de_DE.txt
+++ /dev/null
@@ -1 +0,0 @@
-xxx
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/wicket/blob/ec7a022b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceTest_de_DE_POSIX.txt
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceTest_de_DE_POSIX.txt b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceTest_de_DE_POSIX.txt
deleted file mode 100644
index ac8522fb..0000000
--- a/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceTest_de_DE_POSIX.txt
+++ /dev/null
@@ -1 +0,0 @@
-xxx
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/wicket/blob/ec7a022b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceTest_de__POSIX.txt
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceTest_de__POSIX.txt b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceTest_de__POSIX.txt
deleted file mode 100644
index ac8522fb..0000000
--- a/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceTest_de__POSIX.txt
+++ /dev/null
@@ -1 +0,0 @@
-xxx
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/wicket/blob/ec7a022b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceTest_fr.txt
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceTest_fr.txt b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceTest_fr.txt
deleted file mode 100644
index ac8522fb..0000000
--- a/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceTest_fr.txt
+++ /dev/null
@@ -1 +0,0 @@
-xxx
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/wicket/blob/ec7a022b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceTest_style.txt
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceTest_style.txt b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceTest_style.txt
deleted file mode 100644
index ac8522fb..0000000
--- a/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceTest_style.txt
+++ /dev/null
@@ -1 +0,0 @@
-xxx
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/wicket/blob/ec7a022b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceTest_style_de.txt
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceTest_style_de.txt b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceTest_style_de.txt
deleted file mode 100644
index ac8522fb..0000000
--- a/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceTest_style_de.txt
+++ /dev/null
@@ -1 +0,0 @@
-xxx
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/wicket/blob/ec7a022b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceTest_style_de_DE.txt
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceTest_style_de_DE.txt b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceTest_style_de_DE.txt
deleted file mode 100644
index ac8522fb..0000000
--- a/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceTest_style_de_DE.txt
+++ /dev/null
@@ -1 +0,0 @@
-xxx
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/wicket/blob/ec7a022b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceTest_style_de_DE_POSIX.txt
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceTest_style_de_DE_POSIX.txt b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceTest_style_de_DE_POSIX.txt
deleted file mode 100644
index ac8522fb..0000000
--- a/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceTest_style_de_DE_POSIX.txt
+++ /dev/null
@@ -1 +0,0 @@
-xxx
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/wicket/blob/ec7a022b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceTest_style_de__POSIX.txt
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceTest_style_de__POSIX.txt b/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceTest_style_de__POSIX.txt
deleted file mode 100644
index ac8522fb..0000000
--- a/wicket-core/src/test/java/org/apache/wicket/util/resource/ResourceTest_style_de__POSIX.txt
+++ /dev/null
@@ -1 +0,0 @@
-xxx
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/wicket/blob/ec7a022b/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceStreamLocatorTest.txt
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceStreamLocatorTest.txt b/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceStreamLocatorTest.txt
new file mode 100644
index 0000000..ac8522fb
--- /dev/null
+++ b/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceStreamLocatorTest.txt
@@ -0,0 +1 @@
+xxx
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/wicket/blob/ec7a022b/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceStreamLocatorTest_de.txt
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceStreamLocatorTest_de.txt b/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceStreamLocatorTest_de.txt
new file mode 100644
index 0000000..ac8522fb
--- /dev/null
+++ b/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceStreamLocatorTest_de.txt
@@ -0,0 +1 @@
+xxx
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/wicket/blob/ec7a022b/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceStreamLocatorTest_de_DE.txt
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceStreamLocatorTest_de_DE.txt b/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceStreamLocatorTest_de_DE.txt
new file mode 100644
index 0000000..ac8522fb
--- /dev/null
+++ b/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceStreamLocatorTest_de_DE.txt
@@ -0,0 +1 @@
+xxx
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/wicket/blob/ec7a022b/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceStreamLocatorTest_de_DE_POSIX.txt
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceStreamLocatorTest_de_DE_POSIX.txt b/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceStreamLocatorTest_de_DE_POSIX.txt
new file mode 100644
index 0000000..ac8522fb
--- /dev/null
+++ b/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceStreamLocatorTest_de_DE_POSIX.txt
@@ -0,0 +1 @@
+xxx
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/wicket/blob/ec7a022b/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceStreamLocatorTest_de__POSIX.txt
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceStreamLocatorTest_de__POSIX.txt b/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceStreamLocatorTest_de__POSIX.txt
new file mode 100644
index 0000000..ac8522fb
--- /dev/null
+++ b/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceStreamLocatorTest_de__POSIX.txt
@@ -0,0 +1 @@
+xxx
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/wicket/blob/ec7a022b/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceStreamLocatorTest_style.txt
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceStreamLocatorTest_style.txt b/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceStreamLocatorTest_style.txt
new file mode 100644
index 0000000..ac8522fb
--- /dev/null
+++ b/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceStreamLocatorTest_style.txt
@@ -0,0 +1 @@
+xxx
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/wicket/blob/ec7a022b/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceStreamLocatorTest_style_de.txt
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceStreamLocatorTest_style_de.txt b/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceStreamLocatorTest_style_de.txt
new file mode 100644
index 0000000..ac8522fb
--- /dev/null
+++ b/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceStreamLocatorTest_style_de.txt
@@ -0,0 +1 @@
+xxx
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/wicket/blob/ec7a022b/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceStreamLocatorTest_style_de_DE.txt
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceStreamLocatorTest_style_de_DE.txt b/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceStreamLocatorTest_style_de_DE.txt
new file mode 100644
index 0000000..ac8522fb
--- /dev/null
+++ b/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceStreamLocatorTest_style_de_DE.txt
@@ -0,0 +1 @@
+xxx
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/wicket/blob/ec7a022b/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceStreamLocatorTest_style_de_DE_POSIX.txt
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceStreamLocatorTest_style_de_DE_POSIX.txt b/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceStreamLocatorTest_style_de_DE_POSIX.txt
new file mode 100644
index 0000000..ac8522fb
--- /dev/null
+++ b/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceStreamLocatorTest_style_de_DE_POSIX.txt
@@ -0,0 +1 @@
+xxx
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/wicket/blob/ec7a022b/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceStreamLocatorTest_style_de__POSIX.txt
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceStreamLocatorTest_style_de__POSIX.txt b/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceStreamLocatorTest_style_de__POSIX.txt
new file mode 100644
index 0000000..ac8522fb
--- /dev/null
+++ b/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceStreamLocatorTest_style_de__POSIX.txt
@@ -0,0 +1 @@
+xxx
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/wicket/blob/ec7a022b/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceTest.txt
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceTest.txt b/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceTest.txt
deleted file mode 100644
index ac8522fb..0000000
--- a/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceTest.txt
+++ /dev/null
@@ -1 +0,0 @@
-xxx
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/wicket/blob/ec7a022b/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceTest_de.txt
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceTest_de.txt b/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceTest_de.txt
deleted file mode 100644
index ac8522fb..0000000
--- a/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceTest_de.txt
+++ /dev/null
@@ -1 +0,0 @@
-xxx
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/wicket/blob/ec7a022b/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceTest_de_DE.txt
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceTest_de_DE.txt b/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceTest_de_DE.txt
deleted file mode 100644
index ac8522fb..0000000
--- a/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceTest_de_DE.txt
+++ /dev/null
@@ -1 +0,0 @@
-xxx
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/wicket/blob/ec7a022b/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceTest_de_DE_POSIX.txt
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceTest_de_DE_POSIX.txt b/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceTest_de_DE_POSIX.txt
deleted file mode 100644
index ac8522fb..0000000
--- a/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceTest_de_DE_POSIX.txt
+++ /dev/null
@@ -1 +0,0 @@
-xxx
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/wicket/blob/ec7a022b/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceTest_de__POSIX.txt
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceTest_de__POSIX.txt b/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceTest_de__POSIX.txt
deleted file mode 100644
index ac8522fb..0000000
--- a/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceTest_de__POSIX.txt
+++ /dev/null
@@ -1 +0,0 @@
-xxx
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/wicket/blob/ec7a022b/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceTest_style.txt
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceTest_style.txt b/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceTest_style.txt
deleted file mode 100644
index ac8522fb..0000000
--- a/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceTest_style.txt
+++ /dev/null
@@ -1 +0,0 @@
-xxx
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/wicket/blob/ec7a022b/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceTest_style_de.txt
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceTest_style_de.txt b/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceTest_style_de.txt
deleted file mode 100644
index ac8522fb..0000000
--- a/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceTest_style_de.txt
+++ /dev/null
@@ -1 +0,0 @@
-xxx
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/wicket/blob/ec7a022b/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceTest_style_de_DE.txt
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceTest_style_de_DE.txt b/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceTest_style_de_DE.txt
deleted file mode 100644
index ac8522fb..0000000
--- a/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceTest_style_de_DE.txt
+++ /dev/null
@@ -1 +0,0 @@
-xxx
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/wicket/blob/ec7a022b/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceTest_style_de_DE_POSIX.txt
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceTest_style_de_DE_POSIX.txt b/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceTest_style_de_DE_POSIX.txt
deleted file mode 100644
index ac8522fb..0000000
--- a/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceTest_style_de_DE_POSIX.txt
+++ /dev/null
@@ -1 +0,0 @@
-xxx
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/wicket/blob/ec7a022b/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceTest_style_de__POSIX.txt
----------------------------------------------------------------------
diff --git a/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceTest_style_de__POSIX.txt b/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceTest_style_de__POSIX.txt
deleted file mode 100644
index ac8522fb..0000000
--- a/wicket-core/src/test/java/org/apache/wicket/util/resource/sourcePath/ResourceTest_style_de__POSIX.txt
+++ /dev/null
@@ -1 +0,0 @@
-xxx
\ No newline at end of file