B.14. com.samscdrental.tests Package

The tests for the RentalOperations are in this package.

B.14.1. CheckinCheckoutTests.java

public class CheckinCheckoutTests
    extends TestCase
    {
    public CheckinCheckoutTests(  )
    public CheckinCheckoutTests( String name )
    public void testNormalOperation(  ) throws Exception
    public void testLateReturn(  ) throws Exception
    public void testBadPhysicalID(  ) throws Exception
    public void testBadCustomerID(  ) throws Exception
    public void testNonExistentPhysicalID(  ) throws Exception
    public void testNonExistentCustomerID(  ) throws Exception
    public void testAlreadyRented(  ) throws Exception
    public void testReturnNotRented(  ) throws Exception
    public static Test suite(  )
    public static void main( String[] args )
    protected void setUp(  ) throws Exception
    protected void tearDown(  ) throws Exception
    }

B.14.2. TestOnlyOperations.java

public class TestOnlyOperations
    {
    static TestOnlyOperations getInstance(  )
    void collectionsClear(  )
    void setStartTimeForRentalBackSomeDays( PhysicalID aPhysicalID,
        int days )

    }

Get Prefactoring now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.