Skip to content

Latest commit

 

History

History
79 lines (45 loc) · 2.29 KB

README.md

File metadata and controls

79 lines (45 loc) · 2.29 KB

Enterprise Programming Exam

PG5100 2019

Build Status

All requirements have been completed and some extra functionality has been added. When I used inspiration or copied code, I specified the source in the current file or above the methods. All the pom.xml files that were created with inspiration from the Course Repository

Exam text

Run Application

Run "LocalApplicationRunner" and it will run on localhost:8080

Run Tests

> mvn clean install

If the dependencies have been downloaded then you can just run:

> mvn verify

Different choices i made in the exam

The exam states that the ratings are some kind of "stars", but I chose not to display visual stars as that would just be design work but rather use the data type Integer/int to represent stars where the valid values would be from 1-5 as stated in the exam. When the average is displaying the value i'm using Double with no limit on the decimals because this is not stated in the exam.

I got the movie information from imdb.com Top 250. I just picked some of the first items displayed to populate my items as the default information.

Extras

Administrator

I have added an administrator option to the user. The administrator has access to enable/disable user accounts and create new items. This is the tests for the administrator extra:

public void testDisableAndEnableUser()
public void testCreateItem()

Sorting and filtering categories

I added sorting on the average, as extra i added the sorting to work on the data type Double and down to 0.01. I also added the the filtering to work with categories and as extra the filtering also works with new created items that have a completely new category. These extras is tested by:

public void testItemSorting()
public void testFilterItems()

Coverage

Frontend: 91%

Backend: 97%

Total: 95%