fix powermock classloader issues with Java 9 and above

This commit is contained in:
Xavier Léauté 2019-05-01 23:22:22 -07:00 committed by Xavier Léauté
parent c948422f32
commit 5c7803fe6b

View File

@ -69,7 +69,9 @@ import java.util.Map;
CacheScheduler.VersionedCache.class,
CacheScheduler.Entry.class
})
@PowerMockIgnore("javax.net.ssl.*")
// defer classloading of the following classes to the system classloader
// since they need to be loaded in the right Java module in JDK9 and above
@PowerMockIgnore({"javax.net.ssl.*", "javax.xml.*", "com.sun.xml.*"})
public class NamespaceLookupExtractorFactoryTest
{
private final ObjectMapper mapper = new DefaultObjectMapper();