FileDocCategorySizeDatePackage
RentABikeTest.javaAPI DocExample741Fri Apr 22 11:23:58 BST 2005None

RentABikeTest

public class RentABikeTest extends TestCase

Fields Summary
private com.springbook.RentABike
rentaBike
Constructors Summary
Methods Summary
public voidsetUp()

      rentaBike = new ArrayListRentABike("Bruce's Bikes");
   
public voidtestGetBike()

      Bike bike = rentaBike.getBike("11111");
      assertNotNull(bike);
      assertEquals("Shimano", bike.getManufacturer());
   
public voidtestGetBikes()

      List bikes = rentaBike.getBikes();
      assertNotNull(bikes);
      assertEquals(3, bikes.size());
   
public voidtestGetName()

      assertEquals("Bruce's Bikes", rentaBike.getStoreName());