Revision b3523e34
Added by Cherian Mathew almost 9 years ago
eu.etaxonomy.taxeditor.test/src/test/java/eu/etaxonomy/taxeditor/httpinvoker/BaseRemotingTest.java | ||
---|---|---|
8 | 8 |
*/ |
9 | 9 |
package eu.etaxonomy.taxeditor.httpinvoker; |
10 | 10 |
|
11 |
import java.io.IOException; |
|
12 | 11 |
import java.lang.reflect.Field; |
13 | 12 |
import java.util.Map; |
14 | 13 |
|
... | ... | |
30 | 29 |
|
31 | 30 |
import eu.etaxonomy.cdm.api.application.CdmApplicationRemoteController; |
32 | 31 |
import eu.etaxonomy.cdm.model.name.NomenclaturalCode; |
33 |
import eu.etaxonomy.taxeditor.remoting.cache.CdmClientCacheException; |
|
34 | 32 |
import eu.etaxonomy.taxeditor.remoting.cache.CdmTransientEntityCacher; |
35 | 33 |
import eu.etaxonomy.taxeditor.remoting.source.CdmPersistentRemoteSource; |
36 | 34 |
import eu.etaxonomy.taxeditor.remoting.source.CdmRemoteSource; |
... | ... | |
50 | 48 |
*/ |
51 | 49 |
@Transactional(TransactionMode.DISABLED) |
52 | 50 |
@SpringApplicationContext("file:./target/classes/eu/etaxonomy/cdm/testRemotingApplicationContext.xml") |
53 |
public class BaseRemotingTest extends UnitilsJUnit4 { |
|
51 |
public abstract class BaseRemotingTest extends UnitilsJUnit4 {
|
|
54 | 52 |
//private static final Logger logger = Logger.getLogger(BaseRemotingTest.class); |
55 | 53 |
|
56 | 54 |
private static final Resource TEST_REMOTE_APPLICATION_CONTEXT_RESOURCE = |
... | ... | |
62 | 60 |
|
63 | 61 |
public static boolean useManagedServer = false; |
64 | 62 |
|
65 |
public static final Resource CDMLIB_DISK_STORE_RESOURCE = |
|
66 |
new ClassPathResource("/eu/etaxonomy/cache"); |
|
67 | 63 |
|
68 | 64 |
protected static ICdmEntitySessionManager cdmEntitySessionManager; |
69 | 65 |
|
... | ... | |
74 | 70 |
// recreated e.g. after a model change |
75 | 71 |
DatabaseUnitils.disableConstraints(); |
76 | 72 |
|
77 |
try { |
|
78 |
System.setProperty("ehcache.disk.store.dir", CDMLIB_DISK_STORE_RESOURCE.getFile().getAbsolutePath()); |
|
79 |
} catch (IOException e) { |
|
80 |
throw new CdmClientCacheException(e); |
|
81 |
} |
|
82 | 73 |
|
83 | 74 |
useManagedServer = (System.getProperty("use.managed.server") == null) ? useManagedServer : Boolean.valueOf(System.getProperty("use.managed.server")); |
84 | 75 |
if(useManagedServer) { |
Also available in: Unified diff
forgot to add in last commit