Skip to content

Commit 63b668a

Browse files
Starting Index From One
1 parent f36c268 commit 63b668a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/springboot/ApplicationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public class ApplicationTest {
2828
@Test
2929
public void shouldCreate10Products(){
3030
int numberOfProducts = 10;
31-
for (int i = 0; i < numberOfProducts; i++) {
31+
for (int i = 1; i < numberOfProducts; i++) {
3232
Product testProduct = new Product();
3333
testProduct.setCategory(CATEGORIES);
3434
testProduct.setDescription(DESCRIPTION);

0 commit comments

Comments
 (0)