Ratcash Developer created NETBEANS-6053:
-------------------------------------------
Summary: Silent skipping of assertions in tests
Key: NETBEANS-6053
URL: https://issues.apache.org/jira/browse/NETBEANS-6053
Project: NetBeans
Issue Type: Bug
Components: javaee - Code
Affects Versions: 12.4, 12.5
Reporter: Ratcash Developer
Test cases, like `SourceUtilsTest.java` (and it exists in this form in many
other modules), silently skips over assertions in Tasks as follows
{code:java}
runUserActionTask(testFO, new Task<CompilationController>() {
public void run(CompilationController controller) throws
IOException {
TypeElement typeElement =
SourceUtils.getPublicTopLevelElement(controller);
assertTrue(typeElement.getQualifiedName().contentEquals("foo.TestClass"));
}
});
{code}
In the example above, the `run` method of the Task is never executed (parser is
null) and thus the assertion is not run.
Practically all these tests should fail, but they don't.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists