- Open the
establishment-rest-service-testproject in IntelliJ - On the top menu bar, click the drop down menu that says 'current file'
- Click on 'Edit Configurations'
- Click on the '+' icon in the top left hand corner to add a new configuration
- Click 'JUnit'
- Enter the following config:
- Name: EstablishmentRestTests
- Change 'Class' to 'all in package'
- Where it says
-eaadd the following config:
-D"dbunit.connectionUrl=jdbc:oracle:thin:@//localhost:1521/xepdb"
-D"dbunit.username=ISISUSERDB"
-D"dbunit.password=pa55w0rdTolocalDB"
-D"userOfficeTest.restUri=http://localhost:4019"
-D"uk.stfc.bisapps.config=C:\FBS\Apps\secret-config\local\establishment-service\RestTest.config"`
- Click ok
- Select the config on the top menu bar
- Click the green play button to run the tests