SSE554-Capstone-Project

Testing

All tests can be found under the src/test directory. The tests files can be categorized into three different categories. These are unit test files, an integration test file, and two utility files for testing.

Unit Tests

These tests are located in the subdirectories of src/test/java/org/troy/capstone/. They test individual methods and classes in isolation from most of the program. Tests have been designed to target most methods individually, with test cases being used to go after each branch of each method. Many tests make use of the ParameterizedTest annotation to allow multiple cases to run for each test written into code.

Integration Tests

There is one integration test file, src/test/java/org/troy/capstone/MainTest.java. This file tests the SearchEngine class, which is responsible for applying all filters and sorting to the data. This class is a good candidate for integration testing, as it relies on many different classes and methods to operate correctly.

Coverage