|
|
Test classes for the application is located [**here**](https://gitlab.stud.idi.ntnu.no/G1-06/idatt-1002-2022-1-06/-/tree/master/finalprod/src/test/java/edu/ntnu/idatt1002/g106/handballapp/finalprod)
|
|
|
|
|
|
# Backend
|
|
|
### Administrator test
|
|
|
Tests that the administrator class constructs properly.
|
|
|
![Screenshot_2022-04-25_at_14.47.07](uploads/e69f2073e413c9d0c7fd5ad6649bc419/Screenshot_2022-04-25_at_14.47.07.png)
|
|
|
|
|
|
### Match test
|
|
|
Tests Match class functionality including setScore method and getters.
|
|
|
![Screenshot_2022-04-25_at_14.53.57](uploads/728968397877eb17a280409e8d3e6567/Screenshot_2022-04-25_at_14.53.57.png)
|
|
|
|
|
|
### Results test
|
|
|
Tests the ability to add match to results in Result class.
|
|
|
![Screenshot_2022-04-25_at_14.55.16](uploads/43eb57ed0c0f6e93055f162623bea860/Screenshot_2022-04-25_at_14.55.16.png)
|
|
|
|
|
|
### Teamregister test
|
|
|
Tests all functionality and methods in the TeamRegister class.
|
|
|
![Screenshot_2022-04-25_at_15.05.50](uploads/697f45602431a235577c218bdbe2775c/Screenshot_2022-04-25_at_15.05.50.png)
|
|
|
|
|
|
### Team test
|
|
|
Tests constructor and exception handling in Team class.
|
|
|
![Screenshot_2022-04-25_at_15.06.43](uploads/7f753b562b0667a93b7a77a9062659b1/Screenshot_2022-04-25_at_15.06.43.png)
|
|
|
|
|
|
### TournamentRegister test
|
|
|
Tests exception handling in TournamentRegister class.
|
|
|
![Screenshot_2022-04-25_at_15.07.43](uploads/3bfbd1d875e4caef7fc9d7962c475081/Screenshot_2022-04-25_at_15.07.43.png)
|
|
|
|
|
|
### Tournament test
|
|
|
Tests functionality in Tournament class including adding a match.
|
|
|
![Screenshot_2022-04-25_at_15.32.45](uploads/2afb27f04988fcd48283168a315c2ea5/Screenshot_2022-04-25_at_15.32.45.png)
|
|
|
|
|
|
### User test
|
|
|
Tests constructor and email registration.
|
|
|
![Screenshot_2022-04-25_at_15.10.41](uploads/c0d7e87e89439fc0a92c30a1d90fa354/Screenshot_2022-04-25_at_15.10.41.png)
|
|
|
|
|
|
# Controller
|
|
|
### setUpMatchesController test
|
|
|
Tests match setup.
|
|
|
![Screenshot_2022-04-25_at_15.11.35](uploads/e440a82738294d47120feb0b807614f7/Screenshot_2022-04-25_at_15.11.35.png) |
|
|
\ No newline at end of file |