Search in sources :

Example 1 with ExternalTestContainerFactory

use of org.glassfish.jersey.test.external.ExternalTestContainerFactory in project jersey by jersey.

the class ContactCardTest method getBaseUri.

@Override
protected URI getBaseUri() {
    final UriBuilder baseUriBuilder = UriBuilder.fromUri(super.getBaseUri()).path("bean-validation-webapp");
    final boolean externalFactoryInUse = getTestContainerFactory() instanceof ExternalTestContainerFactory;
    return externalFactoryInUse ? baseUriBuilder.path("api").build() : baseUriBuilder.build();
}
Also used : UriBuilder(javax.ws.rs.core.UriBuilder) ExternalTestContainerFactory(org.glassfish.jersey.test.external.ExternalTestContainerFactory)

Example 2 with ExternalTestContainerFactory

use of org.glassfish.jersey.test.external.ExternalTestContainerFactory in project jersey by jersey.

the class ItemStoreResourceTest method getBaseUri.

@Override
protected URI getBaseUri() {
    final UriBuilder baseUriBuilder = UriBuilder.fromUri(super.getBaseUri()).path("sse-item-store-webapp");
    final boolean externalFactoryInUse = getTestContainerFactory() instanceof ExternalTestContainerFactory;
    return externalFactoryInUse ? baseUriBuilder.path("resources").build() : baseUriBuilder.build();
}
Also used : UriBuilder(javax.ws.rs.core.UriBuilder) ExternalTestContainerFactory(org.glassfish.jersey.test.external.ExternalTestContainerFactory)

Example 3 with ExternalTestContainerFactory

use of org.glassfish.jersey.test.external.ExternalTestContainerFactory in project jersey by jersey.

the class ManagedClientSimpleTest method getBaseUri.

@Override
protected URI getBaseUri() {
    final UriBuilder baseUriBuilder = UriBuilder.fromUri(super.getBaseUri()).path("managed-client-simple-webapp");
    final boolean externalFactoryInUse = getTestContainerFactory() instanceof ExternalTestContainerFactory;
    return externalFactoryInUse ? baseUriBuilder.path("app").build() : baseUriBuilder.build();
}
Also used : UriBuilder(javax.ws.rs.core.UriBuilder) ExternalTestContainerFactory(org.glassfish.jersey.test.external.ExternalTestContainerFactory)

Example 4 with ExternalTestContainerFactory

use of org.glassfish.jersey.test.external.ExternalTestContainerFactory in project jersey by jersey.

the class ChunkedInputOutputITCase method getBaseUri.

@Override
protected URI getBaseUri() {
    final UriBuilder baseUriBuilder = UriBuilder.fromUri(super.getBaseUri());
    final boolean externalFactoryInUse = getTestContainerFactory() instanceof ExternalTestContainerFactory;
    return externalFactoryInUse ? baseUriBuilder.path("resources").build() : baseUriBuilder.build();
}
Also used : UriBuilder(javax.ws.rs.core.UriBuilder) ExternalTestContainerFactory(org.glassfish.jersey.test.external.ExternalTestContainerFactory)

Example 5 with ExternalTestContainerFactory

use of org.glassfish.jersey.test.external.ExternalTestContainerFactory in project jersey by jersey.

the class ItemStoreResourceITCase method getBaseUri.

@Override
protected URI getBaseUri() {
    final UriBuilder baseUriBuilder = UriBuilder.fromUri(super.getBaseUri());
    final boolean externalFactoryInUse = getTestContainerFactory() instanceof ExternalTestContainerFactory;
    return externalFactoryInUse ? baseUriBuilder.path("resources").build() : baseUriBuilder.build();
}
Also used : UriBuilder(javax.ws.rs.core.UriBuilder) ExternalTestContainerFactory(org.glassfish.jersey.test.external.ExternalTestContainerFactory)

Aggregations

UriBuilder (javax.ws.rs.core.UriBuilder)5 ExternalTestContainerFactory (org.glassfish.jersey.test.external.ExternalTestContainerFactory)5