Skip to content
sibi edited this page Nov 21, 2016 · 3 revisions

LAB ASSIGNMENT 8

Question 1

Implement a web server proxy (related to your own project) to integrate data from at least two Rest services.

Answer:

  • Created TWO services on the server side and hosted locally using Tomcat v8.5 server.
  • To use the @GET,@PATH or similar tags Jersey JAR files were included.

Service 1

Decimal to Binary Conversion

Service 2

Binary to Hexadecimal Conversion

MashUp of the above two services(Server-Side)

  • A new Class is created that Mashes Up the two services created.
  • The entire program is cropped to display in a single page(notepad).

The output is returned in JSON

Parsing and Displaying in HTML Page

The JSON which is generated in the server is parsed into the HTML.

Code which shows the parsing of the JSON coded in AnuglarJS

HTML Page

UI is created to improve user interactions by making colors attractive.

Question 2:

Write at least two suitable Junit Test cases for the classes created.

Answer

Service 1 Junit Testing

Service 2 Junit Testing

Clone this wiki locally