runJob(createDefaultDrainJob(queueName)); warmupDestination(queueName, standardMessageSize, false, DeliveryMode.NON_PERSISTENT, Session.AUTO_ACKNOWLEDGE);   FillJob fillJob = createDefaultFillJob(queueName, numMessages); fillJob.setDeliveryMode(DeliveryMode.NON_PERSISTENT); fillJob.setMsgSize(standardMessageSize); fillJob.setMf(new BytesMessageMessageFactory()); runJob(fillJob);   String selector = "JMSMessageID IS NOT NULL AND NonExistentProperty IS NULL";  BrowserJob job  = createDefaultBrowserJob(queueName); job.setSelector(selector); JobTimings result = runJob(job);  Execution execution = createExecution("Queue19");  execution.addMeasurement(new Measurement("timeTaken", result.getTestTime())); pm.saveExecution(execution);  log.info("Test Queue19 finished");
try {  FillJob fillJob = createDefaultFillJob(queueName, numMessages); fillJob.setDeliveryMode(DeliveryMode.NON_PERSISTENT); fillJob.setMsgSize(standardMessageSize); fillJob.setMf(new BytesMessageMessageFactory()); runJob(fillJob);   String selector = "JMSMessageID IS NOT NULL AND NonExistentProperty IS NULL";  BrowserJob job  = createDefaultBrowserJob(queueName); job.setSelector(selector); JobResult result = runJob(job);  if (!checkResult(result, "Queue19")) { return; }  Execution execution = createExecution("Queue19");  execution.addMeasurement(new Measurement("timeTaken", result.testTime)); pm.saveExecution(execution);  log.info("Test Queue19 finished"); } finally { drainQueue(queueName); }
   public void testQueue19()   {      log.info("Running test Queue19");            //First drain the destination      runJob(createDefaultDrainJob(queueName));      warmupDestination(queueName, standardMessageSize, false, DeliveryMode.NON_PERSISTENT, Session.AUTO_ACKNOWLEDGE);            //Now fill it with numMessages messages      FillJob fillJob = createDefaultFillJob(queueName, numMessages);      fillJob.setDeliveryMode(DeliveryMode.NON_PERSISTENT);      fillJob.setMsgSize(standardMessageSize);      fillJob.setMf(new BytesMessageMessageFactory());      runJob(fillJob);            //This should always be true      String selector = "JMSMessageID IS NOT NULL AND NonExistentProperty IS NULL";      BrowserJob job  = createDefaultBrowserJob(queueName);      job.setSelector(selector);      JobTimings result = runJob(job);            Execution execution = createExecution("Queue19");            execution.addMeasurement(new Measurement("timeTaken", result.getTestTime()));      pm.saveExecution(execution);            log.info("Test Queue19 finished");   }