Search in sources :

Example 1 with DefaultFilteringScope

use of org.glassfish.jersey.tests.e2e.entity.filtering.DefaultFilteringScope in project jersey by jersey.

the class JsonEntityFilteringClientTest method testEntityAnnotationsDefaultView.

@Test
public void testEntityAnnotationsDefaultView() throws Exception {
    final OneFilteringOnClassEntity entity = target().request().post(Entity.entity(OneFilteringOnClassEntity.INSTANCE, MediaType.APPLICATION_JSON_TYPE, new Annotation[] { new DefaultFilteringScope() }), OneFilteringOnClassEntity.class);
    _testEmptyEntity(entity);
}
Also used : DefaultFilteringScope(org.glassfish.jersey.tests.e2e.entity.filtering.DefaultFilteringScope) Annotation(java.lang.annotation.Annotation) OneFilteringOnClassEntity(org.glassfish.jersey.tests.e2e.entity.filtering.domain.OneFilteringOnClassEntity) JerseyTest(org.glassfish.jersey.test.JerseyTest) Test(org.junit.Test)

Aggregations

Annotation (java.lang.annotation.Annotation)1 JerseyTest (org.glassfish.jersey.test.JerseyTest)1 DefaultFilteringScope (org.glassfish.jersey.tests.e2e.entity.filtering.DefaultFilteringScope)1 OneFilteringOnClassEntity (org.glassfish.jersey.tests.e2e.entity.filtering.domain.OneFilteringOnClassEntity)1 Test (org.junit.Test)1