@Override public void verify(TestContext testContext) { String className = "org.glassfish.jersey.inject.hk2.AbstractHk2InjectionManager"; Optional<Class> foundClass = ReflectionUtil.INSTANCE.load(className); testContext.addError( !foundClass.isPresent(), "Please insure Jersey HK2 class '{}' is in the classpath", className ); }
@Override public void verify(TestContext testContext) { String className = "org.springframework.context.ApplicationContext"; Optional<Class> foundClass = ReflectionUtil.INSTANCE.load(className); testContext.addError( !foundClass.isPresent(), "Please insure Spring Application Context class '{}' is in the classpath", className ); }
@Override public void verify(TestContext testContext) { String className = "org.glassfish.jersey.server.ResourceConfig"; Optional<Class> foundClass = ReflectionUtil.INSTANCE.load(className); testContext.addError( !foundClass.isPresent(), "Please insure Jersey 2 class '{}' is in the classpath", className ); }
@Override public void verify(TestContext testContext) { String className = "com.google.inject.Guice"; Optional<Class> foundClass = ReflectionUtil.INSTANCE.load(className); testContext.addError( !foundClass.isPresent(), "Please insure Guice class '{}' is in the classpath", className ); }
@Override public void verify(TestContext testContext) { String className = "org.springframework.web.WebApplicationInitializer"; Optional<Class> foundClass = ReflectionUtil.INSTANCE.load(className); testContext.addError( !foundClass.isPresent(), "Please insure Spring Web MVC class '{}' is in the classpath", className ); }
@Override public void verify(TestContext testContext) { String className = "org.glassfish.hk2.api.ServiceLocator"; Optional<Class> foundClass = ReflectionUtil.INSTANCE.load(className); testContext.addError( !foundClass.isPresent(), "Please insure HK2 class '{}' is in the classpath", className ); }
@Override public void verify(TestContext testContext) { String className = "org.springframework.boot.env.EnvironmentPostProcessor"; Optional<Class> foundClass = ReflectionUtil.INSTANCE.load(className); testContext.addError( !foundClass.isPresent(), "Please insure SpringBoot class '{}' is in the classpath", className ); }