aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiederick de Vries <diederick@diederickdevries.net>2018-10-04 09:22:27 +0200
committerDiederick de Vries <diederick@diederickdevries.net>2018-10-04 09:22:27 +0200
commitf9d5d05c9888cc43e5e1f83272fedeb32d9902c7 (patch)
tree9d8ae50ca6c4e1e061d67640fd60cbd4e61b1e79
parentcc9e562c8b351fb59493f01eefe9b8364ae29d6f (diff)
downloadboodschapi-f9d5d05c9888cc43e5e1f83272fedeb32d9902c7.tar.gz
boodschapi-f9d5d05c9888cc43e5e1f83272fedeb32d9902c7.tar.bz2
boodschapi-f9d5d05c9888cc43e5e1f83272fedeb32d9902c7.zip
Fix: Do not use common grocery names in tests
-rw-r--r--src/test/java/net/diederickdevries/boodschapi/controller/ItemControllerIT.java4
-rw-r--r--src/test/java/net/diederickdevries/boodschapi/model/ItemIT.java2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/test/java/net/diederickdevries/boodschapi/controller/ItemControllerIT.java b/src/test/java/net/diederickdevries/boodschapi/controller/ItemControllerIT.java
index 5da45bc..09c41de 100644
--- a/src/test/java/net/diederickdevries/boodschapi/controller/ItemControllerIT.java
+++ b/src/test/java/net/diederickdevries/boodschapi/controller/ItemControllerIT.java
@@ -66,12 +66,12 @@ public class ItemControllerIT
66 assertNotNull("The default category must exist", none); 66 assertNotNull("The default category must exist", none);
67 67
68 pizzas = new Grocery(); 68 pizzas = new Grocery();
69 pizzas.setName("Pizza's"); 69 pizzas.setName("ItemControllerITPizzas");
70 pizzas.setCategory(none); 70 pizzas.setCategory(none);
71 groceryRepository.saveAndFlush(pizzas); 71 groceryRepository.saveAndFlush(pizzas);
72 72
73 chicken = new Grocery(); 73 chicken = new Grocery();
74 chicken.setName("Chicken"); 74 chicken.setName("ItemControllerITChicken");
75 chicken.setCategory(none); 75 chicken.setCategory(none);
76 groceryRepository.saveAndFlush(chicken); 76 groceryRepository.saveAndFlush(chicken);
77 77
diff --git a/src/test/java/net/diederickdevries/boodschapi/model/ItemIT.java b/src/test/java/net/diederickdevries/boodschapi/model/ItemIT.java
index 120e27d..effbde2 100644
--- a/src/test/java/net/diederickdevries/boodschapi/model/ItemIT.java
+++ b/src/test/java/net/diederickdevries/boodschapi/model/ItemIT.java
@@ -50,7 +50,7 @@ public class ItemIT extends Item
50 { 50 {
51 Grocery pizzas = new Grocery(); 51 Grocery pizzas = new Grocery();
52 pizzas.setCategory(categoryRepository.getOne(Category.NO_CATEGORY)); 52 pizzas.setCategory(categoryRepository.getOne(Category.NO_CATEGORY));
53 pizzas.setName("Pizza's"); 53 pizzas.setName("ItemITPizzas");
54 groceryRepository.saveAndFlush(pizzas); 54 groceryRepository.saveAndFlush(pizzas);
55 55
56 Item item = new Item(); 56 Item item = new Item();