예제 #1
0
 public DBFixture addEngine(EngineType engineType) {
   currentEngine = new Engine();
   engines.add(currentEngine);
   currentEngine.setType(engineType);
   currentVehicle.setEngine(currentEngine);
   currentEngine.setManufacturer(currentManufacturer);
   return this;
 }
예제 #2
0
 public DBFixture ownedByManufacturer() {
   currentManufacturer.getOwnedEngines().add(currentEngine);
   currentEngine.setManufacturer(currentManufacturer);
   return this;
 }