Package edu.pdx.cs.joy
Class MainClassContainsMutableStaticFields
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
edu.pdx.cs.joy.MainClassContainsMutableStaticFields
- All Implemented Interfaces:
Serializable
Throws when the
main method of a class with mutable static
fields is invoked with InvokeMainTestCase.invokeMain(Class, String...).
Main classes with mutable static fields have proven to be problematic because the
values of the mutable fields are not reset in between tests. As a result, the values
of these fields from previous tests might stick around. This has proven to be very
confusing.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMainClassContainsMutableStaticFields(String className, List<String> fieldNames) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MainClassContainsMutableStaticFields
-
-
Method Details
-
getNamesOfMutableStaticFields
-