コード例 #1
0
ファイル: AlertingTest.java プロジェクト: ayyoob/andes
  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
ファイル: AlertingTest.java プロジェクト: ayyoob/andes
 @Override
 public void tearDown() throws Exception {
   // Ensure queue is clean for next run.
   drainQueue(_destination);
   super.tearDown();
 }