Giter VIP home page Giter VIP logo

erserver's Introduction

ERServer - Unit Testing Legacy Code in Java

ERServer is the sample application for the Pluralsight course Unit Testing Legacy Code in Java. It is a Java application to support a hospital emergency room's operation. The packages are arranged by course modules.

Prerequisites / Requirements

  • Java 8 or higher is required to compile and run ERServer.
  • Maven 3.5+ is also required.
  • And git, of course

Running ERServer

You will need to use Maven at the command line or from your IDE to compile ERServer. Once built, there is a Java main program that can be run.

Build ERServer

mvn clean install should compile and build ERServer.

Launch ERServer

To launch ERServer, first run the ERStubSystem class as a Java main, which will start up on http://localhost:4567. This represents an external dependency: an ambulance / patient transport service to the emergency room - not really part of the ERServer application.

Then start ERServer itself by running the class ERServerRunner as a Java main, which will launch ERServer on http://localhost:8088.

Running Fitnesse

Although not needed to learn the techniques in the course, Fitnesse is included as an example of how customer-facing fitnesse tests may help expose the critical business logic of a legacy application to customers for documentation and confirmation purposes.

Fitnesse is a java jar, and is contained in the fitnesse folder of the project. Simply CD to this directory and launch fitnesse on desired port (8081 in this example):

java -jar fitnesse-standalone.jar -p 8081

Running Postman Tests

If you would like to run the Postman tests as shown in the class, there is a JSON file at the project root that contains all the requests shown during the course. Just import these to Postman.

erserver's People

Contributors

weaverj avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.