Package com.dotcms.repackage.com.sun.jersey.core.util

Examples of com.dotcms.repackage.com.sun.jersey.core.util.MultivaluedMapImpl


    assertNotNull(response);
  }

  @Test(expected=UniformInterfaceException.class)
  public void testAuthenticateInvalidUserPost() {
    MultivaluedMap<String, String> formData = new MultivaluedMapImpl();
    formData.add("user", "wrong@user.com");
    formData.add("password", "123456");
    webResource = client.resource("http://"+serverName+":"+serverPort+"/api/dummy");
    webResource.path("/postauth").type("application/x-www-form-urlencoded").post(String.class, formData);
  }
View Full Code Here


    webResource.path("/postauth").type("application/x-www-form-urlencoded").post(String.class, formData);
  }

  @Test
  public void testAuthenticateValidUserPost() {
    MultivaluedMap<String, String> formData = new MultivaluedMapImpl();
    formData.add("user", "admin@dotcms.com");
    formData.add("password", "admin");
    webResource = client.resource("http://"+serverName+":"+serverPort+"/api/dummy");
    String response = webResource.path("/postauth").type("application/x-www-form-urlencoded").post(String.class, formData);
    assertNotNull(response);
  }
View Full Code Here

TOP

Related Classes of com.dotcms.repackage.com.sun.jersey.core.util.MultivaluedMapImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.