コード例 #1
0
 /**
  * Tears down the test.
  *
  * @throws Exception in any error occurred during setup.
  */
 protected void tearDown() throws Exception {
   EventTarget eventTarget = (EventTarget) this.processor.getXForms();
   eventTarget.removeEventListener(
       BetterFormEventNames.RENDER_MESSAGE, this.messageCountListener, true);
   this.messageCountListener = null;
   super.tearDown();
 }
コード例 #2
0
  /**
   * Sets up the test.
   *
   * @throws Exception in any error occurred during setup.
   */
  protected void setUp() throws Exception {
    super.setUp();

    this.messageCountListener = new EventCountListener(BetterFormEventNames.RENDER_MESSAGE);
    EventTarget eventTarget = (EventTarget) this.processor.getXForms();
    eventTarget.addEventListener(
        BetterFormEventNames.RENDER_MESSAGE, this.messageCountListener, true);
  }
コード例 #3
0
 /**
  * Tears down the test.
  *
  * @throws Exception in any error occurred during setup.
  */
 protected void tearDown() throws Exception {
   super.tearDown();
 }
コード例 #4
0
 /**
  * Sets up the test.
  *
  * @throws Exception in any error occurred during setup.
  */
 protected void setUp() throws Exception {
   super.setUp();
 }