File tree Expand file tree Collapse file tree 4 files changed +55
-21
lines changed Expand file tree Collapse file tree 4 files changed +55
-21
lines changed Original file line number Diff line number Diff line change
1
+ [ XXXX-<Title > - Please use the Work Item number and Title as PR Name, not subtasks]
2
+
3
+ #### 📲 What
4
+
5
+ A description of the change.
6
+
7
+ #### 🤔 Why
8
+
9
+ Why it's needed, background context.
10
+
11
+ #### 🛠 How
12
+
13
+ More in-depth discussion of the change or implementation.
14
+
15
+ #### 👀 Evidence
16
+
17
+ Screenshots / external resources / links / etc.
18
+ Link to documentation updated with changes impacted in the PR
19
+
20
+ #### 🕵️ How to test
21
+
22
+ Notes for QA
23
+
24
+ #### ✅ Acceptance criteria Checklist
25
+
26
+ - [ ] Code peer reviewed?
27
+ - [ ] Documentation has been updated to reflect the changes?
28
+ - [ ] Passing all automated tests, including a successful deployment?
29
+ - [ ] Passing any exploratory testing?
30
+ - [ ] Rebased/merged with latest changes from development and re-tested?
31
+ - [ ] Meeting the Coding Standards?
32
+
Original file line number Diff line number Diff line change 1
1
package com .xxAMIDOxx .xxSTACKSxx .api .v1 .menu .dto ;
2
2
3
3
import nl .jqno .equalsverifier .EqualsVerifier ;
4
+ import org .junit .jupiter .api .Tag ;
4
5
import org .junit .jupiter .api .Test ;
5
6
6
- import static org .junit .jupiter .api .Assertions .*;
7
-
7
+ @ Tag ("Unit" )
8
8
class SearchMenuResultItemTest {
9
9
10
10
@ Test
11
11
void testEquals () {
12
- EqualsVerifier .simple ().forClass (SearchMenuResult .class ).verify ();
12
+ EqualsVerifier .simple ().forClass (SearchMenuResultItem .class ).verify ();
13
13
}
14
14
}
Original file line number Diff line number Diff line change 1
1
package com .xxAMIDOxx .xxSTACKSxx .api .v1 .menu .dto ;
2
2
3
3
import nl .jqno .equalsverifier .EqualsVerifier ;
4
+ import org .junit .jupiter .api .Tag ;
4
5
import org .junit .jupiter .api .Test ;
5
6
7
+ @ Tag ("Unit" )
6
8
class SearchMenuResultTest {
7
9
8
10
@ Test
Original file line number Diff line number Diff line change @@ -100,23 +100,6 @@ public void returnMenuWhenSearchById() {
100
100
then (response .getBody ()).isEqualTo (menu );
101
101
}
102
102
103
- private List <Menu > createMenus (int count ) {
104
- List <Menu > menuList = new ArrayList <>();
105
- for (int i = 0 ; i < count ; i ++) {
106
- menuList .add (createMenu (i ));
107
- }
108
- return menuList ;
109
- }
110
-
111
- private Menu createMenu (int counter ) {
112
- return aMenu ()
113
- .withDescription (counter + " Menu Description" )
114
- .withEnabled (true )
115
- .withName (counter + " Menu" )
116
- .withId (UUID .randomUUID ().toString ())
117
- .build ();
118
- }
119
-
120
103
@ Test
121
104
public void testWhenPageSizeAndNoGetsDefaultedWhenNoValueGiven () {
122
105
// Given
@@ -185,4 +168,21 @@ public void testWhenNoRestaurantIdGivenReturnsAllResults() {
185
168
assertThat (actual .getPageSize (), is (20 ));
186
169
assertThat (actual .getResults (), is (notNullValue ()));
187
170
}
188
- }
171
+
172
+ private List <Menu > createMenus (int count ) {
173
+ List <Menu > menuList = new ArrayList <>();
174
+ for (int i = 0 ; i < count ; i ++) {
175
+ menuList .add (createMenu (i ));
176
+ }
177
+ return menuList ;
178
+ }
179
+
180
+ private Menu createMenu (int counter ) {
181
+ return aMenu ()
182
+ .withDescription (counter + " Menu Description" )
183
+ .withEnabled (true )
184
+ .withName (counter + " Menu" )
185
+ .withId (UUID .randomUUID ().toString ())
186
+ .build ();
187
+ }
188
+ }
You can’t perform that action at this time.
0 commit comments