You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 12, 2021. It is now read-only.
When a test encounters an "anonymous" Exception, JTAF stops that particular test's execution and marks it as passed. For example, this will cause JTAF to pass the test:
thrownewRuntimeException() {};
This is caused in Interpreter#interpret(TestScript). Specifically, towards the end of the method these lines are executed:
Because the Exception is anonymous, the getSimpleName() method returns an empty String. In most cases, test.getException() will also be an empty String, causing the code to flip the status to passing.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When a test encounters an "anonymous"
Exception
, JTAF stops that particular test's execution and marks it as passed. For example, this will cause JTAF to pass the test:This is caused in
Interpreter#interpret(TestScript)
. Specifically, towards the end of the method these lines are executed:Because the
Exception
is anonymous, thegetSimpleName()
method returns an emptyString
. In most cases,test.getException()
will also be an emptyString
, causing the code to flip the status to passing.The text was updated successfully, but these errors were encountered: