[jboss-cvs] JBossAS SVN: r75335 - projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Jul 3 04:59:57 EDT 2008
Author: alesj
Date: 2008-07-03 04:59:57 -0400 (Thu, 03 Jul 2008)
New Revision: 75335
Added:
projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CPCacheContextWithFactoryBasicAnnotationsUnitTestCase.java
projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CPCacheContextWithFactoryBasicMetaDataUnitTestCase.java
projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CPCacheMetaDataContextWithFactoryAnnotationUnitTestCase.java
projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CPCacheMetaDataContextWithFactoryMetaDataUnitTestCase.java
projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CPCacheParentContextWithFactoryBasicAnnotationsUnitTestCase.java
projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CPCacheParentContextWithFactoryBasicMetaDataUnitTestCase.java
projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CPSimpleCacheMetaDataContextWithFactoryUnitTestCase.java
projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CPSimpleCacheParentMetaDataContextWithFactoryUnitTestCase.java
projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CacheContextWithFactoryBasicAnnotationsUnitTestCase.java
projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CacheContextWithFactoryBasicMetaDataUnitTestCase.java
projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CacheMetaDataContextWithFactoryAnnotationUnitTestCase.java
projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CacheMetaDataContextWithFactoryMetaDataUnitTestCase.java
projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CacheParentContextWithFactoryBasicAnnotationsUnitTestCase.java
projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CacheParentContextWithFactoryBasicMetaDataUnitTestCase.java
projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCCacheContextWithFactoryBasicAnnotationsUnitTestCase.java
projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCCacheContextWithFactoryBasicMetaDataUnitTestCase.java
projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCCacheMetaDataContextWithFactoryAnnotationUnitTestCase.java
projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCCacheMetaDataContextWithFactoryMetaDataUnitTestCase.java
projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCCacheParentContextWithFactoryBasicAnnotationsUnitTestCase.java
projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCCacheParentContextWithFactoryBasicMetaDataUnitTestCase.java
projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCSimpleCacheMetaDataContextWithFactoryUnitTestCase.java
projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCSimpleCacheParentMetaDataContextWithFactoryUnitTestCase.java
projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/LRUCPCacheContextWithFactoryBasicAnnotationsUnitTestCase.java
projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/LRUCPCacheContextWithFactoryBasicMetaDataUnitTestCase.java
projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/LRUCPCacheMetaDataContextWithFactoryAnnotationUnitTestCase.java
projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/LRUCPCacheMetaDataContextWithFactoryMetaDataUnitTestCase.java
projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/LRUCPCacheParentContextWithFactoryBasicAnnotationsUnitTestCase.java
projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/LRUCPCacheParentContextWithFactoryBasicMetaDataUnitTestCase.java
projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/LRUCPSimpleCacheMetaDataContextWithFactoryUnitTestCase.java
projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/LRUCPSimpleCacheParentMetaDataContextWithFactoryUnitTestCase.java
projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/SimpleCacheMetaDataContextWithFactoryUnitTestCase.java
projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/SimpleCacheParentMetaDataContextWithFactoryUnitTestCase.java
projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/TimedCPCacheContextWithFactoryBasicAnnotationsUnitTestCase.java
projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/TimedCPCacheContextWithFactoryBasicMetaDataUnitTestCase.java
projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/TimedCPCacheMetaDataContextWithFactoryAnnotationUnitTestCase.java
projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/TimedCPCacheMetaDataContextWithFactoryMetaDataUnitTestCase.java
projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/TimedCPCacheParentContextWithFactoryBasicAnnotationsUnitTestCase.java
projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/TimedCPCacheParentContextWithFactoryBasicMetaDataUnitTestCase.java
projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/TimedCPSimpleCacheMetaDataContextWithFactoryUnitTestCase.java
projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/TimedCPSimpleCacheParentMetaDataContextWithFactoryUnitTestCase.java
Modified:
projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CacheContextBasicAnnotationsUnitTestCase.java
projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CacheContextBasicMetaDataUnitTestCase.java
projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CacheContextTestSuite.java
projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CacheParentContextBasicAnnotationsUnitTestCase.java
projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CacheParentContextBasicMetaDataUnitTestCase.java
Log:
[JBMDR-1]; adding cache tests.
Added: projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CPCacheContextWithFactoryBasicAnnotationsUnitTestCase.java
===================================================================
--- projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CPCacheContextWithFactoryBasicAnnotationsUnitTestCase.java (rev 0)
+++ projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CPCacheContextWithFactoryBasicAnnotationsUnitTestCase.java 2008-07-03 08:59:57 UTC (rev 75335)
@@ -0,0 +1,46 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.metadata.context.cache.test;
+
+import org.jboss.metadata.plugins.cache.CacheFactory;
+import org.jboss.metadata.plugins.cache.CachePolicyCacheFactory;
+import org.jboss.metadata.plugins.cache.CachePolicyFactory;
+
+/**
+ * JBCCacheContextWithFactoryBasicAnnotationsUnitTestCase.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public abstract class CPCacheContextWithFactoryBasicAnnotationsUnitTestCase extends CacheContextWithFactoryBasicAnnotationsUnitTestCase
+{
+ public CPCacheContextWithFactoryBasicAnnotationsUnitTestCase(String name)
+ {
+ super(name);
+ }
+
+ protected CacheFactory getFactory()
+ {
+ return new CachePolicyCacheFactory(getPolicy());
+ }
+
+ protected abstract CachePolicyFactory getPolicy();
+}
\ No newline at end of file
Added: projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CPCacheContextWithFactoryBasicMetaDataUnitTestCase.java
===================================================================
--- projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CPCacheContextWithFactoryBasicMetaDataUnitTestCase.java (rev 0)
+++ projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CPCacheContextWithFactoryBasicMetaDataUnitTestCase.java 2008-07-03 08:59:57 UTC (rev 75335)
@@ -0,0 +1,46 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.metadata.context.cache.test;
+
+import org.jboss.metadata.plugins.cache.CacheFactory;
+import org.jboss.metadata.plugins.cache.CachePolicyCacheFactory;
+import org.jboss.metadata.plugins.cache.CachePolicyFactory;
+
+/**
+ * CacheContextWithFactoryBasicMetaDataUnitTestCase.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public abstract class CPCacheContextWithFactoryBasicMetaDataUnitTestCase extends CacheContextWithFactoryBasicMetaDataUnitTestCase
+{
+ public CPCacheContextWithFactoryBasicMetaDataUnitTestCase(String name)
+ {
+ super(name);
+ }
+
+ protected CacheFactory getFactory()
+ {
+ return new CachePolicyCacheFactory(getPolicy());
+ }
+
+ protected abstract CachePolicyFactory getPolicy();
+}
\ No newline at end of file
Added: projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CPCacheMetaDataContextWithFactoryAnnotationUnitTestCase.java
===================================================================
--- projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CPCacheMetaDataContextWithFactoryAnnotationUnitTestCase.java (rev 0)
+++ projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CPCacheMetaDataContextWithFactoryAnnotationUnitTestCase.java 2008-07-03 08:59:57 UTC (rev 75335)
@@ -0,0 +1,46 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.metadata.context.cache.test;
+
+import org.jboss.metadata.plugins.cache.CacheFactory;
+import org.jboss.metadata.plugins.cache.CachePolicyCacheFactory;
+import org.jboss.metadata.plugins.cache.CachePolicyFactory;
+
+/**
+ * CPCacheMetaDataContextWithFactoryAnnotationUnitTestCase.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public abstract class CPCacheMetaDataContextWithFactoryAnnotationUnitTestCase extends CacheMetaDataContextWithFactoryAnnotationUnitTestCase
+{
+ public CPCacheMetaDataContextWithFactoryAnnotationUnitTestCase(String name)
+ {
+ super(name);
+ }
+
+ protected CacheFactory getFactory()
+ {
+ return new CachePolicyCacheFactory(getPolicy());
+ }
+
+ protected abstract CachePolicyFactory getPolicy();
+}
\ No newline at end of file
Added: projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CPCacheMetaDataContextWithFactoryMetaDataUnitTestCase.java
===================================================================
--- projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CPCacheMetaDataContextWithFactoryMetaDataUnitTestCase.java (rev 0)
+++ projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CPCacheMetaDataContextWithFactoryMetaDataUnitTestCase.java 2008-07-03 08:59:57 UTC (rev 75335)
@@ -0,0 +1,46 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.metadata.context.cache.test;
+
+import org.jboss.metadata.plugins.cache.CacheFactory;
+import org.jboss.metadata.plugins.cache.CachePolicyCacheFactory;
+import org.jboss.metadata.plugins.cache.CachePolicyFactory;
+
+/**
+ * CPCacheMetaDataContextWithFactoryMetaDataUnitTestCase.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public abstract class CPCacheMetaDataContextWithFactoryMetaDataUnitTestCase extends CacheMetaDataContextWithFactoryMetaDataUnitTestCase
+{
+ public CPCacheMetaDataContextWithFactoryMetaDataUnitTestCase(String name)
+ {
+ super(name);
+ }
+
+ protected CacheFactory getFactory()
+ {
+ return new CachePolicyCacheFactory(getPolicy());
+ }
+
+ protected abstract CachePolicyFactory getPolicy();
+}
\ No newline at end of file
Added: projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CPCacheParentContextWithFactoryBasicAnnotationsUnitTestCase.java
===================================================================
--- projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CPCacheParentContextWithFactoryBasicAnnotationsUnitTestCase.java (rev 0)
+++ projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CPCacheParentContextWithFactoryBasicAnnotationsUnitTestCase.java 2008-07-03 08:59:57 UTC (rev 75335)
@@ -0,0 +1,46 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.metadata.context.cache.test;
+
+import org.jboss.metadata.plugins.cache.CacheFactory;
+import org.jboss.metadata.plugins.cache.CachePolicyCacheFactory;
+import org.jboss.metadata.plugins.cache.CachePolicyFactory;
+
+/**
+ * CPCacheContextWithFactoryBasicAnnotationsUnitTestCase.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public abstract class CPCacheParentContextWithFactoryBasicAnnotationsUnitTestCase extends CacheParentContextWithFactoryBasicAnnotationsUnitTestCase
+{
+ public CPCacheParentContextWithFactoryBasicAnnotationsUnitTestCase(String name)
+ {
+ super(name);
+ }
+
+ protected CacheFactory getFactory()
+ {
+ return new CachePolicyCacheFactory(getPolicy());
+ }
+
+ protected abstract CachePolicyFactory getPolicy();
+}
\ No newline at end of file
Added: projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CPCacheParentContextWithFactoryBasicMetaDataUnitTestCase.java
===================================================================
--- projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CPCacheParentContextWithFactoryBasicMetaDataUnitTestCase.java (rev 0)
+++ projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CPCacheParentContextWithFactoryBasicMetaDataUnitTestCase.java 2008-07-03 08:59:57 UTC (rev 75335)
@@ -0,0 +1,46 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.metadata.context.cache.test;
+
+import org.jboss.metadata.plugins.cache.CacheFactory;
+import org.jboss.metadata.plugins.cache.CachePolicyCacheFactory;
+import org.jboss.metadata.plugins.cache.CachePolicyFactory;
+
+/**
+ * CPCacheParentContextWithFactoryBasicMetaDataUnitTestCase.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public abstract class CPCacheParentContextWithFactoryBasicMetaDataUnitTestCase extends CacheParentContextWithFactoryBasicMetaDataUnitTestCase
+{
+ public CPCacheParentContextWithFactoryBasicMetaDataUnitTestCase(String name)
+ {
+ super(name);
+ }
+
+ protected CacheFactory getFactory()
+ {
+ return new CachePolicyCacheFactory(getPolicy());
+ }
+
+ protected abstract CachePolicyFactory getPolicy();
+}
\ No newline at end of file
Added: projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CPSimpleCacheMetaDataContextWithFactoryUnitTestCase.java
===================================================================
--- projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CPSimpleCacheMetaDataContextWithFactoryUnitTestCase.java (rev 0)
+++ projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CPSimpleCacheMetaDataContextWithFactoryUnitTestCase.java 2008-07-03 08:59:57 UTC (rev 75335)
@@ -0,0 +1,46 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.metadata.context.cache.test;
+
+import org.jboss.metadata.plugins.cache.CacheFactory;
+import org.jboss.metadata.plugins.cache.CachePolicyCacheFactory;
+import org.jboss.metadata.plugins.cache.CachePolicyFactory;
+
+/**
+ * CPSimpleCacheMetaDataContextWithFactoryUnitTestCase.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public abstract class CPSimpleCacheMetaDataContextWithFactoryUnitTestCase extends SimpleCacheMetaDataContextWithFactoryUnitTestCase
+{
+ public CPSimpleCacheMetaDataContextWithFactoryUnitTestCase(String name)
+ {
+ super(name);
+ }
+
+ protected CacheFactory getFactory()
+ {
+ return new CachePolicyCacheFactory(getPolicy());
+ }
+
+ protected abstract CachePolicyFactory getPolicy();
+}
\ No newline at end of file
Added: projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CPSimpleCacheParentMetaDataContextWithFactoryUnitTestCase.java
===================================================================
--- projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CPSimpleCacheParentMetaDataContextWithFactoryUnitTestCase.java (rev 0)
+++ projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CPSimpleCacheParentMetaDataContextWithFactoryUnitTestCase.java 2008-07-03 08:59:57 UTC (rev 75335)
@@ -0,0 +1,46 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.metadata.context.cache.test;
+
+import org.jboss.metadata.plugins.cache.CacheFactory;
+import org.jboss.metadata.plugins.cache.CachePolicyCacheFactory;
+import org.jboss.metadata.plugins.cache.CachePolicyFactory;
+
+/**
+ * CPSimpleCacheMetaDataContextWithFactoryUnitTestCase.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public abstract class CPSimpleCacheParentMetaDataContextWithFactoryUnitTestCase extends SimpleCacheParentMetaDataContextWithFactoryUnitTestCase
+{
+ public CPSimpleCacheParentMetaDataContextWithFactoryUnitTestCase(String name)
+ {
+ super(name);
+ }
+
+ protected CacheFactory getFactory()
+ {
+ return new CachePolicyCacheFactory(getPolicy());
+ }
+
+ protected abstract CachePolicyFactory getPolicy();
+}
\ No newline at end of file
Modified: projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CacheContextBasicAnnotationsUnitTestCase.java
===================================================================
--- projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CacheContextBasicAnnotationsUnitTestCase.java 2008-07-03 08:52:35 UTC (rev 75334)
+++ projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CacheContextBasicAnnotationsUnitTestCase.java 2008-07-03 08:59:57 UTC (rev 75335)
@@ -44,9 +44,14 @@
super(name, true);
}
+ protected CachingMetaDataContext createContext(MetaDataLoader loader)
+ {
+ return new CachingMetaDataContext(null, loader);
+ }
+
protected MetaData setupMetaData(MetaDataLoader loader)
{
- CachingMetaDataContext context = new CachingMetaDataContext(null, loader);
+ CachingMetaDataContext context = createContext(loader);
return new MetaDataRetrievalToMetaDataBridge(context);
}
Modified: projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CacheContextBasicMetaDataUnitTestCase.java
===================================================================
--- projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CacheContextBasicMetaDataUnitTestCase.java 2008-07-03 08:52:35 UTC (rev 75334)
+++ projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CacheContextBasicMetaDataUnitTestCase.java 2008-07-03 08:59:57 UTC (rev 75335)
@@ -49,10 +49,15 @@
protected MetaData setupMetaData(MetaDataLoader loader)
{
- CachingMetaDataContext context = new CachingMetaDataContext(null, loader);
+ CachingMetaDataContext context = createContext(loader);
return new MetaDataRetrievalToMetaDataBridge(context);
}
+ protected CachingMetaDataContext createContext(MetaDataLoader loader)
+ {
+ return new CachingMetaDataContext(null, loader);
+ }
+
protected MetaData setupEmpty()
{
MutableMetaDataLoader loader = createTestMutableMetaDataLoader();
Modified: projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CacheContextTestSuite.java
===================================================================
--- projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CacheContextTestSuite.java 2008-07-03 08:52:35 UTC (rev 75334)
+++ projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CacheContextTestSuite.java 2008-07-03 08:59:57 UTC (rev 75335)
@@ -29,6 +29,7 @@
* CacheContextTestSuite.
*
* @author <a href="adrian at jboss.com">Adrian Brock</a>
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
* @version $Revision$
*/
public class CacheContextTestSuite extends TestSuite
@@ -43,14 +44,45 @@
TestSuite suite = new TestSuite("Cache Context Tests");
suite.addTest(new TestSuite(CacheContextBasicAnnotationsUnitTestCase.class));
+ suite.addTest(new TestSuite(JBCCacheContextWithFactoryBasicAnnotationsUnitTestCase.class));
+ suite.addTest(new TestSuite(LRUCPCacheContextWithFactoryBasicAnnotationsUnitTestCase.class));
+ suite.addTest(new TestSuite(TimedCPCacheContextWithFactoryBasicAnnotationsUnitTestCase.class));
+
suite.addTest(new TestSuite(CacheParentContextBasicAnnotationsUnitTestCase.class));
+ suite.addTest(new TestSuite(JBCCacheParentContextWithFactoryBasicAnnotationsUnitTestCase.class));
+ suite.addTest(new TestSuite(LRUCPCacheParentContextWithFactoryBasicAnnotationsUnitTestCase.class));
+ suite.addTest(new TestSuite(TimedCPCacheParentContextWithFactoryBasicAnnotationsUnitTestCase.class));
+
suite.addTest(new TestSuite(CacheContextBasicMetaDataUnitTestCase.class));
+ suite.addTest(new TestSuite(JBCCacheContextWithFactoryBasicMetaDataUnitTestCase.class));
+ suite.addTest(new TestSuite(LRUCPCacheContextWithFactoryBasicMetaDataUnitTestCase.class));
+ suite.addTest(new TestSuite(TimedCPCacheContextWithFactoryBasicMetaDataUnitTestCase.class));
+
suite.addTest(new TestSuite(CacheParentContextBasicMetaDataUnitTestCase.class));
+ suite.addTest(new TestSuite(JBCCacheParentContextWithFactoryBasicMetaDataUnitTestCase.class));
+ suite.addTest(new TestSuite(LRUCPCacheParentContextWithFactoryBasicMetaDataUnitTestCase.class));
+ suite.addTest(new TestSuite(TimedCPCacheParentContextWithFactoryBasicMetaDataUnitTestCase.class));
+
suite.addTest(new TestSuite(CacheMetaDataContextAnnotationUnitTestCase.class));
+ suite.addTest(new TestSuite(JBCCacheMetaDataContextWithFactoryAnnotationUnitTestCase.class));
+ suite.addTest(new TestSuite(LRUCPCacheMetaDataContextWithFactoryAnnotationUnitTestCase.class));
+ suite.addTest(new TestSuite(TimedCPCacheMetaDataContextWithFactoryAnnotationUnitTestCase.class));
+
suite.addTest(new TestSuite(CacheMetaDataContextMetaDataUnitTestCase.class));
+ suite.addTest(new TestSuite(JBCCacheMetaDataContextWithFactoryMetaDataUnitTestCase.class));
+ suite.addTest(new TestSuite(LRUCPCacheMetaDataContextWithFactoryMetaDataUnitTestCase.class));
+ suite.addTest(new TestSuite(TimedCPCacheMetaDataContextWithFactoryMetaDataUnitTestCase.class));
+
suite.addTest(new TestSuite(SimpleCacheMetaDataContextUnitTestCase.class));
+ suite.addTest(new TestSuite(JBCSimpleCacheMetaDataContextWithFactoryUnitTestCase.class));
+ suite.addTest(new TestSuite(LRUCPSimpleCacheMetaDataContextWithFactoryUnitTestCase.class));
+ suite.addTest(new TestSuite(TimedCPSimpleCacheMetaDataContextWithFactoryUnitTestCase.class));
+
suite.addTest(new TestSuite(SimpleCacheParentMetaDataContextUnitTestCase.class));
-
+ suite.addTest(new TestSuite(JBCSimpleCacheParentMetaDataContextWithFactoryUnitTestCase.class));
+ suite.addTest(new TestSuite(LRUCPSimpleCacheParentMetaDataContextWithFactoryUnitTestCase.class));
+ suite.addTest(new TestSuite(TimedCPSimpleCacheParentMetaDataContextWithFactoryUnitTestCase.class));
+
return suite;
}
}
Copied: projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CacheContextWithFactoryBasicAnnotationsUnitTestCase.java (from rev 72977, projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CacheContextBasicAnnotationsUnitTestCase.java)
===================================================================
--- projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CacheContextWithFactoryBasicAnnotationsUnitTestCase.java (rev 0)
+++ projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CacheContextWithFactoryBasicAnnotationsUnitTestCase.java 2008-07-03 08:59:57 UTC (rev 75335)
@@ -0,0 +1,46 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.metadata.context.cache.test;
+
+import org.jboss.metadata.plugins.context.CachingMetaDataContext;
+import org.jboss.metadata.plugins.cache.CacheFactory;
+import org.jboss.metadata.spi.loader.MetaDataLoader;
+
+/**
+ * CacheContextWithFactoryBasicAnnotationsUnitTestCase.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public abstract class CacheContextWithFactoryBasicAnnotationsUnitTestCase extends CacheContextBasicAnnotationsUnitTestCase
+{
+ public CacheContextWithFactoryBasicAnnotationsUnitTestCase(String name)
+ {
+ super(name);
+ }
+
+ protected CachingMetaDataContext createContext(MetaDataLoader loader)
+ {
+ return new CachingMetaDataContext(null, loader, getFactory());
+ }
+
+ protected abstract CacheFactory getFactory();
+}
\ No newline at end of file
Copied: projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CacheContextWithFactoryBasicMetaDataUnitTestCase.java (from rev 72977, projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CacheContextBasicMetaDataUnitTestCase.java)
===================================================================
--- projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CacheContextWithFactoryBasicMetaDataUnitTestCase.java (rev 0)
+++ projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CacheContextWithFactoryBasicMetaDataUnitTestCase.java 2008-07-03 08:59:57 UTC (rev 75335)
@@ -0,0 +1,46 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.metadata.context.cache.test;
+
+import org.jboss.metadata.plugins.context.CachingMetaDataContext;
+import org.jboss.metadata.plugins.cache.CacheFactory;
+import org.jboss.metadata.spi.loader.MetaDataLoader;
+
+/**
+ * CacheContextWithFactoryBasicMetaDataUnitTestCase.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public abstract class CacheContextWithFactoryBasicMetaDataUnitTestCase extends CacheContextBasicMetaDataUnitTestCase
+{
+ public CacheContextWithFactoryBasicMetaDataUnitTestCase(String name)
+ {
+ super(name);
+ }
+
+ protected CachingMetaDataContext createContext(MetaDataLoader loader)
+ {
+ return new CachingMetaDataContext(null, loader, getFactory());
+ }
+
+ protected abstract CacheFactory getFactory();
+}
\ No newline at end of file
Copied: projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CacheMetaDataContextWithFactoryAnnotationUnitTestCase.java (from rev 72977, projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CacheMetaDataContextAnnotationUnitTestCase.java)
===================================================================
--- projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CacheMetaDataContextWithFactoryAnnotationUnitTestCase.java (rev 0)
+++ projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CacheMetaDataContextWithFactoryAnnotationUnitTestCase.java 2008-07-03 08:59:57 UTC (rev 75335)
@@ -0,0 +1,49 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.metadata.context.cache.test;
+
+import java.util.List;
+
+import org.jboss.metadata.plugins.context.CachingMetaDataContext;
+import org.jboss.metadata.plugins.cache.CacheFactory;
+import org.jboss.metadata.spi.context.MetaDataContext;
+import org.jboss.metadata.spi.retrieval.MetaDataRetrieval;
+
+/**
+ * CacheMetaDataContextWithFactoryAnnotationUnitTestCase.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public abstract class CacheMetaDataContextWithFactoryAnnotationUnitTestCase extends CacheMetaDataContextAnnotationUnitTestCase
+{
+ public CacheMetaDataContextWithFactoryAnnotationUnitTestCase(String name)
+ {
+ super(name);
+ }
+
+ protected MetaDataContext createContext(MetaDataContext parent, List<MetaDataRetrieval> retrievals)
+ {
+ return new CachingMetaDataContext(parent, retrievals, getFactory());
+ }
+
+ protected abstract CacheFactory getFactory();
+}
\ No newline at end of file
Copied: projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CacheMetaDataContextWithFactoryMetaDataUnitTestCase.java (from rev 72977, projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CacheMetaDataContextMetaDataUnitTestCase.java)
===================================================================
--- projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CacheMetaDataContextWithFactoryMetaDataUnitTestCase.java (rev 0)
+++ projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CacheMetaDataContextWithFactoryMetaDataUnitTestCase.java 2008-07-03 08:59:57 UTC (rev 75335)
@@ -0,0 +1,49 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.metadata.context.cache.test;
+
+import java.util.List;
+
+import org.jboss.metadata.plugins.context.CachingMetaDataContext;
+import org.jboss.metadata.plugins.cache.CacheFactory;
+import org.jboss.metadata.spi.context.MetaDataContext;
+import org.jboss.metadata.spi.retrieval.MetaDataRetrieval;
+
+/**
+ * CacheMetaDataContextWithFactoryMetaDataUnitTestCase.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public abstract class CacheMetaDataContextWithFactoryMetaDataUnitTestCase extends CacheMetaDataContextMetaDataUnitTestCase
+{
+ public CacheMetaDataContextWithFactoryMetaDataUnitTestCase(String name)
+ {
+ super(name);
+ }
+
+ protected MetaDataContext createContext(MetaDataContext parent, List<MetaDataRetrieval> retrievals)
+ {
+ return new CachingMetaDataContext(parent, retrievals, getFactory());
+ }
+
+ protected abstract CacheFactory getFactory();
+}
\ No newline at end of file
Modified: projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CacheParentContextBasicAnnotationsUnitTestCase.java
===================================================================
--- projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CacheParentContextBasicAnnotationsUnitTestCase.java 2008-07-03 08:52:35 UTC (rev 75334)
+++ projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CacheParentContextBasicAnnotationsUnitTestCase.java 2008-07-03 08:59:57 UTC (rev 75335)
@@ -46,12 +46,17 @@
protected MetaData setupMetaData(MetaDataLoader loader)
{
- CachingMetaDataContext parent = new CachingMetaDataContext(null, loader);
+ CachingMetaDataContext parent = createContext(loader);
MutableMetaDataLoader empty = createTestMutableMetaDataLoader();
CachingMetaDataContext context = new CachingMetaDataContext(parent, empty);
return new MetaDataRetrievalToMetaDataBridge(context);
}
+ protected CachingMetaDataContext createContext(MetaDataLoader loader)
+ {
+ return new CachingMetaDataContext(null, loader);
+ }
+
protected MetaData setupEmpty()
{
MutableMetaDataLoader loader = createTestMutableMetaDataLoader();
Modified: projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CacheParentContextBasicMetaDataUnitTestCase.java
===================================================================
--- projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CacheParentContextBasicMetaDataUnitTestCase.java 2008-07-03 08:52:35 UTC (rev 75334)
+++ projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CacheParentContextBasicMetaDataUnitTestCase.java 2008-07-03 08:59:57 UTC (rev 75335)
@@ -49,12 +49,22 @@
protected MetaData setupMetaData(MetaDataLoader loader)
{
- CachingMetaDataContext parent = new CachingMetaDataContext(null, loader);
+ CachingMetaDataContext parent = createContext(loader);
MutableMetaDataLoader empty = createTestMutableMetaDataLoader();
- CachingMetaDataContext context = new CachingMetaDataContext(parent, empty);
+ CachingMetaDataContext context = createContext(parent, empty);
return new MetaDataRetrievalToMetaDataBridge(context);
}
+ protected CachingMetaDataContext createContext(CachingMetaDataContext parent, MutableMetaDataLoader empty)
+ {
+ return new CachingMetaDataContext(parent, empty);
+ }
+
+ protected CachingMetaDataContext createContext(MetaDataLoader loader)
+ {
+ return new CachingMetaDataContext(null, loader);
+ }
+
protected MetaData setupEmpty()
{
MutableMetaDataLoader loader = createTestMutableMetaDataLoader();
Copied: projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CacheParentContextWithFactoryBasicAnnotationsUnitTestCase.java (from rev 72977, projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CacheParentContextBasicAnnotationsUnitTestCase.java)
===================================================================
--- projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CacheParentContextWithFactoryBasicAnnotationsUnitTestCase.java (rev 0)
+++ projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CacheParentContextWithFactoryBasicAnnotationsUnitTestCase.java 2008-07-03 08:59:57 UTC (rev 75335)
@@ -0,0 +1,46 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.metadata.context.cache.test;
+
+import org.jboss.metadata.plugins.context.CachingMetaDataContext;
+import org.jboss.metadata.plugins.cache.CacheFactory;
+import org.jboss.metadata.spi.loader.MetaDataLoader;
+
+/**
+ * CacheContextWithFactoryBasicAnnotationsUnitTestCase.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public abstract class CacheParentContextWithFactoryBasicAnnotationsUnitTestCase extends CacheParentContextBasicAnnotationsUnitTestCase
+{
+ public CacheParentContextWithFactoryBasicAnnotationsUnitTestCase(String name)
+ {
+ super(name);
+ }
+
+ protected CachingMetaDataContext createContext(MetaDataLoader loader)
+ {
+ return new CachingMetaDataContext(null, loader, getFactory());
+ }
+
+ protected abstract CacheFactory getFactory();
+}
\ No newline at end of file
Copied: projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CacheParentContextWithFactoryBasicMetaDataUnitTestCase.java (from rev 72977, projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CacheParentContextBasicMetaDataUnitTestCase.java)
===================================================================
--- projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CacheParentContextWithFactoryBasicMetaDataUnitTestCase.java (rev 0)
+++ projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/CacheParentContextWithFactoryBasicMetaDataUnitTestCase.java 2008-07-03 08:59:57 UTC (rev 75335)
@@ -0,0 +1,52 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.metadata.context.cache.test;
+
+import org.jboss.metadata.plugins.cache.CacheFactory;
+import org.jboss.metadata.plugins.context.CachingMetaDataContext;
+import org.jboss.metadata.spi.loader.MetaDataLoader;
+import org.jboss.metadata.spi.loader.MutableMetaDataLoader;
+
+/**
+ * CacheParentContextWithFactoryBasicMetaDataUnitTestCase.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public abstract class CacheParentContextWithFactoryBasicMetaDataUnitTestCase extends CacheParentContextBasicMetaDataUnitTestCase
+{
+ public CacheParentContextWithFactoryBasicMetaDataUnitTestCase(String name)
+ {
+ super(name);
+ }
+
+ protected CachingMetaDataContext createContext(MetaDataLoader loader)
+ {
+ return new CachingMetaDataContext(null, loader, getFactory());
+ }
+
+ protected CachingMetaDataContext createContext(CachingMetaDataContext parent, MutableMetaDataLoader empty)
+ {
+ return new CachingMetaDataContext(parent, empty, getFactory());
+ }
+
+ protected abstract CacheFactory getFactory();
+}
\ No newline at end of file
Added: projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCCacheContextWithFactoryBasicAnnotationsUnitTestCase.java
===================================================================
--- projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCCacheContextWithFactoryBasicAnnotationsUnitTestCase.java (rev 0)
+++ projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCCacheContextWithFactoryBasicAnnotationsUnitTestCase.java 2008-07-03 08:59:57 UTC (rev 75335)
@@ -0,0 +1,43 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.metadata.context.cache.test;
+
+import org.jboss.metadata.plugins.cache.CacheFactory;
+import org.jboss.metadata.plugins.cache.JBossCacheCacheFactory;
+
+/**
+ * JBCCacheContextWithFactoryBasicAnnotationsUnitTestCase.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class JBCCacheContextWithFactoryBasicAnnotationsUnitTestCase extends CacheContextWithFactoryBasicAnnotationsUnitTestCase
+{
+ public JBCCacheContextWithFactoryBasicAnnotationsUnitTestCase(String name)
+ {
+ super(name);
+ }
+
+ protected CacheFactory getFactory()
+ {
+ return new JBossCacheCacheFactory();
+ }
+}
\ No newline at end of file
Added: projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCCacheContextWithFactoryBasicMetaDataUnitTestCase.java
===================================================================
--- projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCCacheContextWithFactoryBasicMetaDataUnitTestCase.java (rev 0)
+++ projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCCacheContextWithFactoryBasicMetaDataUnitTestCase.java 2008-07-03 08:59:57 UTC (rev 75335)
@@ -0,0 +1,50 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.metadata.context.cache.test;
+
+import org.jboss.metadata.plugins.context.CachingMetaDataContext;
+import org.jboss.metadata.plugins.cache.CacheFactory;
+import org.jboss.metadata.plugins.cache.JBossCacheCacheFactory;
+import org.jboss.metadata.spi.loader.MetaDataLoader;
+
+/**
+ * CacheContextWithFactoryBasicMetaDataUnitTestCase.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class JBCCacheContextWithFactoryBasicMetaDataUnitTestCase extends CacheContextWithFactoryBasicMetaDataUnitTestCase
+{
+ public JBCCacheContextWithFactoryBasicMetaDataUnitTestCase(String name)
+ {
+ super(name);
+ }
+
+ protected CachingMetaDataContext createContext(MetaDataLoader loader)
+ {
+ return new CachingMetaDataContext(null, loader, getFactory());
+ }
+
+ protected CacheFactory getFactory()
+ {
+ return new JBossCacheCacheFactory();
+ }
+}
\ No newline at end of file
Added: projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCCacheMetaDataContextWithFactoryAnnotationUnitTestCase.java
===================================================================
--- projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCCacheMetaDataContextWithFactoryAnnotationUnitTestCase.java (rev 0)
+++ projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCCacheMetaDataContextWithFactoryAnnotationUnitTestCase.java 2008-07-03 08:59:57 UTC (rev 75335)
@@ -0,0 +1,43 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.metadata.context.cache.test;
+
+import org.jboss.metadata.plugins.cache.CacheFactory;
+import org.jboss.metadata.plugins.cache.JBossCacheCacheFactory;
+
+/**
+ * JBCCacheMetaDataContextWithFactoryAnnotationUnitTestCase.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class JBCCacheMetaDataContextWithFactoryAnnotationUnitTestCase extends CacheMetaDataContextWithFactoryAnnotationUnitTestCase
+{
+ public JBCCacheMetaDataContextWithFactoryAnnotationUnitTestCase(String name)
+ {
+ super(name);
+ }
+
+ protected CacheFactory getFactory()
+ {
+ return new JBossCacheCacheFactory();
+ }
+}
\ No newline at end of file
Added: projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCCacheMetaDataContextWithFactoryMetaDataUnitTestCase.java
===================================================================
--- projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCCacheMetaDataContextWithFactoryMetaDataUnitTestCase.java (rev 0)
+++ projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCCacheMetaDataContextWithFactoryMetaDataUnitTestCase.java 2008-07-03 08:59:57 UTC (rev 75335)
@@ -0,0 +1,43 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.metadata.context.cache.test;
+
+import org.jboss.metadata.plugins.cache.CacheFactory;
+import org.jboss.metadata.plugins.cache.JBossCacheCacheFactory;
+
+/**
+ * JBCCacheMetaDataContextWithFactoryMetaDataUnitTestCase.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class JBCCacheMetaDataContextWithFactoryMetaDataUnitTestCase extends CacheMetaDataContextWithFactoryMetaDataUnitTestCase
+{
+ public JBCCacheMetaDataContextWithFactoryMetaDataUnitTestCase(String name)
+ {
+ super(name);
+ }
+
+ protected CacheFactory getFactory()
+ {
+ return new JBossCacheCacheFactory();
+ }
+}
\ No newline at end of file
Added: projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCCacheParentContextWithFactoryBasicAnnotationsUnitTestCase.java
===================================================================
--- projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCCacheParentContextWithFactoryBasicAnnotationsUnitTestCase.java (rev 0)
+++ projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCCacheParentContextWithFactoryBasicAnnotationsUnitTestCase.java 2008-07-03 08:59:57 UTC (rev 75335)
@@ -0,0 +1,43 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.metadata.context.cache.test;
+
+import org.jboss.metadata.plugins.cache.CacheFactory;
+import org.jboss.metadata.plugins.cache.JBossCacheCacheFactory;
+
+/**
+ * JBCCacheContextWithFactoryBasicAnnotationsUnitTestCase.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class JBCCacheParentContextWithFactoryBasicAnnotationsUnitTestCase extends CacheParentContextWithFactoryBasicAnnotationsUnitTestCase
+{
+ public JBCCacheParentContextWithFactoryBasicAnnotationsUnitTestCase(String name)
+ {
+ super(name);
+ }
+
+ protected CacheFactory getFactory()
+ {
+ return new JBossCacheCacheFactory();
+ }
+}
\ No newline at end of file
Added: projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCCacheParentContextWithFactoryBasicMetaDataUnitTestCase.java
===================================================================
--- projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCCacheParentContextWithFactoryBasicMetaDataUnitTestCase.java (rev 0)
+++ projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCCacheParentContextWithFactoryBasicMetaDataUnitTestCase.java 2008-07-03 08:59:57 UTC (rev 75335)
@@ -0,0 +1,43 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.metadata.context.cache.test;
+
+import org.jboss.metadata.plugins.cache.CacheFactory;
+import org.jboss.metadata.plugins.cache.JBossCacheCacheFactory;
+
+/**
+ * JBCCacheParentContextWithFactoryBasicMetaDataUnitTestCase.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class JBCCacheParentContextWithFactoryBasicMetaDataUnitTestCase extends CacheParentContextWithFactoryBasicMetaDataUnitTestCase
+{
+ public JBCCacheParentContextWithFactoryBasicMetaDataUnitTestCase(String name)
+ {
+ super(name);
+ }
+
+ protected CacheFactory getFactory()
+ {
+ return new JBossCacheCacheFactory();
+ }
+}
\ No newline at end of file
Added: projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCSimpleCacheMetaDataContextWithFactoryUnitTestCase.java
===================================================================
--- projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCSimpleCacheMetaDataContextWithFactoryUnitTestCase.java (rev 0)
+++ projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCSimpleCacheMetaDataContextWithFactoryUnitTestCase.java 2008-07-03 08:59:57 UTC (rev 75335)
@@ -0,0 +1,43 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.metadata.context.cache.test;
+
+import org.jboss.metadata.plugins.cache.CacheFactory;
+import org.jboss.metadata.plugins.cache.JBossCacheCacheFactory;
+
+/**
+ * JBCSimpleCacheMetaDataContextWithFactoryUnitTestCase.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class JBCSimpleCacheMetaDataContextWithFactoryUnitTestCase extends SimpleCacheMetaDataContextWithFactoryUnitTestCase
+{
+ public JBCSimpleCacheMetaDataContextWithFactoryUnitTestCase(String name)
+ {
+ super(name);
+ }
+
+ protected CacheFactory getFactory()
+ {
+ return new JBossCacheCacheFactory();
+ }
+}
\ No newline at end of file
Added: projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCSimpleCacheParentMetaDataContextWithFactoryUnitTestCase.java
===================================================================
--- projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCSimpleCacheParentMetaDataContextWithFactoryUnitTestCase.java (rev 0)
+++ projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/JBCSimpleCacheParentMetaDataContextWithFactoryUnitTestCase.java 2008-07-03 08:59:57 UTC (rev 75335)
@@ -0,0 +1,43 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.metadata.context.cache.test;
+
+import org.jboss.metadata.plugins.cache.CacheFactory;
+import org.jboss.metadata.plugins.cache.JBossCacheCacheFactory;
+
+/**
+ * JBCSimpleCacheMetaDataContextWithFactoryUnitTestCase.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class JBCSimpleCacheParentMetaDataContextWithFactoryUnitTestCase extends SimpleCacheParentMetaDataContextWithFactoryUnitTestCase
+{
+ public JBCSimpleCacheParentMetaDataContextWithFactoryUnitTestCase(String name)
+ {
+ super(name);
+ }
+
+ protected CacheFactory getFactory()
+ {
+ return new JBossCacheCacheFactory();
+ }
+}
\ No newline at end of file
Added: projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/LRUCPCacheContextWithFactoryBasicAnnotationsUnitTestCase.java
===================================================================
--- projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/LRUCPCacheContextWithFactoryBasicAnnotationsUnitTestCase.java (rev 0)
+++ projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/LRUCPCacheContextWithFactoryBasicAnnotationsUnitTestCase.java 2008-07-03 08:59:57 UTC (rev 75335)
@@ -0,0 +1,43 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.metadata.context.cache.test;
+
+import org.jboss.metadata.plugins.cache.CachePolicyFactory;
+import org.jboss.metadata.plugins.cache.LRUCachePolicyFactory;
+
+/**
+ * JBCCacheContextWithFactoryBasicAnnotationsUnitTestCase.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class LRUCPCacheContextWithFactoryBasicAnnotationsUnitTestCase extends CPCacheContextWithFactoryBasicAnnotationsUnitTestCase
+{
+ public LRUCPCacheContextWithFactoryBasicAnnotationsUnitTestCase(String name)
+ {
+ super(name);
+ }
+
+ protected CachePolicyFactory getPolicy()
+ {
+ return new LRUCachePolicyFactory(2, 10);
+ }
+}
\ No newline at end of file
Added: projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/LRUCPCacheContextWithFactoryBasicMetaDataUnitTestCase.java
===================================================================
--- projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/LRUCPCacheContextWithFactoryBasicMetaDataUnitTestCase.java (rev 0)
+++ projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/LRUCPCacheContextWithFactoryBasicMetaDataUnitTestCase.java 2008-07-03 08:59:57 UTC (rev 75335)
@@ -0,0 +1,43 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.metadata.context.cache.test;
+
+import org.jboss.metadata.plugins.cache.CachePolicyFactory;
+import org.jboss.metadata.plugins.cache.LRUCachePolicyFactory;
+
+/**
+ * CacheContextWithFactoryBasicMetaDataUnitTestCase.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class LRUCPCacheContextWithFactoryBasicMetaDataUnitTestCase extends CPCacheContextWithFactoryBasicMetaDataUnitTestCase
+{
+ public LRUCPCacheContextWithFactoryBasicMetaDataUnitTestCase(String name)
+ {
+ super(name);
+ }
+
+ protected CachePolicyFactory getPolicy()
+ {
+ return new LRUCachePolicyFactory(2, 10);
+ }
+}
\ No newline at end of file
Added: projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/LRUCPCacheMetaDataContextWithFactoryAnnotationUnitTestCase.java
===================================================================
--- projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/LRUCPCacheMetaDataContextWithFactoryAnnotationUnitTestCase.java (rev 0)
+++ projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/LRUCPCacheMetaDataContextWithFactoryAnnotationUnitTestCase.java 2008-07-03 08:59:57 UTC (rev 75335)
@@ -0,0 +1,43 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.metadata.context.cache.test;
+
+import org.jboss.metadata.plugins.cache.CachePolicyFactory;
+import org.jboss.metadata.plugins.cache.LRUCachePolicyFactory;
+
+/**
+ * LRUCPCacheMetaDataContextWithFactoryAnnotationUnitTestCase.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class LRUCPCacheMetaDataContextWithFactoryAnnotationUnitTestCase extends CPCacheMetaDataContextWithFactoryAnnotationUnitTestCase
+{
+ public LRUCPCacheMetaDataContextWithFactoryAnnotationUnitTestCase(String name)
+ {
+ super(name);
+ }
+
+ protected CachePolicyFactory getPolicy()
+ {
+ return new LRUCachePolicyFactory(2, 10);
+ }
+}
\ No newline at end of file
Added: projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/LRUCPCacheMetaDataContextWithFactoryMetaDataUnitTestCase.java
===================================================================
--- projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/LRUCPCacheMetaDataContextWithFactoryMetaDataUnitTestCase.java (rev 0)
+++ projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/LRUCPCacheMetaDataContextWithFactoryMetaDataUnitTestCase.java 2008-07-03 08:59:57 UTC (rev 75335)
@@ -0,0 +1,43 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.metadata.context.cache.test;
+
+import org.jboss.metadata.plugins.cache.CachePolicyFactory;
+import org.jboss.metadata.plugins.cache.LRUCachePolicyFactory;
+
+/**
+ * CPCacheMetaDataContextWithFactoryMetaDataUnitTestCase.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class LRUCPCacheMetaDataContextWithFactoryMetaDataUnitTestCase extends CPCacheMetaDataContextWithFactoryMetaDataUnitTestCase
+{
+ public LRUCPCacheMetaDataContextWithFactoryMetaDataUnitTestCase(String name)
+ {
+ super(name);
+ }
+
+ protected CachePolicyFactory getPolicy()
+ {
+ return new LRUCachePolicyFactory(2, 10);
+ }
+}
\ No newline at end of file
Added: projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/LRUCPCacheParentContextWithFactoryBasicAnnotationsUnitTestCase.java
===================================================================
--- projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/LRUCPCacheParentContextWithFactoryBasicAnnotationsUnitTestCase.java (rev 0)
+++ projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/LRUCPCacheParentContextWithFactoryBasicAnnotationsUnitTestCase.java 2008-07-03 08:59:57 UTC (rev 75335)
@@ -0,0 +1,43 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.metadata.context.cache.test;
+
+import org.jboss.metadata.plugins.cache.CachePolicyFactory;
+import org.jboss.metadata.plugins.cache.LRUCachePolicyFactory;
+
+/**
+ * LRUCPCacheContextWithFactoryBasicAnnotationsUnitTestCase.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class LRUCPCacheParentContextWithFactoryBasicAnnotationsUnitTestCase extends CPCacheParentContextWithFactoryBasicAnnotationsUnitTestCase
+{
+ public LRUCPCacheParentContextWithFactoryBasicAnnotationsUnitTestCase(String name)
+ {
+ super(name);
+ }
+
+ protected CachePolicyFactory getPolicy()
+ {
+ return new LRUCachePolicyFactory(2, 10);
+ }
+}
\ No newline at end of file
Added: projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/LRUCPCacheParentContextWithFactoryBasicMetaDataUnitTestCase.java
===================================================================
--- projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/LRUCPCacheParentContextWithFactoryBasicMetaDataUnitTestCase.java (rev 0)
+++ projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/LRUCPCacheParentContextWithFactoryBasicMetaDataUnitTestCase.java 2008-07-03 08:59:57 UTC (rev 75335)
@@ -0,0 +1,43 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.metadata.context.cache.test;
+
+import org.jboss.metadata.plugins.cache.CachePolicyFactory;
+import org.jboss.metadata.plugins.cache.LRUCachePolicyFactory;
+
+/**
+ * CPCacheParentContextWithFactoryBasicMetaDataUnitTestCase.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class LRUCPCacheParentContextWithFactoryBasicMetaDataUnitTestCase extends CPCacheParentContextWithFactoryBasicMetaDataUnitTestCase
+{
+ public LRUCPCacheParentContextWithFactoryBasicMetaDataUnitTestCase(String name)
+ {
+ super(name);
+ }
+
+ protected CachePolicyFactory getPolicy()
+ {
+ return new LRUCachePolicyFactory(2, 10);
+ }
+}
\ No newline at end of file
Added: projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/LRUCPSimpleCacheMetaDataContextWithFactoryUnitTestCase.java
===================================================================
--- projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/LRUCPSimpleCacheMetaDataContextWithFactoryUnitTestCase.java (rev 0)
+++ projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/LRUCPSimpleCacheMetaDataContextWithFactoryUnitTestCase.java 2008-07-03 08:59:57 UTC (rev 75335)
@@ -0,0 +1,43 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.metadata.context.cache.test;
+
+import org.jboss.metadata.plugins.cache.CachePolicyFactory;
+import org.jboss.metadata.plugins.cache.LRUCachePolicyFactory;
+
+/**
+ * CPSimpleCacheMetaDataContextWithFactoryUnitTestCase.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class LRUCPSimpleCacheMetaDataContextWithFactoryUnitTestCase extends CPSimpleCacheMetaDataContextWithFactoryUnitTestCase
+{
+ public LRUCPSimpleCacheMetaDataContextWithFactoryUnitTestCase(String name)
+ {
+ super(name);
+ }
+
+ protected CachePolicyFactory getPolicy()
+ {
+ return new LRUCachePolicyFactory(2, 10);
+ }
+}
\ No newline at end of file
Added: projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/LRUCPSimpleCacheParentMetaDataContextWithFactoryUnitTestCase.java
===================================================================
--- projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/LRUCPSimpleCacheParentMetaDataContextWithFactoryUnitTestCase.java (rev 0)
+++ projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/LRUCPSimpleCacheParentMetaDataContextWithFactoryUnitTestCase.java 2008-07-03 08:59:57 UTC (rev 75335)
@@ -0,0 +1,43 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.metadata.context.cache.test;
+
+import org.jboss.metadata.plugins.cache.CachePolicyFactory;
+import org.jboss.metadata.plugins.cache.LRUCachePolicyFactory;
+
+/**
+ * LRUCPSimpleCacheMetaDataContextWithFactoryUnitTestCase.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class LRUCPSimpleCacheParentMetaDataContextWithFactoryUnitTestCase extends CPSimpleCacheParentMetaDataContextWithFactoryUnitTestCase
+{
+ public LRUCPSimpleCacheParentMetaDataContextWithFactoryUnitTestCase(String name)
+ {
+ super(name);
+ }
+
+ protected CachePolicyFactory getPolicy()
+ {
+ return new LRUCachePolicyFactory(2, 10);
+ }
+}
\ No newline at end of file
Copied: projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/SimpleCacheMetaDataContextWithFactoryUnitTestCase.java (from rev 72977, projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/SimpleCacheMetaDataContextUnitTestCase.java)
===================================================================
--- projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/SimpleCacheMetaDataContextWithFactoryUnitTestCase.java (rev 0)
+++ projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/SimpleCacheMetaDataContextWithFactoryUnitTestCase.java 2008-07-03 08:59:57 UTC (rev 75335)
@@ -0,0 +1,49 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.metadata.context.cache.test;
+
+import java.util.List;
+
+import org.jboss.metadata.plugins.context.CachingMetaDataContext;
+import org.jboss.metadata.plugins.cache.CacheFactory;
+import org.jboss.metadata.spi.context.MetaDataContext;
+import org.jboss.metadata.spi.retrieval.MetaDataRetrieval;
+
+/**
+ * SimpleCacheMetaDataContextWithFactoryUnitTestCase.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public abstract class SimpleCacheMetaDataContextWithFactoryUnitTestCase extends SimpleCacheMetaDataContextUnitTestCase
+{
+ public SimpleCacheMetaDataContextWithFactoryUnitTestCase(String name)
+ {
+ super(name);
+ }
+
+ protected MetaDataContext createContext(MetaDataContext parent, List<MetaDataRetrieval> retrievals)
+ {
+ return new CachingMetaDataContext(parent, retrievals, getFactory());
+ }
+
+ protected abstract CacheFactory getFactory();
+}
\ No newline at end of file
Copied: projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/SimpleCacheParentMetaDataContextWithFactoryUnitTestCase.java (from rev 72977, projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/SimpleCacheParentMetaDataContextUnitTestCase.java)
===================================================================
--- projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/SimpleCacheParentMetaDataContextWithFactoryUnitTestCase.java (rev 0)
+++ projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/SimpleCacheParentMetaDataContextWithFactoryUnitTestCase.java 2008-07-03 08:59:57 UTC (rev 75335)
@@ -0,0 +1,49 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.metadata.context.cache.test;
+
+import java.util.List;
+
+import org.jboss.metadata.plugins.context.CachingMetaDataContext;
+import org.jboss.metadata.plugins.cache.CacheFactory;
+import org.jboss.metadata.spi.context.MetaDataContext;
+import org.jboss.metadata.spi.retrieval.MetaDataRetrieval;
+
+/**
+ * SimpleCacheMetaDataContextWithFactoryUnitTestCase.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public abstract class SimpleCacheParentMetaDataContextWithFactoryUnitTestCase extends SimpleCacheParentMetaDataContextUnitTestCase
+{
+ public SimpleCacheParentMetaDataContextWithFactoryUnitTestCase(String name)
+ {
+ super(name);
+ }
+
+ protected MetaDataContext createContext(MetaDataContext parent, List<MetaDataRetrieval> retrievals)
+ {
+ return new CachingMetaDataContext(parent, retrievals, getFactory());
+ }
+
+ protected abstract CacheFactory getFactory();
+}
\ No newline at end of file
Added: projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/TimedCPCacheContextWithFactoryBasicAnnotationsUnitTestCase.java
===================================================================
--- projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/TimedCPCacheContextWithFactoryBasicAnnotationsUnitTestCase.java (rev 0)
+++ projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/TimedCPCacheContextWithFactoryBasicAnnotationsUnitTestCase.java 2008-07-03 08:59:57 UTC (rev 75335)
@@ -0,0 +1,43 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.metadata.context.cache.test;
+
+import org.jboss.metadata.plugins.cache.CachePolicyFactory;
+import org.jboss.metadata.plugins.cache.TimedCachePolicyFactory;
+
+/**
+ * JBCCacheContextWithFactoryBasicAnnotationsUnitTestCase.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class TimedCPCacheContextWithFactoryBasicAnnotationsUnitTestCase extends CPCacheContextWithFactoryBasicAnnotationsUnitTestCase
+{
+ public TimedCPCacheContextWithFactoryBasicAnnotationsUnitTestCase(String name)
+ {
+ super(name);
+ }
+
+ protected CachePolicyFactory getPolicy()
+ {
+ return new TimedCachePolicyFactory(500);
+ }
+}
\ No newline at end of file
Added: projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/TimedCPCacheContextWithFactoryBasicMetaDataUnitTestCase.java
===================================================================
--- projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/TimedCPCacheContextWithFactoryBasicMetaDataUnitTestCase.java (rev 0)
+++ projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/TimedCPCacheContextWithFactoryBasicMetaDataUnitTestCase.java 2008-07-03 08:59:57 UTC (rev 75335)
@@ -0,0 +1,43 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.metadata.context.cache.test;
+
+import org.jboss.metadata.plugins.cache.CachePolicyFactory;
+import org.jboss.metadata.plugins.cache.TimedCachePolicyFactory;
+
+/**
+ * CacheContextWithFactoryBasicMetaDataUnitTestCase.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class TimedCPCacheContextWithFactoryBasicMetaDataUnitTestCase extends CPCacheContextWithFactoryBasicMetaDataUnitTestCase
+{
+ public TimedCPCacheContextWithFactoryBasicMetaDataUnitTestCase(String name)
+ {
+ super(name);
+ }
+
+ protected CachePolicyFactory getPolicy()
+ {
+ return new TimedCachePolicyFactory(500);
+ }
+}
\ No newline at end of file
Added: projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/TimedCPCacheMetaDataContextWithFactoryAnnotationUnitTestCase.java
===================================================================
--- projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/TimedCPCacheMetaDataContextWithFactoryAnnotationUnitTestCase.java (rev 0)
+++ projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/TimedCPCacheMetaDataContextWithFactoryAnnotationUnitTestCase.java 2008-07-03 08:59:57 UTC (rev 75335)
@@ -0,0 +1,43 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.metadata.context.cache.test;
+
+import org.jboss.metadata.plugins.cache.CachePolicyFactory;
+import org.jboss.metadata.plugins.cache.TimedCachePolicyFactory;
+
+/**
+ * TimedCPCacheMetaDataContextWithFactoryAnnotationUnitTestCase.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class TimedCPCacheMetaDataContextWithFactoryAnnotationUnitTestCase extends CPCacheMetaDataContextWithFactoryAnnotationUnitTestCase
+{
+ public TimedCPCacheMetaDataContextWithFactoryAnnotationUnitTestCase(String name)
+ {
+ super(name);
+ }
+
+ protected CachePolicyFactory getPolicy()
+ {
+ return new TimedCachePolicyFactory(500);
+ }
+}
\ No newline at end of file
Added: projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/TimedCPCacheMetaDataContextWithFactoryMetaDataUnitTestCase.java
===================================================================
--- projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/TimedCPCacheMetaDataContextWithFactoryMetaDataUnitTestCase.java (rev 0)
+++ projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/TimedCPCacheMetaDataContextWithFactoryMetaDataUnitTestCase.java 2008-07-03 08:59:57 UTC (rev 75335)
@@ -0,0 +1,43 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.metadata.context.cache.test;
+
+import org.jboss.metadata.plugins.cache.CachePolicyFactory;
+import org.jboss.metadata.plugins.cache.TimedCachePolicyFactory;
+
+/**
+ * CPCacheMetaDataContextWithFactoryMetaDataUnitTestCase.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class TimedCPCacheMetaDataContextWithFactoryMetaDataUnitTestCase extends CPCacheMetaDataContextWithFactoryMetaDataUnitTestCase
+{
+ public TimedCPCacheMetaDataContextWithFactoryMetaDataUnitTestCase(String name)
+ {
+ super(name);
+ }
+
+ protected CachePolicyFactory getPolicy()
+ {
+ return new TimedCachePolicyFactory(500);
+ }
+}
\ No newline at end of file
Added: projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/TimedCPCacheParentContextWithFactoryBasicAnnotationsUnitTestCase.java
===================================================================
--- projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/TimedCPCacheParentContextWithFactoryBasicAnnotationsUnitTestCase.java (rev 0)
+++ projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/TimedCPCacheParentContextWithFactoryBasicAnnotationsUnitTestCase.java 2008-07-03 08:59:57 UTC (rev 75335)
@@ -0,0 +1,43 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.metadata.context.cache.test;
+
+import org.jboss.metadata.plugins.cache.CachePolicyFactory;
+import org.jboss.metadata.plugins.cache.TimedCachePolicyFactory;
+
+/**
+ * LRUCPCacheContextWithFactoryBasicAnnotationsUnitTestCase.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class TimedCPCacheParentContextWithFactoryBasicAnnotationsUnitTestCase extends CPCacheParentContextWithFactoryBasicAnnotationsUnitTestCase
+{
+ public TimedCPCacheParentContextWithFactoryBasicAnnotationsUnitTestCase(String name)
+ {
+ super(name);
+ }
+
+ protected CachePolicyFactory getPolicy()
+ {
+ return new TimedCachePolicyFactory(500);
+ }
+}
\ No newline at end of file
Added: projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/TimedCPCacheParentContextWithFactoryBasicMetaDataUnitTestCase.java
===================================================================
--- projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/TimedCPCacheParentContextWithFactoryBasicMetaDataUnitTestCase.java (rev 0)
+++ projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/TimedCPCacheParentContextWithFactoryBasicMetaDataUnitTestCase.java 2008-07-03 08:59:57 UTC (rev 75335)
@@ -0,0 +1,43 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.metadata.context.cache.test;
+
+import org.jboss.metadata.plugins.cache.CachePolicyFactory;
+import org.jboss.metadata.plugins.cache.TimedCachePolicyFactory;
+
+/**
+ * CPCacheParentContextWithFactoryBasicMetaDataUnitTestCase.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class TimedCPCacheParentContextWithFactoryBasicMetaDataUnitTestCase extends CPCacheParentContextWithFactoryBasicMetaDataUnitTestCase
+{
+ public TimedCPCacheParentContextWithFactoryBasicMetaDataUnitTestCase(String name)
+ {
+ super(name);
+ }
+
+ protected CachePolicyFactory getPolicy()
+ {
+ return new TimedCachePolicyFactory(500);
+ }
+}
\ No newline at end of file
Added: projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/TimedCPSimpleCacheMetaDataContextWithFactoryUnitTestCase.java
===================================================================
--- projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/TimedCPSimpleCacheMetaDataContextWithFactoryUnitTestCase.java (rev 0)
+++ projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/TimedCPSimpleCacheMetaDataContextWithFactoryUnitTestCase.java 2008-07-03 08:59:57 UTC (rev 75335)
@@ -0,0 +1,43 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.metadata.context.cache.test;
+
+import org.jboss.metadata.plugins.cache.CachePolicyFactory;
+import org.jboss.metadata.plugins.cache.TimedCachePolicyFactory;
+
+/**
+ * CPSimpleCacheMetaDataContextWithFactoryUnitTestCase.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class TimedCPSimpleCacheMetaDataContextWithFactoryUnitTestCase extends CPSimpleCacheMetaDataContextWithFactoryUnitTestCase
+{
+ public TimedCPSimpleCacheMetaDataContextWithFactoryUnitTestCase(String name)
+ {
+ super(name);
+ }
+
+ protected CachePolicyFactory getPolicy()
+ {
+ return new TimedCachePolicyFactory(500);
+ }
+}
\ No newline at end of file
Added: projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/TimedCPSimpleCacheParentMetaDataContextWithFactoryUnitTestCase.java
===================================================================
--- projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/TimedCPSimpleCacheParentMetaDataContextWithFactoryUnitTestCase.java (rev 0)
+++ projects/jboss-mdr/trunk/src/tests/org/jboss/test/metadata/context/cache/test/TimedCPSimpleCacheParentMetaDataContextWithFactoryUnitTestCase.java 2008-07-03 08:59:57 UTC (rev 75335)
@@ -0,0 +1,43 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.test.metadata.context.cache.test;
+
+import org.jboss.metadata.plugins.cache.CachePolicyFactory;
+import org.jboss.metadata.plugins.cache.TimedCachePolicyFactory;
+
+/**
+ * TimedCPSimpleCacheMetaDataContextWithFactoryUnitTestCase.
+ *
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
+ */
+public class TimedCPSimpleCacheParentMetaDataContextWithFactoryUnitTestCase extends CPSimpleCacheParentMetaDataContextWithFactoryUnitTestCase
+{
+ public TimedCPSimpleCacheParentMetaDataContextWithFactoryUnitTestCase(String name)
+ {
+ super(name);
+ }
+
+ protected CachePolicyFactory getPolicy()
+ {
+ return new TimedCachePolicyFactory(500);
+ }
+}
\ No newline at end of file
More information about the jboss-cvs-commits
mailing list