@@ -44,7 +44,7 @@ public void testShouldNotCreateOrder_WhenOrderListIsNotArray() {
44
44
}
45
45
46
46
@ Test
47
- public void testShouldNotFetchOrderWhenNoOrderExists () {
47
+ public void testShouldNotFetchOrder_WhenNoOrderExists () {
48
48
49
49
final APIResponse response = this .request .get ("/getAllOrders" );
50
50
@@ -54,11 +54,11 @@ public void testShouldNotFetchOrderWhenNoOrderExists() {
54
54
55
55
final JSONObject responseObject = new JSONObject (response .text ());
56
56
assertEquals (response .status (), 404 );
57
- assertEquals (responseObject .get ("message" ), "No order found!!" );
57
+ assertEquals (responseObject .get ("message" ), "No Order found!!" );
58
58
}
59
59
60
60
@ Test
61
- public void testShouldNotFetchOrderWhenNoOrderExistsForOrderId () {
61
+ public void testShouldNotFetchOrder_WhenNoOrderExistsForOrderId () {
62
62
63
63
final int orderId = 90 ;
64
64
final APIResponse response = this .request .get ("/getOrder" , RequestOptions .create ().setQueryParam ("id" , orderId ));
@@ -69,11 +69,11 @@ public void testShouldNotFetchOrderWhenNoOrderExistsForOrderId() {
69
69
final JSONObject responseObject = new JSONObject (response .text ());
70
70
71
71
assertEquals (response .status (), 404 );
72
- assertEquals (responseObject .get ("message" ), "No order found with the given parameters!" );
72
+ assertEquals (responseObject .get ("message" ), "No Order found with the given parameters!" );
73
73
}
74
74
75
75
@ Test
76
- public void testShouldNotFetchOrderWhenNoOrderExistsForUserId () {
76
+ public void testShouldNotFetchOrder_WhenNoOrderExistsForUserId () {
77
77
final String userId = "20" ;
78
78
79
79
final APIResponse response = this .request .get ("/getOrder" , RequestOptions .create ().setQueryParam ("user_id" , userId ));
@@ -84,12 +84,12 @@ public void testShouldNotFetchOrderWhenNoOrderExistsForUserId() {
84
84
final JSONObject responseObject = new JSONObject (response .text ());
85
85
86
86
assertEquals (response .status (), 404 );
87
- assertEquals (responseObject .get ("message" ), "No order found with the given parameters!" );
87
+ assertEquals (responseObject .get ("message" ), "No Order found with the given parameters!" );
88
88
89
89
}
90
90
91
91
@ Test
92
- public void testShouldNotFetchOrderWhenNoOrderExistsForProductId () {
92
+ public void testShouldNotFetchOrder_WhenNoOrderExistsForProductId () {
93
93
final String productId = "987" ;
94
94
95
95
final APIResponse response = this .request .get ("/getOrder" , RequestOptions .create ().setQueryParam ("product_id" , productId ));
@@ -100,11 +100,11 @@ public void testShouldNotFetchOrderWhenNoOrderExistsForProductId() {
100
100
final JSONObject responseObject = new JSONObject (response .text ());
101
101
102
102
assertEquals (response .status (), 404 );
103
- assertEquals (responseObject .get ("message" ), "No order found with the given parameters!" );
103
+ assertEquals (responseObject .get ("message" ), "No Order found with the given parameters!" );
104
104
}
105
105
106
106
@ Test
107
- public void testShouldNotGenerateTokenForInvalidCredentials () {
107
+ public void testShouldNotGenerateToken_WhenInvalidCredentialsAreGiven () {
108
108
109
109
110
110
}
0 commit comments