Skip to Main Content
Prefactoring
book

Prefactoring

by Ken Pugh
September 2005
Intermediate to advanced content levelIntermediate to advanced
240 pages
6h 28m
English
O'Reilly Media, Inc.
Content preview from Prefactoring

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 )

    }
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Understanding Unittest.Mock

Understanding Unittest.Mock

Mario Corchero
Java™ Performance

Java™ Performance

Charlie Hunt, Binu John

Publisher Resources

ISBN: 0596008740Supplemental ContentCatalog PageErrata