[jboss-cvs] JBossAS SVN: r81916 - projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Dec 1 10:30:28 EST 2008
Author: alesj
Date: 2008-12-01 10:30:28 -0500 (Mon, 01 Dec 2008)
New Revision: 81916
Modified:
projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CPCacheContextWithFactoryBasicAnnotationsUnitTestCase.java
projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CPCacheContextWithFactoryBasicMetaDataUnitTestCase.java
projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CPCacheMetaDataContextWithFactoryAnnotationUnitTestCase.java
projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CPCacheMetaDataContextWithFactoryMetaDataUnitTestCase.java
projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CPCacheParentContextWithFactoryBasicAnnotationsUnitTestCase.java
projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CPCacheParentContextWithFactoryBasicMetaDataUnitTestCase.java
projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CPSimpleCacheMetaDataContextWithFactoryUnitTestCase.java
projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CPSimpleCacheParentMetaDataContextWithFactoryUnitTestCase.java
projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CacheContextWithFactoryBasicAnnotationsUnitTestCase.java
projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CacheContextWithFactoryBasicMetaDataUnitTestCase.java
projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CacheMetaDataContextWithFactoryAnnotationUnitTestCase.java
projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CacheMetaDataContextWithFactoryMetaDataUnitTestCase.java
projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CacheParentContextWithFactoryBasicAnnotationsUnitTestCase.java
projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CacheParentContextWithFactoryBasicMetaDataUnitTestCase.java
projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/SimpleCacheMetaDataContextWithFactoryUnitTestCase.java
projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/SimpleCacheParentMetaDataContextWithFactoryUnitTestCase.java
Log:
[JBMDR-54]; destroy caches.
Modified: projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CPCacheContextWithFactoryBasicAnnotationsUnitTestCase.java
===================================================================
--- projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CPCacheContextWithFactoryBasicAnnotationsUnitTestCase.java 2008-12-01 15:01:17 UTC (rev 81915)
+++ projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CPCacheContextWithFactoryBasicAnnotationsUnitTestCase.java 2008-12-01 15:30:28 UTC (rev 81916)
@@ -43,4 +43,12 @@
}
protected abstract CachePolicyFactory getPolicy();
+
+ @Override
+ protected void destroyCacheFactory(CacheFactory factory)
+ {
+ CachePolicyCacheFactory cpcf = (CachePolicyCacheFactory)factory;
+ cpcf.stop();
+ cpcf.destroy();
+ }
}
\ No newline at end of file
Modified: projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CPCacheContextWithFactoryBasicMetaDataUnitTestCase.java
===================================================================
--- projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CPCacheContextWithFactoryBasicMetaDataUnitTestCase.java 2008-12-01 15:01:17 UTC (rev 81915)
+++ projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CPCacheContextWithFactoryBasicMetaDataUnitTestCase.java 2008-12-01 15:30:28 UTC (rev 81916)
@@ -43,4 +43,12 @@
}
protected abstract CachePolicyFactory getPolicy();
+
+ @Override
+ protected void destroyCacheFactory(CacheFactory factory)
+ {
+ CachePolicyCacheFactory cpcf = (CachePolicyCacheFactory)factory;
+ cpcf.stop();
+ cpcf.destroy();
+ }
}
\ No newline at end of file
Modified: projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CPCacheMetaDataContextWithFactoryAnnotationUnitTestCase.java
===================================================================
--- projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CPCacheMetaDataContextWithFactoryAnnotationUnitTestCase.java 2008-12-01 15:01:17 UTC (rev 81915)
+++ projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CPCacheMetaDataContextWithFactoryAnnotationUnitTestCase.java 2008-12-01 15:30:28 UTC (rev 81916)
@@ -43,4 +43,12 @@
}
protected abstract CachePolicyFactory getPolicy();
+
+ @Override
+ protected void destroyCacheFactory(CacheFactory factory)
+ {
+ CachePolicyCacheFactory cpcf = (CachePolicyCacheFactory)factory;
+ cpcf.stop();
+ cpcf.destroy();
+ }
}
\ No newline at end of file
Modified: projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CPCacheMetaDataContextWithFactoryMetaDataUnitTestCase.java
===================================================================
--- projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CPCacheMetaDataContextWithFactoryMetaDataUnitTestCase.java 2008-12-01 15:01:17 UTC (rev 81915)
+++ projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CPCacheMetaDataContextWithFactoryMetaDataUnitTestCase.java 2008-12-01 15:30:28 UTC (rev 81916)
@@ -43,4 +43,12 @@
}
protected abstract CachePolicyFactory getPolicy();
+
+ @Override
+ protected void destroyCacheFactory(CacheFactory factory)
+ {
+ CachePolicyCacheFactory cpcf = (CachePolicyCacheFactory)factory;
+ cpcf.stop();
+ cpcf.destroy();
+ }
}
\ No newline at end of file
Modified: projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CPCacheParentContextWithFactoryBasicAnnotationsUnitTestCase.java
===================================================================
--- projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CPCacheParentContextWithFactoryBasicAnnotationsUnitTestCase.java 2008-12-01 15:01:17 UTC (rev 81915)
+++ projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CPCacheParentContextWithFactoryBasicAnnotationsUnitTestCase.java 2008-12-01 15:30:28 UTC (rev 81916)
@@ -43,4 +43,12 @@
}
protected abstract CachePolicyFactory getPolicy();
+
+ @Override
+ protected void destroyCacheFactory(CacheFactory factory)
+ {
+ CachePolicyCacheFactory cpcf = (CachePolicyCacheFactory)factory;
+ cpcf.stop();
+ cpcf.destroy();
+ }
}
\ No newline at end of file
Modified: projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CPCacheParentContextWithFactoryBasicMetaDataUnitTestCase.java
===================================================================
--- projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CPCacheParentContextWithFactoryBasicMetaDataUnitTestCase.java 2008-12-01 15:01:17 UTC (rev 81915)
+++ projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CPCacheParentContextWithFactoryBasicMetaDataUnitTestCase.java 2008-12-01 15:30:28 UTC (rev 81916)
@@ -43,4 +43,12 @@
}
protected abstract CachePolicyFactory getPolicy();
+
+ @Override
+ protected void destroyCacheFactory(CacheFactory factory)
+ {
+ CachePolicyCacheFactory cpcf = (CachePolicyCacheFactory)factory;
+ cpcf.stop();
+ cpcf.destroy();
+ }
}
\ No newline at end of file
Modified: projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CPSimpleCacheMetaDataContextWithFactoryUnitTestCase.java
===================================================================
--- projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CPSimpleCacheMetaDataContextWithFactoryUnitTestCase.java 2008-12-01 15:01:17 UTC (rev 81915)
+++ projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CPSimpleCacheMetaDataContextWithFactoryUnitTestCase.java 2008-12-01 15:30:28 UTC (rev 81916)
@@ -43,4 +43,12 @@
}
protected abstract CachePolicyFactory getPolicy();
+
+ @Override
+ protected void destroyCacheFactory(CacheFactory factory)
+ {
+ CachePolicyCacheFactory cpcf = (CachePolicyCacheFactory)factory;
+ cpcf.stop();
+ cpcf.destroy();
+ }
}
\ No newline at end of file
Modified: projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CPSimpleCacheParentMetaDataContextWithFactoryUnitTestCase.java
===================================================================
--- projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CPSimpleCacheParentMetaDataContextWithFactoryUnitTestCase.java 2008-12-01 15:01:17 UTC (rev 81915)
+++ projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CPSimpleCacheParentMetaDataContextWithFactoryUnitTestCase.java 2008-12-01 15:30:28 UTC (rev 81916)
@@ -43,4 +43,12 @@
}
protected abstract CachePolicyFactory getPolicy();
+
+ @Override
+ protected void destroyCacheFactory(CacheFactory factory)
+ {
+ CachePolicyCacheFactory cpcf = (CachePolicyCacheFactory)factory;
+ cpcf.stop();
+ cpcf.destroy();
+ }
}
\ No newline at end of file
Modified: projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CacheContextWithFactoryBasicAnnotationsUnitTestCase.java
===================================================================
--- projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CacheContextWithFactoryBasicAnnotationsUnitTestCase.java 2008-12-01 15:01:17 UTC (rev 81915)
+++ projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CacheContextWithFactoryBasicAnnotationsUnitTestCase.java 2008-12-01 15:30:28 UTC (rev 81916)
@@ -52,4 +52,21 @@
}
protected abstract CacheFactory createFactory();
+
+ protected void destroyCacheFactory(CacheFactory factory)
+ {
+ }
+
+ @Override
+ protected void tearDown() throws Exception
+ {
+ try
+ {
+ destroyCacheFactory(factory);
+ }
+ finally
+ {
+ super.tearDown();
+ }
+ }
}
\ No newline at end of file
Modified: projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CacheContextWithFactoryBasicMetaDataUnitTestCase.java
===================================================================
--- projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CacheContextWithFactoryBasicMetaDataUnitTestCase.java 2008-12-01 15:01:17 UTC (rev 81915)
+++ projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CacheContextWithFactoryBasicMetaDataUnitTestCase.java 2008-12-01 15:30:28 UTC (rev 81916)
@@ -52,4 +52,21 @@
}
protected abstract CacheFactory createFactory();
+
+ protected void destroyCacheFactory(CacheFactory factory)
+ {
+ }
+
+ @Override
+ protected void tearDown() throws Exception
+ {
+ try
+ {
+ destroyCacheFactory(factory);
+ }
+ finally
+ {
+ super.tearDown();
+ }
+ }
}
\ No newline at end of file
Modified: projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CacheMetaDataContextWithFactoryAnnotationUnitTestCase.java
===================================================================
--- projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CacheMetaDataContextWithFactoryAnnotationUnitTestCase.java 2008-12-01 15:01:17 UTC (rev 81915)
+++ projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CacheMetaDataContextWithFactoryAnnotationUnitTestCase.java 2008-12-01 15:30:28 UTC (rev 81916)
@@ -55,4 +55,21 @@
}
protected abstract CacheFactory createFactory();
+
+ protected void destroyCacheFactory(CacheFactory factory)
+ {
+ }
+
+ @Override
+ protected void tearDown() throws Exception
+ {
+ try
+ {
+ destroyCacheFactory(factory);
+ }
+ finally
+ {
+ super.tearDown();
+ }
+ }
}
\ No newline at end of file
Modified: projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CacheMetaDataContextWithFactoryMetaDataUnitTestCase.java
===================================================================
--- projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CacheMetaDataContextWithFactoryMetaDataUnitTestCase.java 2008-12-01 15:01:17 UTC (rev 81915)
+++ projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CacheMetaDataContextWithFactoryMetaDataUnitTestCase.java 2008-12-01 15:30:28 UTC (rev 81916)
@@ -55,4 +55,21 @@
}
protected abstract CacheFactory createFactory();
+
+ protected void destroyCacheFactory(CacheFactory factory)
+ {
+ }
+
+ @Override
+ protected void tearDown() throws Exception
+ {
+ try
+ {
+ destroyCacheFactory(factory);
+ }
+ finally
+ {
+ super.tearDown();
+ }
+ }
}
\ No newline at end of file
Modified: projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CacheParentContextWithFactoryBasicAnnotationsUnitTestCase.java
===================================================================
--- projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CacheParentContextWithFactoryBasicAnnotationsUnitTestCase.java 2008-12-01 15:01:17 UTC (rev 81915)
+++ projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CacheParentContextWithFactoryBasicAnnotationsUnitTestCase.java 2008-12-01 15:30:28 UTC (rev 81916)
@@ -52,4 +52,21 @@
}
protected abstract CacheFactory createFactory();
+
+ protected void destroyCacheFactory(CacheFactory factory)
+ {
+ }
+
+ @Override
+ protected void tearDown() throws Exception
+ {
+ try
+ {
+ destroyCacheFactory(factory);
+ }
+ finally
+ {
+ super.tearDown();
+ }
+ }
}
\ No newline at end of file
Modified: projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CacheParentContextWithFactoryBasicMetaDataUnitTestCase.java
===================================================================
--- projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CacheParentContextWithFactoryBasicMetaDataUnitTestCase.java 2008-12-01 15:01:17 UTC (rev 81915)
+++ projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/CacheParentContextWithFactoryBasicMetaDataUnitTestCase.java 2008-12-01 15:30:28 UTC (rev 81916)
@@ -58,4 +58,21 @@
}
protected abstract CacheFactory createFactory();
+
+ protected void destroyCacheFactory(CacheFactory factory)
+ {
+ }
+
+ @Override
+ protected void tearDown() throws Exception
+ {
+ try
+ {
+ destroyCacheFactory(factory);
+ }
+ finally
+ {
+ super.tearDown();
+ }
+ }
}
\ No newline at end of file
Modified: projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/SimpleCacheMetaDataContextWithFactoryUnitTestCase.java
===================================================================
--- projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/SimpleCacheMetaDataContextWithFactoryUnitTestCase.java 2008-12-01 15:01:17 UTC (rev 81915)
+++ projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/SimpleCacheMetaDataContextWithFactoryUnitTestCase.java 2008-12-01 15:30:28 UTC (rev 81916)
@@ -55,4 +55,21 @@
}
protected abstract CacheFactory createFactory();
+
+ protected void destroyCacheFactory(CacheFactory factory)
+ {
+ }
+
+ @Override
+ protected void tearDown() throws Exception
+ {
+ try
+ {
+ destroyCacheFactory(factory);
+ }
+ finally
+ {
+ super.tearDown();
+ }
+ }
}
\ No newline at end of file
Modified: projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/SimpleCacheParentMetaDataContextWithFactoryUnitTestCase.java
===================================================================
--- projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/SimpleCacheParentMetaDataContextWithFactoryUnitTestCase.java 2008-12-01 15:01:17 UTC (rev 81915)
+++ projects/jboss-mdr/trunk/src/test/java/org/jboss/test/metadata/context/cache/test/SimpleCacheParentMetaDataContextWithFactoryUnitTestCase.java 2008-12-01 15:30:28 UTC (rev 81916)
@@ -55,4 +55,21 @@
}
protected abstract CacheFactory createFactory();
+
+ protected void destroyCacheFactory(CacheFactory factory)
+ {
+ }
+
+ @Override
+ protected void tearDown() throws Exception
+ {
+ try
+ {
+ destroyCacheFactory(factory);
+ }
+ finally
+ {
+ super.tearDown();
+ }
+ }
}
\ No newline at end of file
More information about the jboss-cvs-commits
mailing list