Assigning static final int in a JUnit (4.8.1) test suite
- by Dr. Monkey
I have a JUnit test class in which I have several static final ints that can be redefined at the top of the tester code to allow some variation in the test values. I have logic in my @BeforeClass method to ensure that the developer has entered values that won't break my tests.
I would like to improve variation further by allowing these ints to be…