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(); } }
@After public void tearDown() throws Exception { connection.close(); }