Details
Recommendation type: Static fields changed
Configurable in Preferences: Yes
Filter category: Unstable test environment
Description
UTA displays this recommendation when a static setter method has been called during test execution.
Example
public static class Example { private static boolean value = false; public static void setValue(boolean newValue) { value = newValue; } } @Test public void testSetValue() { boolean newValue = true; Example.setValue(newValue); }