hpi-swa-teaching/PrettyPrettyPrint

Refactor tests so that they use a setup method

Closed this issue · 1 comments

Currently, we have a lot of redundancy in the legacy tests, because we manually set multiple new options to "false".

Proposal: Use setup method to initialize a PPPPrinter with default options. In the tests, these options can still be manipulated.

Done, see commit 97f413f ...

Instead of a setUp-method, we used a constant (preferenceBlock), because it is used in different contexts (class-side vs. instance-side).