Skip to content
Snippets Groups Projects
Commit 6ff9f030 authored by Sara Prifti's avatar Sara Prifti
Browse files

Edited case where customerId==null

parent 9663b357
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,7 @@ public class Application {
public static void main(String[] args) {SpringApplication.run(Application.class, args);}
/*
@Bean
CommandLineRunner run(DataService dataService) {
return args -> {
......@@ -31,6 +32,13 @@ public class Application {
discountCards.add(discountCard);
dataService.saveDiscountCardToCustomer(customer.getId(), discountCards);
};
}
*/
}
......@@ -59,7 +59,7 @@ public class CustomerTest {
@Test
@Order(2)
public void addDiscountCardToCustomerTest() {
Long customerId =0L;
Long customerId =null;
String path = "/customers/"+customerId+"/discountcards";
Map<String, Object> parms = new HashMap<String, Object>();
//404
......@@ -135,7 +135,6 @@ public class CustomerTest {
RestAssured.given().when().get(path).then().statusCode(200);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment