Skip to content

smistrydev/test-mock-web-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

test-mock-web-app

A simple example of a java servlet web-application. Read wiki for more details.

  • Code has a Distance converter
  • Exposed the distance via a servlet
  • JUnit test - simple for the distance
  • JUnit with Mockito - for testing the servlet.

Code is deployed for testing: http://my-simple-app.smistrydev.cloudbees.net/MyServlet?distanceUnit=km&distanceValue=100

where the parameters can be: distanceUnit: "km" or "mile" distanceValue: any value. (not nothing!).

  • The url goes into sleep mode if not used. So, if you hit the url and it response "Activating.." then re-try after 1 minute.

Releases

No releases published

Packages

No packages published

Languages