[jboss-jira] [JBoss JIRA] Closed: (JBREFLECT-101) Replace Cached tests by duplicate run of ClassPoolTestCase with cache enabled

Flavia Rainone (JIRA) jira-events at lists.jboss.org
Fri Mar 5 07:29:10 EST 2010


     [ https://jira.jboss.org/jira/browse/JBREFLECT-101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Flavia Rainone closed JBREFLECT-101.
------------------------------------

    Resolution: Done


> Replace Cached tests by duplicate run of ClassPoolTestCase with cache enabled
> -----------------------------------------------------------------------------
>
>                 Key: JBREFLECT-101
>                 URL: https://jira.jboss.org/jira/browse/JBREFLECT-101
>             Project: JBoss Reflection
>          Issue Type: Task
>          Components: Class Pool
>    Affects Versions: JBossReflection.2.2.0-Alpha3
>            Reporter: Flavia Rainone
>            Assignee: Flavia Rainone
>             Fix For:  JBossReflection.2.2.0-Alpha4
>
>
> All Cached test classes simply inherit a test class and sets the "org.jboss.classpool.policy" system property  value to "org.jboss.util.TimedCachePolicy".
> Below is an example of such test class:
> public class CachedArchiveClassPoolTestCase extends ArchiveClassPoolTestCase
> {
> 	   public CachedArchiveClassPoolTestCase(String name)
> 	   {
>  	      super(name);
>  	   }
>  	
>           @Override
>  	   protected void setUp() throws Exception
>  	   {
>  	      super.setUp();
>  	      System.setProperty(CtClassCacheFactory.POLICY_CLASS, TimedCachePolicy.class.getName());
>  	   }
> }
> These classes should be replaced by a second run of the extended ClassPoolTestCases with the system property configured as described.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list