Back to index

plt-scheme  4.2.1
Package Functions | Package Attributes
TruckExamples Class Reference
Collaboration diagram for TruckExamples:
Collaboration graph
[legend]

List of all members.

Package Functions

 TruckExamples ()
boolean testPrice ()
boolean testTravel ()
boolean testMakeAndModel ()
 TruckExamples ()
boolean testPrice ()
boolean testTravel ()
boolean testMakeAndModel ()

Package Attributes

Truck oneTruck = new Truck("Toyota",10000, 2,false,20000.00)
Truck twoTruck = new Truck("Ford",100000,2,true,35000.00)
boolean test1 = check this.oneTruck.milesTraveled() expect 10000
boolean test2 = check this.oneTruck expect this.twoTruck

Detailed Description

Definition at line 118 of file beginnerTest.java.


Constructor & Destructor Documentation

TruckExamples.TruckExamples ( ) [inline, package]

Definition at line 125 of file beginnerTest.java.

{ }
TruckExamples.TruckExamples ( ) [inline, package]

Definition at line 108 of file intermediateTest.java.

{ }

Member Function Documentation

boolean TruckExamples.testMakeAndModel ( ) [inline, package]

Definition at line 120 of file intermediateTest.java.

                             {
    return (check this.oneTruck.makeAndModel() expect "Toyota2") &&
           (check this.twoTruck.makeAndModel() expect "FordExtended");
  }

Here is the call graph for this function:

boolean TruckExamples.testMakeAndModel ( ) [inline, package]

Definition at line 136 of file beginnerTest.java.

                             {
    return (check this.oneTruck.makeAndModel() expect "Toyota2") &&
           (check this.twoTruck.makeAndModel() expect "FordExtended");
  }

Here is the call graph for this function:

boolean TruckExamples.testPrice ( ) [inline, package]

Definition at line 110 of file intermediateTest.java.

                      {
    return (check this.oneTruck.price(2006) expect 20000.00 within .01) &&
           (check this.oneTruck.price(1996) expect 16000.00 within .01);
  }

Here is the call graph for this function:

boolean TruckExamples.testPrice ( ) [inline, package]

Definition at line 127 of file beginnerTest.java.

                      {
    return (check this.oneTruck.price(2006) expect 20000.00 within .01) &&
           (check this.oneTruck.price(1996) expect 16000.00 within .01);
  }

Here is the call graph for this function:

boolean TruckExamples.testTravel ( ) [inline, package]

Definition at line 115 of file intermediateTest.java.

                       {
    oneTruck.travel(1000);
    return check this.oneTruck expect new Truck("Toyota",11000,2,false,20000.00);
  }

Here is the call graph for this function:

boolean TruckExamples.testTravel ( ) [inline, package]

Definition at line 132 of file beginnerTest.java.

                       {
    return check this.oneTruck.travel(1000) expect new Truck("Toyota",11000,2,false,20000.00);
  }

Here is the call graph for this function:


Member Data Documentation

Truck TruckExamples.oneTruck = new Truck("Toyota",10000, 2,false,20000.00) [package]

Definition at line 119 of file beginnerTest.java.

boolean TruckExamples.test1 = check this.oneTruck.milesTraveled() expect 10000 [package]

Definition at line 122 of file beginnerTest.java.

boolean TruckExamples.test2 = check this.oneTruck expect this.twoTruck [package]

Definition at line 123 of file beginnerTest.java.

Truck TruckExamples.twoTruck = new Truck("Ford",100000,2,true,35000.00) [package]

Definition at line 120 of file beginnerTest.java.


The documentation for this class was generated from the following files: