Package org.exoplatform.services.rest

Examples of org.exoplatform.services.rest.GenericContainerResponse


   }

   public void testResourceConstructorFail() throws Exception
   {
      registry(ResourceFail.class);
      GenericContainerResponse resp = launcher.service("GET", "/_a/b/c/d/m0", "", null, null, null);
      String entity = (String)resp.getEntity();
      assertTrue(entity.startsWith("Can't instantiate resource "));
      assertEquals(javax.ws.rs.core.Response.Status.INTERNAL_SERVER_ERROR.getStatusCode(), resp.getStatus());
      unregistry(ResourceFail.class);
   }
View Full Code Here

TOP

Related Classes of org.exoplatform.services.rest.GenericContainerResponse

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.