| Total Complexity | 2 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | /* |
||
| 13 | class IteratorTest { |
||
| 14 | |||
| 15 | private ClientInterface client; |
||
| 16 | |||
| 17 | @BeforeEach |
||
| 18 | void setUp() { |
||
| 19 | this.client = new Client(); |
||
| 20 | } |
||
| 21 | |||
| 22 | @Test |
||
| 23 | void testAggregatesItems() { |
||
| 24 | this.client.addItemToTheBucket(new Item("Tights", 150, "darned")); |
||
| 25 | IteratorInterface employee = new Iterator(this.client.getBucket()); |
||
| 26 | |||
| 27 | assertEquals("Tights 150 darned\n", employee.iterateItems()); |
||
| 28 | } |
||
| 29 | } |