示例#1
0
  /**
   * Initialise members.
   *
   * @throws Exception if something goes wrong
   */
  public void setUp() throws Exception {

    try {

      this.contentHandler = new RDFXMLContentHandler();

      // let superclass set up too
      super.setUp();
    } catch (Exception exception) {
      // try to tear down first
      try {
        tearDown();
      } catch (Exception e2) {
        // ignore
      }
      throw exception;
    }
  }
示例#2
0
 /** The teardown method for JUnit */
 public void tearDown() throws Exception {
   // allow super to close down too
   super.tearDown();
 }