Requires Java 11, maven and an IDE
There is a class with 3 methods, InterviewImpl
- sortArray
The intention of this method is to sort the input array into either ascending or descending order.
- filterArray
The intention of this method is to filter the input array so only values from the min to the max values, including the min and max, are returned.
- textTester
This method returns a hardcoded value supplied by the Texty class
There is an accompanying test class, InterviewTest
There are a few test methods written, or partially written to test the methods in InterviewImpl
- Add the code to sortArray in ascending and descending order. Run the corresponding tests.
- Add the code to filterArray method to correctly return what is expected.
- Complete the test method to test the filterArray method.
- Mock the texty class.
- Ensure the tests are passing