|
| 1 | +import org.junit.Before; |
| 2 | +import org.junit.Test; |
| 3 | +import org.junit.Ignore; |
| 4 | + |
| 5 | +import static org.assertj.core.api.Assertions.*; |
| 6 | + |
| 7 | + |
| 8 | +public class AssemblyLineTests { |
| 9 | + |
| 10 | + private AssemblyLine assemblyLine; |
| 11 | + |
| 12 | + @Before |
| 13 | + public void setUp() { |
| 14 | + assemblyLine = new AssemblyLine(); |
| 15 | + } |
| 16 | + |
| 17 | + @Test |
| 18 | + public void productionRatePerHourForSpeedZero() { |
| 19 | + assertThat(assemblyLine.productionRatePerHour(0)).isEqualTo(0.0); |
| 20 | + } |
| 21 | + @Test |
| 22 | + @Ignore("Remove to run test") |
| 23 | + public void productionRatePerHourForSpeedOne() { |
| 24 | + assertThat(assemblyLine.productionRatePerHour(1)).isEqualTo(221.0); |
| 25 | + } |
| 26 | + |
| 27 | + @Test |
| 28 | + @Ignore("Remove to run test") |
| 29 | + public void productionRatePerHourForSpeedFour() { |
| 30 | + assertThat(assemblyLine.productionRatePerHour(4)).isEqualTo(884.0); |
| 31 | + } |
| 32 | + |
| 33 | + @Test |
| 34 | + @Ignore("Remove to run test") |
| 35 | + public void productionRatePerHourForSpeedSeven() { |
| 36 | + assertThat(assemblyLine.productionRatePerHour(7)).isEqualTo(1392.3); |
| 37 | + } |
| 38 | + |
| 39 | + @Test |
| 40 | + @Ignore("Remove to run test") |
| 41 | + public void productionRatePerHourForSpeedNine() { |
| 42 | + assertThat(assemblyLine.productionRatePerHour(9)).isEqualTo(1591.2); |
| 43 | + } |
| 44 | + |
| 45 | + @Test |
| 46 | + @Ignore("Remove to run test") |
| 47 | + public void productionRatePerHourForSpeedTen() { |
| 48 | + assertThat(assemblyLine.productionRatePerHour(10)).isEqualTo(1701.7); |
| 49 | + } |
| 50 | + |
| 51 | + @Test |
| 52 | + @Ignore("Remove to run test") |
| 53 | + public void workingItemsPerMinuteForSpeedZero() { |
| 54 | + assertThat(assemblyLine.workingItemsPerMinute(0)).isEqualTo(0); |
| 55 | + } |
| 56 | + |
| 57 | + @Test |
| 58 | + @Ignore("Remove to run test") |
| 59 | + public void workingItemsPerMinuteForSpeedOne() { |
| 60 | + assertThat(assemblyLine.workingItemsPerMinute(1)).isEqualTo(3); |
| 61 | + } |
| 62 | + |
| 63 | + @Test |
| 64 | + @Ignore("Remove to run test") |
| 65 | + public void workingItemsPerMinuteForSpeedFive() { |
| 66 | + assertThat(assemblyLine.workingItemsPerMinute(5)).isEqualTo(16); |
| 67 | + } |
| 68 | + |
| 69 | + @Test |
| 70 | + @Ignore("Remove to run test") |
| 71 | + public void workingItemsPerMinuteForSpeedEight() { |
| 72 | + assertThat(assemblyLine.workingItemsPerMinute(8)).isEqualTo(26); |
| 73 | + } |
| 74 | + |
| 75 | + @Test |
| 76 | + @Ignore("Remove to run test") |
| 77 | + public void workingItemsPerMinuteForSpeedNine() { |
| 78 | + assertThat(assemblyLine.workingItemsPerMinute(9)).isEqualTo(26); |
| 79 | + } |
| 80 | + |
| 81 | + @Test |
| 82 | + @Ignore("Remove to run test") |
| 83 | + public void workingItemsPerMinuteForSpeedTen() { |
| 84 | + assertThat(assemblyLine.workingItemsPerMinute(10)).isEqualTo(28); |
| 85 | + } |
| 86 | +} |
0 commit comments