Examples of adjustLeft()


Examples of net.sourceforge.ganttproject.time.gregorian.WeekFramerImpl.adjustLeft()

* @author bard
*/
public class TestWeekFramer extends TestCase {
    public void testAdjustLeft() {
        WeekFramerImpl framer = new WeekFramerImpl();
        Date adjusted = framer.adjustLeft(newMonday());
        Calendar c = (Calendar) Calendar.getInstance().clone();
        c.setTime(adjusted);
        c.add(Calendar.MILLISECOND, -1);
        assertEquals("Unexpected day of week", Calendar.SUNDAY, c
                .get(Calendar.DAY_OF_WEEK));
View Full Code Here

Examples of net.sourceforge.ganttproject.time.gregorian.WeekFramerImpl.adjustLeft()

        c.setTime(adjusted);
        c.add(Calendar.MILLISECOND, -1);
        assertEquals("Unexpected day of week", Calendar.SUNDAY, c
                .get(Calendar.DAY_OF_WEEK));
        //
        Date adjustedSunday = framer.adjustLeft(newSunday());
        assertEquals(
                "Adjusted sunday is expected to be equal to adjusted monday",
                adjusted, adjustedSunday);
    }
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.