I'm updating the log: `Running==> application.subscribeToEvent(Class, "
"SystemEventListener, null)"because the test is doing the following:TCKSystemEvent.class, srcClass, null. I'm changingSystemEventListenertoClasssince it is thesrcClassparameter, not theSystemEventListener` parameter.
Details on the second test:
Currently, the test is an exact copy of the first test except for what is being logged. I'm updating this test to reflect what is being logged: Running==> application.subscribeToEvent(Class, null, null)" This also follows the pattern used for the first two NPE checks at the beginning of this test: null first parameter followed by null srcClass (which can be null), and null first parameter followed by non-null srcClass
Install the listener instance referenced by argument listener into the application as a listener for events of type systemEventClass that originate from objects of type sourceClass.
It is valid to call this method during the processing of an event which was subscribed to by a previous call to this method.
Parameters:
systemEventClass - the Class of event for which listener must be fired.
sourceClass - the Class of the instance which causes events of type systemEventClass to be fired. May be null.
listener - the implementation of SystemEventListener whose SystemEventListener.processEvent(jakarta.faces.event.SystemEvent) method must be called when events of type systemEventClass are fired.
Throws:
NullPointerException - if any combination of systemEventClass, or listener are null.
Since:
2.0
fixes #1711
The following tests are being updated. Below are the tests without modification for discussion:
Details on the first test:
because the test is doing the following:
TCKSystemEvent.class, srcClass, null. I'm changing
SystemEventListenerto
Classsince it is the
srcClassparameter, not the
SystemEventListener` parameter.Details on the second test:
Running==> application.subscribeToEvent(Class, null, null)"
This also follows the pattern used for the first two NPE checks at the beginning of this test:null first parameter followed by null srcClass (which can be null), and null first parameter followed by non-null srcClass
API for reference: https://jakarta.ee/specifications/faces/4.0/apidocs/jakarta/faces/application/application#subscribeToEvent(java.lang.Class,java.lang.Class,jakarta.faces.event.SystemEventListener)