@Test public void getResistanceFactor() { assertEquals((double) 1 - tireA.getGrip() * tireA.getGrip() / 250, tireA.getResistanceFactor(), delta); }
public double getResistanceFactor() { return 1 - this.grip * this.grip / 250; }
Tire extends InventoryItem { public double getResistanceFactor() { return 1 - this.grip * this.grip / 250; } }
Tire extends InventoryItem { public double getResistanceFactor() { return 1 - this.grip * this.grip / 250; } Tire(UUID id, String brand, TireType type, double durability, double grip); protected  Tire(); }
Tire extends InventoryItem { public double getResistanceFactor() { return 1 - this.grip * this.grip / 250; } Tire(UUID id, String brand, TireType type, double durability, double grip); protected  Tire(); double getResistanceFactor(); String getBrand(); TireType getType(); double getDurability(); double getGrip(); @Override String toString(); }
Tire extends InventoryItem { public double getResistanceFactor() { return 1 - this.grip * this.grip / 250; } Tire(UUID id, String brand, TireType type, double durability, double grip); protected  Tire(); double getResistanceFactor(); String getBrand(); TireType getType(); double getDurability(); double getGrip(); @Override String toString();  }