示例#1
0
  public void setUp() throws Exception {
    // Update the configuration to make our virtualhost Persistent.
    //        makeVirtualHostPersistent(VIRTUALHOST);
    setConfigurationProperty(
        "virtualhosts.virtualhost." + VIRTUALHOST + ".housekeeping.expiredMessageCheckPeriod",
        "5000");

    _numMessages = 50;

    // Then we do the normal setup stuff like starting the broker, getting a connection etc.
    super.setUp();

    setupConnection();
  }
示例#2
0
 @Override
 public void tearDown() throws Exception {
   // Ensure queue is clean for next run.
   drainQueue(_destination);
   super.tearDown();
 }