@@ -15,7 +15,8 @@ public class ResponseTemplateTest {
1515 public void constructorVars () {
1616 ResponseTemplate tpl = new ResponseTemplate ("" );
1717 assertEquals (423 , tpl .getCode ());
18- assertEquals ("Empty API response" , tpl .getDescription ());
18+ assertEquals ("Empty API response. Probably unreachable API end point" ,
19+ tpl .getDescription ());
1920 }
2021
2122 /**
@@ -26,7 +27,8 @@ public void getHash() {
2627 ResponseTemplate tpl = new ResponseTemplate ("" );
2728 Map <String , Object > h = tpl .getHash ();
2829 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" ));
3032 }
3133
3234 /**
@@ -44,7 +46,7 @@ public void getQueuetime1() {
4446 @ Test
4547 public void getQueuetime2 () {
4648 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 " );
4850 assertEquals (0 , tpl .getQueuetime (), 0 );
4951 }
5052
@@ -63,7 +65,7 @@ public void getRuntime1() {
6365 @ Test
6466 public void getRuntime2 () {
6567 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 " );
6769 assertEquals (0.12 , tpl .getRuntime (), 0 );
6870 }
6971
@@ -82,7 +84,7 @@ public void isPending1() {
8284 @ Test
8385 public void isPending2 () {
8486 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 " );
8688 assertEquals (true , tpl .isPending ());
8789 }
8890}
0 commit comments