For this assignment, you must create unit tests for and debug a
class that was written by SagaciousMedia. Specifically, you must
create JUnit tests for PostFilterMappingTransformer.java
,
identify the faults it contains, and correct those faults.
You must also correct any other defects in
the PostFilterMappingTransformer
class. This includes, but is not
limited to, style defects, incorrect/insufficient comments, "suspicious"
constructs, code duplication, lack of clarity, etc.
PostFilterMappingTransformer
class
contains several faults. So, it should fail some of your tests.
If it does not, improve your test suite.
For each failed test, understand the symptom and the trigger condition (i.e., stabilize the fault). Then, localize each fault, correct each fault (documenting the correction in the source code), and verify the correction.
PostFilterMappingTransformer
class. Your
tests must be in a package named testing
and each test
class must include the word "Test" in its name. You must not make
use of any of the data files from previous assigments in your tests.
PostFilterMappingTransformer
class (and associated
interface), and your
JUnit tests (for the PostFilterMappingTransformer
only)
in a .zip
file (packaged correctly).
Because you should not be using Gradescope to verify your code (i.e., because you must be able to write correct code and tests without the help of a submission system), you may submit to Gradescope at most five times and you will not receive any hints from Gradescope. If you submit more than five times you will receive a grade of 0.
Hence, the autograder will assign one of three possible grades: 0, 50, or 100. Points may then be deducted if you submit too few tests.
Copyright 2024