Search in sources :

Example 26 with Cookie

use of javax.ws.rs.core.Cookie in project jersey by jersey.

the class CookieParamAsStringTest method testListGet.

@Test
public void testListGet() throws ExecutionException, InterruptedException {
    initiateWebApplication(ResourceStringList.class);
    _test("/", "application/list", new Cookie("args", "a"));
}
Also used : Cookie(javax.ws.rs.core.Cookie) Test(org.junit.Test)

Example 27 with Cookie

use of javax.ws.rs.core.Cookie in project jersey by jersey.

the class CookieParamAsStringTest method testStringGet.

@Test
public void testStringGet() throws ExecutionException, InterruptedException {
    initiateWebApplication(ResourceString.class);
    _test("/", new Cookie("arg1", "a"), new Cookie("arg2", "b"), new Cookie("arg3", "c"));
}
Also used : Cookie(javax.ws.rs.core.Cookie) Test(org.junit.Test)

Example 28 with Cookie

use of javax.ws.rs.core.Cookie in project jersey by jersey.

the class CookieParamAsStringTest method testStringListEmptyGet.

@Test
public void testStringListEmptyGet() throws ExecutionException, InterruptedException {
    initiateWebApplication(ResourceStringListEmpty.class);
    _test("/", "application/stringlist", new Cookie("args", ""));
}
Also used : Cookie(javax.ws.rs.core.Cookie) Test(org.junit.Test)

Example 29 with Cookie

use of javax.ws.rs.core.Cookie in project jersey by jersey.

the class CookieParamAsStringTest method testStringListGet.

@Test
public void testStringListGet() throws ExecutionException, InterruptedException {
    initiateWebApplication(ResourceStringList.class);
    _test("/", "application/stringlist", new Cookie("args", "a"));
}
Also used : Cookie(javax.ws.rs.core.Cookie) Test(org.junit.Test)

Example 30 with Cookie

use of javax.ws.rs.core.Cookie in project jersey by jersey.

the class CookieParamAsStringTest method testStringDefaultOverride.

@Test
public void testStringDefaultOverride() throws ExecutionException, InterruptedException {
    initiateWebApplication(ResourceStringDefaultOverride.class);
    _test("/", new Cookie("arg1", "d"), new Cookie("arg2", "e"), new Cookie("arg3", "f"));
}
Also used : Cookie(javax.ws.rs.core.Cookie) Test(org.junit.Test)

Aggregations

Cookie (javax.ws.rs.core.Cookie)49 Test (org.junit.Test)28 HashMap (java.util.HashMap)7 ContainerResponse (org.glassfish.jersey.server.ContainerResponse)7 NewCookie (javax.ws.rs.core.NewCookie)6 Entitlement (com.sun.identity.entitlement.Entitlement)4 EntitlementSubject (com.sun.identity.entitlement.EntitlementSubject)4 Privilege (com.sun.identity.entitlement.Privilege)4 PrivilegeManager (com.sun.identity.entitlement.PrivilegeManager)4 ClientResponse (com.sun.jersey.api.client.ClientResponse)4 BeforeClass (org.testng.annotations.BeforeClass)4 SSOToken (com.iplanet.sso.SSOToken)3 Form (javax.ws.rs.core.Form)3 AuthenticatedUsers (org.forgerock.openam.entitlement.conditions.subject.AuthenticatedUsers)3 JSONEntitlement (com.sun.identity.entitlement.JSONEntitlement)2 UniformInterfaceException (com.sun.jersey.api.client.UniformInterfaceException)2 MalformedURLException (java.net.MalformedURLException)2 ArrayList (java.util.ArrayList)2 List (java.util.List)2 Consumes (javax.ws.rs.Consumes)2