Test default value and setter in same test-case or separate test cases
Would you recommend doing any grouping of test cases within @Test methods, or have one @Test method per test scenario? For example, let's suppose that there are different ways to set the context in an application. Is the following idea acceptable? @Test public void testContextSetting() { // Test default setting assert(...) // Test setting a context variable assert(...) ... } Or, would you rather suggest having it like this, having each method as atomic as possible: @Test public void textDefaultSetting() { // Test default setting assert(...) } @Test public void testSettingContextVar() { // Test