Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Waibel2015-05-24 09:51:36 -0400
committerFlorian Waibel2015-05-24 09:51:36 -0400
commit47a6909223626e6b8a226e8c6fe9ae92a9e848f2 (patch)
tree78d0c62490530aaea288823cc347effc42ebc5f2
parentf5db4fbf1ade0b85baa642d372468bcfed849a21 (diff)
downloadorg.eclipse.virgo.medic-47a6909223626e6b8a226e8c6fe9ae92a9e848f2.tar.gz
org.eclipse.virgo.medic-47a6909223626e6b8a226e8c6fe9ae92a9e848f2.tar.xz
org.eclipse.virgo.medic-47a6909223626e6b8a226e8c6fe9ae92a9e848f2.zip
Reworks test stubs to work more nicely with generics
-rw-r--r--org.eclipse.virgo.medic.core/src/test/java/org/eclipse/virgo/medic/eventlog/impl/BundleSearchingPropertyResourceBundleResolverTests.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.virgo.medic.core/src/test/java/org/eclipse/virgo/medic/eventlog/impl/BundleSearchingPropertyResourceBundleResolverTests.java b/org.eclipse.virgo.medic.core/src/test/java/org/eclipse/virgo/medic/eventlog/impl/BundleSearchingPropertyResourceBundleResolverTests.java
index 8fb712d..126619f 100644
--- a/org.eclipse.virgo.medic.core/src/test/java/org/eclipse/virgo/medic/eventlog/impl/BundleSearchingPropertyResourceBundleResolverTests.java
+++ b/org.eclipse.virgo.medic.core/src/test/java/org/eclipse/virgo/medic/eventlog/impl/BundleSearchingPropertyResourceBundleResolverTests.java
@@ -37,7 +37,7 @@ public class BundleSearchingPropertyResourceBundleResolverTests {
public void entryNotFound() {
StubBundle bundle = new StubBundle().setFindEntriesDelegate(new FindEntriesDelegate() {
- public Enumeration<?> findEntries(String path, String pattern, boolean recurse) {
+ public Enumeration<URL> findEntries(String path, String pattern, boolean recurse) {
return null;
}
});
@@ -50,7 +50,7 @@ public class BundleSearchingPropertyResourceBundleResolverTests {
public void nonExistentEntry() {
StubBundle bundle = new StubBundle().setFindEntriesDelegate(new FindEntriesDelegate() {
- public Enumeration<?> findEntries(String path, String pattern, boolean recurse) {
+ public Enumeration<URL> findEntries(String path, String pattern, boolean recurse) {
try {
Vector<URL> urls = new Vector<URL>();
urls.add(new File("does/not/exist").toURI().toURL());
@@ -70,7 +70,7 @@ public class BundleSearchingPropertyResourceBundleResolverTests {
public void existingEntry() {
StubBundle bundle = new StubBundle().setFindEntriesDelegate(new FindEntriesDelegate() {
- public Enumeration<?> findEntries(String path, String pattern, boolean recurse) {
+ public Enumeration<URL> findEntries(String path, String pattern, boolean recurse) {
try {
Vector<URL> urls = new Vector<URL>();
urls.add(new File("src/test/resources/messages.properties").toURI().toURL());

Back to the top