View Javadoc

1   /*
2    * $Id: NoPersistenceTestCase.java 22409 2011-07-14 05:14:27Z dirk.olmes $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
5    *
6    * The software in this package is published under the terms of the CPAL v1.0
7    * license, a copy of which has been included with this distribution in the
8    * LICENSE.txt file.
9    */
10  
11  package org.mule.util.queue;
12  
13  import org.mule.util.store.SimpleMemoryObjectStore;
14  
15  import java.io.Serializable;
16  
17  public class NoPersistenceTestCase extends AbstractTransactionQueueManagerTestCase
18  {
19      @Override
20      protected TransactionalQueueManager createQueueManager() throws Exception
21      {
22          TransactionalQueueManager mgr = new TransactionalQueueManager();
23          mgr.setDefaultQueueConfiguration(new QueueConfiguration(0, new SimpleMemoryObjectStore<Serializable>()));
24          return mgr;
25      }
26  
27      @Override
28      protected boolean isPersistent()
29      {
30          return false;
31      }
32  }