Enum Class TestConfigurationError
- All Implemented Interfaces:
Serializable, Comparable<TestConfigurationError>, Constable
Error codes for test configuration and execution problems.
These errors occur during test discovery and execution (the -t command),
not during normal compilation. They integrate with VerboseErrorMessages for detailed
explanations at error level E3.
Error code ranges:
- E81xxx - Test configuration/discovery errors
- E82xxx - Test execution errors
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionArgument count in commandline file doesn't match program's declared parameters.Duplicate test case IDs found in the same directory.Test program has no assertions and no expected output files.Invalid file name pattern detected, likely a typo.Invalid placeholder syntax in expected output file.Program declares parameters but no commandline files found.Missing expected output file for a parameterized test case.Test produced no output but expected output file exists.Orphan expected output file with no matching commandline args.Test execution exceeded the timeout limit.Cannot convert argument string to required parameter type.Arguments provided for a program that declares no parameters. -
Method Summary
Modifier and TypeMethodDescriptionGet the short description of the error.Get the error code (e.g., "E81001").toString()static TestConfigurationErrorReturns the enum constant of this class with the specified name.static TestConfigurationError[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MISSING_EXPECTED_OUTPUT
Missing expected output file for a parameterized test case. Found commandline_arg_{id}.txt but no matching expected_case_{id}.txt. -
ORPHAN_EXPECTED_OUTPUT
Orphan expected output file with no matching commandline args. Found expected_case_{id}.txt but no matching commandline_arg_{id}.txt. -
ARGUMENT_COUNT_MISMATCH
Argument count in commandline file doesn't match program's declared parameters. -
UNEXPECTED_ARGUMENTS
Arguments provided for a program that declares no parameters. -
MISSING_ARGUMENTS
Program declares parameters but no commandline files found. -
TYPE_CONVERSION_ERROR
Cannot convert argument string to required parameter type. -
EMPTY_TEST
Test program has no assertions and no expected output files. The test would always pass vacuously. -
DUPLICATE_CASE_ID
Duplicate test case IDs found in the same directory. -
INVALID_FILE_PATTERN
Invalid file name pattern detected, likely a typo. Includes fuzzy match suggestion. -
INVALID_PLACEHOLDER
Invalid placeholder syntax in expected output file. E.g., {{InvalidType}} is not a valid EK9 type. -
TEST_TIMEOUT
Test execution exceeded the timeout limit. -
NO_OUTPUT
Test produced no output but expected output file exists. The program ran but printed nothing.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getErrorCode
Get the error code (e.g., "E81001"). -
getDescription
Get the short description of the error. -
toString
- Overrides:
toStringin classEnum<TestConfigurationError>
-