diff -r 3381129e3ae2 tests/netx/unit/net/sourceforge/jnlp/security/AppTrustWarningPanelTest.java --- a/tests/netx/unit/net/sourceforge/jnlp/security/AppTrustWarningPanelTest.java Mon Mar 03 12:21:19 2014 -0500 +++ b/tests/netx/unit/net/sourceforge/jnlp/security/AppTrustWarningPanelTest.java Tue Mar 04 13:36:50 2014 +0100 @@ -1,24 +1,17 @@ package net.sourceforge.jnlp.security; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertNotNull; -import static org.junit.Assert.assertTrue; - import java.net.URL; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; - import javax.swing.JButton; - import net.sourceforge.jnlp.PluginBridge; import net.sourceforge.jnlp.PluginParameters; -import net.sourceforge.jnlp.security.SecurityDialogs.AccessType; -import net.sourceforge.jnlp.security.SecurityDialogs.DialogType; -import net.sourceforge.jnlp.tools.JarCertVerifier; - +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertNotNull; +import static org.junit.Assert.assertTrue; import org.junit.BeforeClass; import org.junit.Test; diff -r 3381129e3ae2 tests/netx/unit/net/sourceforge/jnlp/util/ClasspathMatcherTest.java --- a/tests/netx/unit/net/sourceforge/jnlp/util/ClasspathMatcherTest.java Mon Mar 03 12:21:19 2014 -0500 +++ b/tests/netx/unit/net/sourceforge/jnlp/util/ClasspathMatcherTest.java Tue Mar 04 13:36:50 2014 +0100 @@ -556,4 +556,13 @@ Assert.assertFalse(cps2.matches(new URL("http://bb.cz"))); } + + @Test + public void testStar() throws MalformedURLException { + ClasspathMatchers cps1 = ClasspathMatcher.ClasspathMatchers.compile("*"); + Assert.assertTrue(cps1.matches(new URL("http://whatever.anywher/something/at.some"))); + Assert.assertTrue(cps1.matches(new URL("http://whatever.anywher/something/at"))); + Assert.assertTrue(cps1.matches(new URL("http://whatever.anywher/"))); + Assert.assertTrue(cps1.matches(new URL("http://whatever.anywher"))); + } }