예제 #1
0
 public void testBadRollback() throws Exception {
   try {
     client.path("/").queryParam("bad", "").post(String.class, "input");
     fail();
   } catch (UniformInterfaceException e) {
     assertEquals(400, e.getResponse().getStatus());
   }
   ObjectConnection con = repository.getConnection();
   try {
     Brake brake = (Brake) con.getObject(client.path("/").toString());
     assertNull(brake.getInvalid());
   } finally {
     con.close();
   }
 }
예제 #2
0
 @After
 public void tearDown() throws Exception {
   connection.close();
 }