Change package used to test path matching

The org.reactivestreams has 13 instead of 4 classes in 1.0.3 with the
addition of Java 9 Flow adapters. This commit switches to using a
different package reactor.util.annotation, also with a small number of
classes, for this test.
This commit is contained in:
Rossen Stoyanchev 2019-09-04 10:37:57 +01:00
parent 57d9b92b94
commit c8f430ee91
1 changed files with 6 additions and 6 deletions

View File

@ -53,8 +53,8 @@ class PathMatchingResourcePatternResolverTests {
private static final String[] TEST_CLASSES_IN_CORE_IO_SUPPORT =
new String[] {"PathMatchingResourcePatternResolverTests.class"};
private static final String[] CLASSES_IN_REACTIVESTREAMS =
new String[] {"Processor.class", "Publisher.class", "Subscriber.class", "Subscription.class"};
private static final String[] CLASSES_IN_REACTOR_UTIL_ANNOTATIONS =
new String[] {"NonNull.class", "NonNullApi.class", "Nullable.class"};
private PathMatchingResourcePatternResolver resolver = new PathMatchingResourcePatternResolver();
@ -106,14 +106,14 @@ class PathMatchingResourcePatternResolverTests {
@Test
void classpathWithPatternInJar() throws IOException {
Resource[] resources = resolver.getResources("classpath:org/reactivestreams/*.class");
assertProtocolAndFilenames(resources, "jar", CLASSES_IN_REACTIVESTREAMS);
Resource[] resources = resolver.getResources("classpath:reactor/util/annotation/*.class");
assertProtocolAndFilenames(resources, "jar", CLASSES_IN_REACTOR_UTIL_ANNOTATIONS);
}
@Test
void classpathStarWithPatternInJar() throws IOException {
Resource[] resources = resolver.getResources("classpath*:org/reactivestreams/*.class");
assertProtocolAndFilenames(resources, "jar", CLASSES_IN_REACTIVESTREAMS);
Resource[] resources = resolver.getResources("classpath*:reactor/util/annotation/*.class");
assertProtocolAndFilenames(resources, "jar", CLASSES_IN_REACTOR_UTIL_ANNOTATIONS);
}
@Test