Examples of returnDueDate()


Examples of inheritance.vs.composition.BookInfo.returnDueDate()

    public void testThatBookReturnsNullIfNotLend() throws Exception {
        //GIVEN
        BookInfo bookInfo = new BookInfo(100, "Some Book Title");

        //WHEN
        LocalDate returnDate = bookInfo.returnDueDate();

        //THEN
        assertThat(returnDate, is(nullValue()));
    }
View Full Code Here

Examples of inheritance.vs.composition.BookInfo.returnDueDate()

        //WHEN
        bookInfo.lend();

        //THEN
        assertThat(bookInfo.returnDueDate(), is(inAMonthsTime));
    }

    @Test
    public void testBookLoosesReturnDateWhenReturned() throws Exception {
        //GIVEN
View Full Code Here

Examples of inheritance.vs.composition.BookInfo.returnDueDate()

        //WHEN
        bookInfo.bringLentItemBack();

        //THEN
        assertThat(bookInfo.returnDueDate(), is(nullValue()));
    }

    @Test
    public void testBookWithMoreThan1000PagesIsHuge() throws Exception {
        //GIVEN
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.