-
This project consists of 2 types of implementation of IFlix interface:
- MovieService.java : Uses ConcurrentHashMaps to store the data. ( I thought they'd be more efficient)
- MovieService2.java : Uses Lists to store the data, but still uses Map to store rented-movies data. (I have also implemented this service by making it "singleton")
-
This project therefore contains 2 JUnit test files. Both have exactly same set of tests, and they just test MovieService and MovieService2 respectively)
-
My approach is to use a MovieFactory in the MovieService to create a Movie.
Java assessment for new training candidates.
- Fork this repository on your own github account.
- Clone the forked repository in your local machine.
- Import the project in any Java IDE.
- Develop MovieService by implementing IFlix interface. Instructions are given in IFlix.java
- Use any Java collection type in MovieService to store movies.
- Write JUnit test cases for MovieService in MovieServiceTest file.
- Keep in mind about possibilities of concurrent access to MovieService.
- Once completed, DIRECT MESSAGE Praveen on slack with the link of the repo.