@@ -0,0 +1,1475 @@
+package com.droidsmith.tireguide.calcengine;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.junit.runners.Parameterized;%0A%0Aimport java.util.Arrays;%0A%0Aimport static org.junit.Assert.assertTrue;%0A%0A@RunWith(Parameterized.class)%0Apublic class CalculatorTest %7B%0A%0A%09private final double loadWeight;%0A%09private final String tireWidth;%0A%09private final double psi;%0A%09private Calculator calculator;%0A%0A%09public CalculatorTest(double loadWeight, String tireWidth, double psi) %7B%0A%09%09this.loadWeight = loadWeight;%0A%09%09this.tireWidth = tireWidth;%0A%09%09this.psi = psi;%0A%09%7D%0A%0A%09@Parameterized.Parameters(name = %22%7Bindex%7D: Test with loadWeight=%7B0%7D, tireWidth=%7B1%7D, result: %7B2%7D%22)%0A%09public static Iterable%3CObject%5B%5D%3E data() %7B%0A%09%09return Arrays.asList(new Object%5B%5D%5B%5D %7B%7B0.0, %2221%22, 0.0%7D,%0A%09%09%09%09%09%09%09%09%09%09%09 %7B91.8, %2226%22, 75%7D,%0A%09%09%09%09%09%09%09%09%09%09%09 %7B122.4, %2226%22, 104%7D,%0A%09%09%09%09%09%09%09%09%09%09%09 %7B77.4, %2226%22, 61%7D,%0A%09%09%09%09%09%09%09%09%09%09%09 %7B103.2, %2226%22, 86%7D,%0A%09%09%09%09%09%09%09%09%09%09%09 %7B63.9, %2226%22, 48%7D,%0A%09%09%09%09%09%09%09%09%09%09%09 %7B85.2, %2226%22, 69%7D,%0A%09%09%09%09%09%09%09%09%09%09%09 %7B105.3, %2226%22, 88%7D,%0A%09%09%09%09%09%09%09%09%09%09%09 %7B140.4, %2226%22, 121%7D,%0A%09%09%09%09%09%09%09%09%09%09%09 %7B84.15, %2225%22, 71%7D,%0A%09%09%09%09%09%09%09%09%09%09%09 %7B112.2, %2225%22, 99%7D,%0A%09%09%09%09%09%09%09%09%09%09%09 %7B102.6, %2228%22, 76%7D,%0A%09%09%09%09%09%09%09%09%09%09%09 %7B136.9, %2228%22, 103%7D,%7D);%0A%09%7D%0A%0A%09@Before%0A%09public void setUP() %7B%0A%09%09calculator = new Calculator();%0A%09%7D%0A%0A%09@Test%0A%09public void psiWithZeroValuesReturnsZero() %7B%0A%09%09assertTrue(arePsiEqual(psi, calculator.psi(loadWeight, tireWidth)));%0A%09%7D%0A%0A%09private boolean arePsiEqual(double expectedPsi, double testPsi) %7B%0A%09%09return Math.round(expectedPsi) == testPsi;%0A%09%7D%0A%7D%0A

add a long overdue calculator test.