@@ -15,7 +15,8 @@ public class ResponseTemplateTest {
15
15
public void constructorVars () {
16
16
ResponseTemplate tpl = new ResponseTemplate ("" );
17
17
assertEquals (423 , tpl .getCode ());
18
- assertEquals ("Empty API response" , tpl .getDescription ());
18
+ assertEquals ("Empty API response. Probably unreachable API end point" ,
19
+ tpl .getDescription ());
19
20
}
20
21
21
22
/**
@@ -26,7 +27,8 @@ public void getHash() {
26
27
ResponseTemplate tpl = new ResponseTemplate ("" );
27
28
Map <String , Object > h = tpl .getHash ();
28
29
assertEquals ("423" , (String ) h .get ("CODE" ));
29
- assertEquals ("Empty API response" , (String ) h .get ("DESCRIPTION" ));
30
+ assertEquals ("Empty API response. Probably unreachable API end point" ,
31
+ (String ) h .get ("DESCRIPTION" ));
30
32
}
31
33
32
34
/**
@@ -44,7 +46,7 @@ public void getQueuetime1() {
44
46
@ Test
45
47
public void getQueuetime2 () {
46
48
ResponseTemplate tpl = new ResponseTemplate (
47
- "[RESPONSE]\r \n code=423\r \n description=Empty API response\r \n queuetime=0\r \n EOF\r \n " );
49
+ "[RESPONSE]\r \n code=423\r \n description=Empty API response. Probably unreachable API end point \r \n queuetime=0\r \n EOF\r \n " );
48
50
assertEquals (0 , tpl .getQueuetime (), 0 );
49
51
}
50
52
@@ -63,7 +65,7 @@ public void getRuntime1() {
63
65
@ Test
64
66
public void getRuntime2 () {
65
67
ResponseTemplate tpl = new ResponseTemplate (
66
- "[RESPONSE]\r \n code=423\r \n description=Empty API response\r \n runtime=0.12\r \n EOF\r \n " );
68
+ "[RESPONSE]\r \n code=423\r \n description=Empty API response. Probably unreachable API end point \r \n runtime=0.12\r \n EOF\r \n " );
67
69
assertEquals (0.12 , tpl .getRuntime (), 0 );
68
70
}
69
71
@@ -82,7 +84,7 @@ public void isPending1() {
82
84
@ Test
83
85
public void isPending2 () {
84
86
ResponseTemplate tpl = new ResponseTemplate (
85
- "[RESPONSE]\r \n code=423\r \n description=Empty API response\r \n pending=1\r \n EOF\r \n " );
87
+ "[RESPONSE]\r \n code=423\r \n description=Empty API response. Probably unreachable API end point \r \n pending=1\r \n EOF\r \n " );
86
88
assertEquals (true , tpl .isPending ());
87
89
}
88
90
}
0 commit comments