Package org.springbyexample.schema.beans.response

Examples of org.springbyexample.schema.beans.response.ResponseResult


        return response;
    }

    @Override
    public ResponseResult delete(long id) {
        ResponseResult response = null;
       
        String url = client.createUrl(deleteRequest);
       
        logger.debug("REST client delete.  id={}  url='{}'", id, url);
       
View Full Code Here


    @Override
    @RequestMapping(value = DELETE_REQUEST, method = RequestMethod.DELETE)
    public ResponseResult delete(@PathVariable(ID_VAR) long id) {
        logger.info("Delete Professional.  id={}", id);

        return new ResponseResult().withMessageList(
                    new Message().withMessageType(MessageType.INFO)
                                 .withMessage(String.format("Successfully deleted record.  id='%d'", id)));
    }
View Full Code Here

    @Override
    @RequestMapping(value = DELETE_REQUEST, method = RequestMethod.DELETE)
    public ResponseResult delete(@PathVariable(ID_VAR) long id) {
        logger.info("Delete person.  id={}", id);

        return new ResponseResult().withMessageList(
                    new Message().withMessageType(MessageType.INFO)
                                 .withMessage(String.format("Successfully deleted record.  id='%d'", id)));
    }
View Full Code Here

        logger.info(response.getMessageList().get(0).getMessage());
    }

    @Test
    public void testDelete() {
        ResponseResult response = client.delete(ID);
       
        assertNotNull("Response is null.", response);

        int expectedCount = 1;
        assertEquals("messageList.size", expectedCount, response.getMessageList().size());

        logger.info(response.getMessageList().get(0).getMessage());
    }
View Full Code Here

        logger.info(response.getMessageList().get(0).getMessage());
    }

    @Test
    public void testDelete() {
        ResponseResult response = client.delete(ID);
       
        assertNotNull("Response is null.", response);

        int expectedCount = 1;
        assertEquals("messageList.size", expectedCount, response.getMessageList().size());

        logger.info(response.getMessageList().get(0).getMessage());
    }
View Full Code Here

TOP

Related Classes of org.springbyexample.schema.beans.response.ResponseResult

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.