ASE ASSIGNMENT 8 - nikky4222/ASE GitHub Wiki

                                         ASE ASSIGNMENT 8

Name:LakshmiNikitha
Class id:22

##Question

  1. Implement a web server proxy (related to your own project) to integrate data from at least two Rest services.
  2. Write at least two suitable Junit Test cases for the classes created.

##Answer

A Mash up of three services has been performed for
1)bytes to bits
2)bytes to nibbles
3)bytes to kilobytes

A server side mashup of above three services is performed at the server side and web application is performed in the webstorm.The localhost link is given in webstorm which calls the above three services API and required output is performed in the GUI.
. ###Use Of Server Side Mashup
For security issues, to prevent the API keys to be visible mashup is done at server side.
A main page is displayed where the user is prompted to enter the byte value and as explained above and the json object is parsed.



Values are given,after onclick of the button values are fetched and displayed



The produces JSON object result displayed on the local host is displayed below.



A junit test case has been performed to check whether the required output is obtained or not.




The results of the above test cases are displayed
##Junit TestCase1


##JumitTestCase2


Thus we have successfully performed the Junit test case.

⚠️ **GitHub.com Fallback** ⚠️