Skip to content

byronlloydwakeman/SummativeUI

Repository files navigation

BS2202 Byron Lloyd - Wakeman

Introduction

This is the repo for the summative assessment for module BS2202

Tech Stack

Java and that

Running the Application

Once the repo has been cloned or forked, mvn clean install will need to be ran to install all the required dependencies.
If the maven clean install has completed successfully the program can now be ran.

Intellij

To run the code locate the HelloApplication class inside src/main/java/com/example/summativeui If running in Intellij there should be a green play button next to the class name, right click this and it will show a pop-up. img.png Click modify run configuration. The run configuration should look like this - img_1.png Click the once the given run config has been selected, click the green play button and the app should run.

Other IDEs

Installation

If the javafx imports are giving the error 'not resolved' make sure to reload the project by right clicking the pom.xml file, navigaing to maven and clicking 'Reload Project'.

![image](https://github.com/byronlloydwakeman/SummativeUI/assets/72659565/2a0d6d53-da9b-4c99-9546-57c3295fc4da)

Testing

When running a test make sure to add the following CLI argument
-ea --add-opens javafx.graphics/com.sun.javafx.application=ALL-UNNAMED
This solves a permission error caused by javafx.

Make sure to also include the ENVIRONMENT env variable which specifies the given environment the code will be ran in. The available options are 'test' and 'production'

Unable to locate any tests error, this is caused by the testfx maven dependency not being loaded properly. To solve this simply remove the testfx.junit5 dependency and reload it. Use version org.testfx:testfx-junit5:4.0.15-alpha

Jenkins

Jenkins is being used to run continous tests, its ran locally on a docker container The Jenkins username is admin and the password is B...1103.