To fix this, I wrote an auxiliary class
System2 that has a custom assertEquals method that asserts two Strings contain the same delimited values.The code is verified by checking the following cases in an associated test class:
| s1 | s2 | result |
|---|---|---|
| pass | ||
| a | fail | |
| a | fail | |
| a | a | pass |
| a | a;b | fail |
| a;b | a | fail |
| a;b | a;b | pass |
| b;a | a;b | pass |
| a;b | b;a | pass |
| a;b;c | c;a;b | pass |
| b;a;c | a;b;c | pass |
| a;b;c | a;b;c;d | fail |
| a;b;c;d | a;b;c | fail |
