org.apache.jackrabbit.tck
Class WebAppTestConfig

java.lang.Object
  extended byorg.apache.jackrabbit.tck.WebAppTestConfig

public class WebAppTestConfig
extends java.lang.Object

The WebAppTestConfig class reads and saves the config in the tck web app specific way.


Field Summary
static java.lang.String[] propNames
          default property names
 
Constructor Summary
WebAppTestConfig()
           
 
Method Summary
static java.util.Map getConfig()
          Reads the config entries from the repository
static java.util.Map getCurrentConfig()
          Returns the current configuration
static java.util.Map getOriConfig()
          Reads the original config from the property file.
static java.util.Map getTestCaseSpecificConfigs(junit.framework.TestSuite suite)
          Returns all test case specific configuration entries
static void resetConfiguration()
          Removes the custom config entries
static void save(javax.servlet.http.HttpServletRequest request, javax.jcr.Session repSession)
          Saves the configuration entries which needs to be set.
static void saveProperty(java.lang.String propName, java.lang.String propValue, javax.jcr.Session repSession)
          This method saves a single property
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

propNames

public static final java.lang.String[] propNames
default property names

Constructor Detail

WebAppTestConfig

public WebAppTestConfig()
Method Detail

getConfig

public static java.util.Map getConfig()
Reads the config entries from the repository

Returns:
test config

getOriConfig

public static java.util.Map getOriConfig()
Reads the original config from the property file.

Returns:
original read only config

save

public static void save(javax.servlet.http.HttpServletRequest request,
                        javax.jcr.Session repSession)
                 throws javax.jcr.RepositoryException
Saves the configuration entries which needs to be set.

Parameters:
request - request with config changes
repSession - Session used to write config
Throws:
javax.jcr.RepositoryException

saveProperty

public static void saveProperty(java.lang.String propName,
                                java.lang.String propValue,
                                javax.jcr.Session repSession)
                         throws javax.jcr.RepositoryException
This method saves a single property

Parameters:
propName - property name
propValue - property value
repSession - session
Throws:
javax.jcr.RepositoryException

getTestCaseSpecificConfigs

public static java.util.Map getTestCaseSpecificConfigs(junit.framework.TestSuite suite)
Returns all test case specific configuration entries

Parameters:
suite - test suite
Returns:
all test case specific conf entries

getCurrentConfig

public static java.util.Map getCurrentConfig()
Returns the current configuration

Returns:

resetConfiguration

public static void resetConfiguration()
                               throws javax.jcr.RepositoryException
Removes the custom config entries

Throws:
javax.jcr.RepositoryException


Copyright © -2005 . All Rights Reserved.