Java源码示例:com.sap.cloud.sdk.cloudplatform.security.user.UserRequestContextListener
示例1
public static WebArchive createDeployment(final Class<?>... classesUnderTest) {
return ShrinkWrap
.create(WebArchive.class)
.addClasses(classesUnderTest)
.addClasses(RequestContextServletFilter.class, RequestContextCallable.class)
.addClass(TenantRequestContextListener.class)
.addClass(UserRequestContextListener.class)
.addClass(DestinationsRequestContextListener.class)
.addAsManifestResource("arquillian.xml")
.setWebXML("web.xml")
.addAsWebInfResource("spring-security.xml")
.addAsWebInfResource(new ByteArrayAsset("<beans/>".getBytes()), ArchivePaths.create("beans.xml"));
}
示例2
public static WebArchive createDeployment( final Class<?>... classesUnderTest )
{
return ShrinkWrap
.create(WebArchive.class)
.addClasses(classesUnderTest)
.addClasses(RequestContextServletFilter.class, RequestContextCallable.class)
.addClass(TenantRequestContextListener.class)
.addClass(UserRequestContextListener.class)
.addClass(DestinationsRequestContextListener.class)
.addAsManifestResource("arquillian.xml")
.addAsWebInfResource(new ByteArrayAsset("<beans/>".getBytes()), ArchivePaths.create("beans.xml"));
}
示例3
public static WebArchive createDeployment( final Class<?>... classesUnderTest )
{
return ShrinkWrap
.create(WebArchive.class)
.addClasses(classesUnderTest)
.addClasses(RequestContextServletFilter.class, RequestContextCallable.class)
.addClass(TenantRequestContextListener.class)
.addClass(UserRequestContextListener.class)
.addClass(DestinationsRequestContextListener.class)
.addAsManifestResource("arquillian.xml")
.addAsWebInfResource(new ByteArrayAsset("<beans/>".getBytes()), ArchivePaths.create("beans.xml"));
}
示例4
public static WebArchive createDeployment( final Class<?>... classesUnderTest )
{
return ShrinkWrap
.create(WebArchive.class)
.addClasses(classesUnderTest)
.addClass(RequestContextServletFilter.class)
.addClass(TenantRequestContextListener.class)
.addClass(UserRequestContextListener.class)
.addClass(DestinationsRequestContextListener.class)
.addAsManifestResource("arquillian.xml");
}
示例5
public static WebArchive createDeployment( final Class<?>... classesUnderTest )
{
return ShrinkWrap
.create(WebArchive.class)
.addClasses(classesUnderTest)
.addClass(RequestContextServletFilter.class)
.addClass(TenantRequestContextListener.class)
.addClass(UserRequestContextListener.class)
.addClass(DestinationsRequestContextListener.class)
.addAsManifestResource("arquillian.xml");
}
示例6
public static WebArchive createDeployment( final Class<?>... classesUnderTest )
{
return ShrinkWrap
.create(WebArchive.class)
.addClasses(classesUnderTest)
.addClass(RequestContextServletFilter.class)
.addClass(TenantRequestContextListener.class)
.addClass(UserRequestContextListener.class)
.addClass(DestinationsRequestContextListener.class)
.addAsManifestResource("arquillian.xml");
}
示例7
public static WebArchive createDeployment( final Class<?>... classesUnderTest )
{
return ShrinkWrap
.create(WebArchive.class)
.addClasses(classesUnderTest)
.addClass(RequestContextServletFilter.class)
.addClass(TenantRequestContextListener.class)
.addClass(UserRequestContextListener.class)
.addClass(DestinationsRequestContextListener.class)
.addAsManifestResource("arquillian.xml");
}