Examples of idToFormatted()


Examples of net.sourceforge.myreserve.web.ReservationIDHelper.idToFormatted()

   
    @Test
    public void testIDToFormatted() {
        ReservationIDHelper rid = new ReservationIDHelper();
        Integer id = new Integer(1234);
        String formattedId = rid.idToFormatted(id);
        assertEquals(formattedId, "RES0001234");
    }
   
    @Test
    public void testIDToFormattedNull() {
View Full Code Here

Examples of net.sourceforge.myreserve.web.ReservationIDHelper.idToFormatted()

   
    @Test
    public void testIDToFormattedNull() {
        ReservationIDHelper rid = new ReservationIDHelper();
        Integer id = null;
        String formattedId = rid.idToFormatted(id);
        assertNull(formattedId);
    }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.