com.sap.cloud.sdk.cloudplatform.tenant.TenantRequestContextListener Java Examples

The following examples show how to use com.sap.cloud.sdk.cloudplatform.tenant.TenantRequestContextListener. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TestUtil.java    From cap-community with MIT License 5 votes vote down vote up
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"));
}
 
Example #2
Source File: TestUtil.java    From cloud-s4-sdk-book with Apache License 2.0 5 votes vote down vote up
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"));
}
 
Example #3
Source File: TestUtil.java    From cloud-s4-sdk-examples with Apache License 2.0 5 votes vote down vote up
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"));
}
 
Example #4
Source File: TestUtil.java    From cloud-s4-sdk-examples with Apache License 2.0 5 votes vote down vote up
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");
}
 
Example #5
Source File: TestUtil.java    From cloud-s4-sdk-examples with Apache License 2.0 5 votes vote down vote up
public static WebArchive createDeployment( final Class<?>... classesUnderTest )
{
    return ShrinkWrap
        .create(WebArchive.class)
        .addClasses(classesUnderTest)
        .addClass(RequestContextServletFilter.class)
        .addClass(TenantRequestContextListener.class)
        .addClass(DestinationsRequestContextListener.class)
        .addAsManifestResource("arquillian.xml")
        .addAsWebInfResource(new ByteArrayAsset("<beans/>".getBytes()), ArchivePaths.create("beans.xml"));
}
 
Example #6
Source File: TestUtil.java    From cloud-s4-sdk-examples with Apache License 2.0 5 votes vote down vote up
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");
}
 
Example #7
Source File: TestUtil.java    From cloud-s4-sdk-examples with Apache License 2.0 5 votes vote down vote up
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");
}
 
Example #8
Source File: TestUtil.java    From cloud-s4-sdk-examples with Apache License 2.0 5 votes vote down vote up
public static WebArchive createDeployment(final Class<?>... classesUnderTest )
{
    return ShrinkWrap
        .create(WebArchive.class)
        .addClasses(classesUnderTest)
        .addClass(JacksonJsonProvider.class)
        .addClass(JaxRsExceptionMapper.class)
        .addClass(RequestContextServletFilter.class)
        .addClass(TenantRequestContextListener.class)
        .addClass(DestinationsRequestContextListener.class)
        .addAsManifestResource("arquillian.xml");
}
 
Example #9
Source File: TestUtil.java    From cloud-s4-sdk-examples with Apache License 2.0 5 votes vote down vote up
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");
}