We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc70f57 commit a4b5dddCopy full SHA for a4b5ddd
src/test/java/coreapiTest/OrderImplTest.java
@@ -70,8 +70,8 @@ public void GetProductsCheck()
70
myOrder.addProduct(product1.getId());
71
myOrder.addProduct(product2.getId());
72
List<Product> tempList = myOrder.getProducts();
73
- Assert.assertEquals(product1.getId(), tempList.get(0).getId());
74
- Assert.assertEquals(product2.getId(), tempList.get(1).getId());
+ Assert.assertEquals(product1.getId(), tempList.get(tempList.indexOf(product1)).getId());
+ Assert.assertEquals(product2.getId(), tempList.get(tempList.indexOf(product2)).getId());
75
}
76
77
@Test
0 commit comments