// Path: testing/src/main/java/org/pac4j/jax/rs/rules/ContainerRule.java
// public interface ContainerRule extends TestRule, TestConfig {
// 
//     WebTarget getTarget(String url);
// 
//     String cookieName();
// 
//     default Set<Class<?>> getResources() {
//         return Sets.newLinkedHashSet(TestResource.class, TestClassLevelResource.class, TestProxyResource.class);
//     }
// }
// 
// Path: jersey225/src/test/java/org/pac4j/jax/rs/rules/JerseyInMemoryRule.java
// public class JerseyInMemoryRule extends JerseyRule {
// 
//     @Override
//     public Set<Class<?>> getResources() {
//         Set<Class<?>> resources = super.getResources();
//         resources.add(JerseyResource.class);
//         return resources;
//     }
// 
//     @Override
//     protected TestContainerFactory getTestContainerFactory() {
//         return new InMemoryTestContainerFactory();
//     }
// 
//     @Override
//     protected DeploymentContext configureDeployment(ResourceConfig config) {
//         return DeploymentContext.builder(config).build();
//     }
// 
//     protected ResourceConfig configureResourceConfig(ResourceConfig config) {
//         final Config pac4jConfig = getConfig();
//         // we create a fake session to make tests pass. Otherwise we would need: matchers="none"
//         // or pac4j should be able to handle no session store.
//         pac4jConfig.setSessionStore(Mockito.mock(SessionStore.class));
//         return config
//             .register(new JaxRsConfigProvider(pac4jConfig))
//             .register(new Pac4JSecurityFeature())
//             .register(new Pac4JValueFactoryProvider.Binder())
//             .register(JaxRsContextFactoryProvider.class);
//     }
// }


import org.pac4j.jax.rs.rules.ContainerRule;
import org.pac4j.jax.rs.rules.JerseyInMemoryRule;
package org.pac4j.jax.rs;


/**
 *
 * @author Victor Noel - Linagora
 * @since 1.0.0
 *
 */
public class JerseyInMemoryTest extends AbstractTest {
    @Override
    protected ContainerRule createContainer() {
// Path: testing/src/main/java/org/pac4j/jax/rs/rules/ContainerRule.java
// public interface ContainerRule extends TestRule, TestConfig {
// 
//     WebTarget getTarget(String url);
// 
//     String cookieName();
// 
//     default Set<Class<?>> getResources() {
//         return Sets.newLinkedHashSet(TestResource.class, TestClassLevelResource.class, TestProxyResource.class);
//     }
// }
// 
// Path: jersey225/src/test/java/org/pac4j/jax/rs/rules/JerseyInMemoryRule.java
// public class JerseyInMemoryRule extends JerseyRule {
// 
//     @Override
//     public Set<Class<?>> getResources() {
//         Set<Class<?>> resources = super.getResources();
//         resources.add(JerseyResource.class);
//         return resources;
//     }
// 
//     @Override
//     protected TestContainerFactory getTestContainerFactory() {
//         return new InMemoryTestContainerFactory();
//     }
// 
//     @Override
//     protected DeploymentContext configureDeployment(ResourceConfig config) {
//         return DeploymentContext.builder(config).build();
//     }
// 
//     protected ResourceConfig configureResourceConfig(ResourceConfig config) {
//         final Config pac4jConfig = getConfig();
//         // we create a fake session to make tests pass. Otherwise we would need: matchers="none"
//         // or pac4j should be able to handle no session store.
//         pac4jConfig.setSessionStore(Mockito.mock(SessionStore.class));
//         return config
//             .register(new JaxRsConfigProvider(pac4jConfig))
//             .register(new Pac4JSecurityFeature())
//             .register(new Pac4JValueFactoryProvider.Binder())
//             .register(JaxRsContextFactoryProvider.class);
//     }
// }


// Path: jersey225/src/test/java/org/pac4j/jax/rs/JerseyInMemoryTest.java
import org.pac4j.jax.rs.rules.ContainerRule;
import org.pac4j.jax.rs.rules.JerseyInMemoryRule;

package org.pac4j.jax.rs;


/**
 *
 * @author Victor Noel - Linagora
 * @since 1.0.0
 *
 */
public class JerseyInMemoryTest extends AbstractTest {
    @Override
    protected ContainerRule createContainer() {
        return new JerseyInMemoryRule();