org.exoplatform.jcr.benchmark.registryservice
Class AbstractRegistryServiceTest

java.lang.Object
  extended by org.exoplatform.jcr.benchmark.JCRTestBase
      extended by org.exoplatform.jcr.benchmark.registryservice.AbstractRegistryServiceTest
Direct Known Subclasses:
CreateEntry, GetEntry, GetRegistry, InitRegistryEntry, RecreateEntry, RemoveEntry

public abstract class AbstractRegistryServiceTest
extends JCRTestBase

Created by The eXo Platform SAS
It's abstract test for RegistryService testings. This class provides basic preparations, such as acquiring RegistryService and some additional instances.

Version:
$Id:$
Author:
Nikolay Zamosenchuk

Field Summary
protected  org.exoplatform.container.StandaloneContainer container
           
protected static java.lang.String GENERIC_ENTRY
           
protected  RegistryService registryService
           
protected  SessionProvider sessionProvider
           
protected  int sumIterations
           
 
Fields inherited from class org.exoplatform.jcr.benchmark.JCRTestBase
log
 
Constructor Summary
AbstractRegistryServiceTest()
           
 
Method Summary
 void addUser(java.lang.String name)
          Adds name to internal list of names.
protected  void createContent(com.sun.japex.TestCase tc, JCRTestContext context)
          Creates content in registry on doPrepare() phase.
 void doFinish(com.sun.japex.TestCase tc, JCRTestContext context)
           
 void doPrepare(com.sun.japex.TestCase tc, JCRTestContext context)
           
 java.lang.String nextUser()
           
 
Methods inherited from class org.exoplatform.jcr.benchmark.JCRTestBase
doRun
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

container

protected org.exoplatform.container.StandaloneContainer container

registryService

protected RegistryService registryService

sessionProvider

protected SessionProvider sessionProvider

sumIterations

protected int sumIterations

GENERIC_ENTRY

protected static final java.lang.String GENERIC_ENTRY
See Also:
Constant Field Values
Constructor Detail

AbstractRegistryServiceTest

public AbstractRegistryServiceTest()
Method Detail

doPrepare

public void doPrepare(com.sun.japex.TestCase tc,
                      JCRTestContext context)
               throws java.lang.Exception
Overrides:
doPrepare in class JCRTestBase
Throws:
java.lang.Exception

createContent

protected void createContent(com.sun.japex.TestCase tc,
                             JCRTestContext context)
                      throws java.lang.Exception
Creates content in registry on doPrepare() phase. Used for read, update, delete tests.

Parameters:
tc -
context -
Throws:
java.lang.Exception

nextUser

public java.lang.String nextUser()
Returns:
next saved name in internal list.

addUser

public void addUser(java.lang.String name)
Adds name to internal list of names. Can later be accessed by nextUser(). *

Parameters:
name -

doFinish

public void doFinish(com.sun.japex.TestCase tc,
                     JCRTestContext context)
              throws java.lang.Exception
Overrides:
doFinish in class JCRTestBase
Throws:
java.lang.Exception


Copyright © 2010 eXo Platform SAS. All Rights Reserved.