fixed merge
This commit is contained in:
parent
e1faa5c1e9
commit
6123605694
|
@ -51,10 +51,10 @@ import org.eclipse.jetty.toolchain.test.IO;
|
|||
import org.eclipse.jetty.toolchain.test.OS;
|
||||
import org.eclipse.jetty.toolchain.test.TestingDir;
|
||||
import org.eclipse.jetty.util.BufferUtil;
|
||||
import org.eclipse.jetty.util.CollectionAssert;
|
||||
import org.hamcrest.BaseMatcher;
|
||||
import org.hamcrest.Description;
|
||||
import org.hamcrest.Matcher;
|
||||
import org.hamcrest.Matchers;
|
||||
import org.junit.Rule;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
@ -551,8 +551,10 @@ public class FileSystemResourceTest
|
|||
String list[] = base.list();
|
||||
List<String> actual = Arrays.asList(list);
|
||||
|
||||
CollectionAssert.assertContainsUnordered("Resource Directory Listing",
|
||||
expected,actual);
|
||||
assertEquals(expected.size(),actual.size());
|
||||
for (String s : expected)
|
||||
assertEquals(true,actual.contains(s));
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -188,21 +188,6 @@ public class ResourceTest
|
|||
}
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------ */
|
||||
@Test
|
||||
public void testEncodeAddPath ()
|
||||
throws Exception
|
||||
{
|
||||
Resource r;
|
||||
|
||||
r = Resource.newResource(__userURL+"TestData/").addPath("foo%/b r");
|
||||
Assert.assertThat(r.getURI().toString(),Matchers.endsWith("/foo%25/b%20r"));
|
||||
|
||||
r = Resource.newResource("jar:"+__userURL+"TestData/test.zip!/subdir/").addPath("foo%/b r");
|
||||
Assert.assertThat(r.getURI().toString(),Matchers.endsWith("/foo%25/b%20r"));
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Parameters(name="{0}")
|
||||
public static Collection<Data[]> data() throws Exception
|
||||
|
|
Loading…
Reference in New Issue