I am quite new to Junit, I am currently trying to test out some APIs corresponding to a simple UI with many checkboxes and a couple textfields.
what I have in mind now is to write something with the following structure:
testButtonOne()
testButtonTwo()
. . .
testButtonTen()
testCheckboxOne() with many inputs such as space, invalid char, very long string etc
testCheckboxTwo() with many inputs such as space, invalid char, very long string etc
I have tried to write the test in two files, one being single runs and one being parameterized runs, but the problem is that I have to write @BeforeClass @Before @After twice, so I am wondering what would be a better way to write test like this.