org.rhq.plugins.augeas.test
Class AbstractAugeasConfigurationComponentTest

java.lang.Object
  extended by org.rhq.plugins.augeas.test.AbstractAugeasConfigurationComponentTest

public abstract class AbstractAugeasConfigurationComponentTest
extends java.lang.Object

A base class for integration tests for instances of AugeasConfigurationComponent.

Author:
Ian Springer

Field Summary
protected static java.io.File AUGEAS_ROOT
           
protected static boolean IS_WINDOWS
           
static java.lang.String TEST_GROUP
           
 
Constructor Summary
AbstractAugeasConfigurationComponentTest()
           
 
Method Summary
protected  PluginContainerConfiguration createPluginContainerConfiguration()
           
protected abstract  Configuration getExpectedResourceConfig()
           
protected abstract  java.lang.String getPluginName()
           
protected  Resource getResource()
           
protected  ResourceType getResourceType()
           
protected static ResourceType getResourceType(java.lang.String resourceTypeName, java.lang.String pluginName)
           
protected abstract  java.lang.String getResourceTypeName()
           
protected abstract  Configuration getUpdatedResourceConfig()
           
protected  boolean isResourceConfigSupported()
           
 void resetConfigFiles()
           
protected  void resetConfigFiles(Configuration pluginConfig)
           
 void start()
           
 void stop()
           
 void testResourceConfigLoad()
           
 void testResourceConfigUpdate()
           
protected  void tweakDefaultPluginConfig(Configuration defaultPluginConfig)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEST_GROUP

public static final java.lang.String TEST_GROUP
See Also:
Constant Field Values

IS_WINDOWS

protected static final boolean IS_WINDOWS

AUGEAS_ROOT

protected static final java.io.File AUGEAS_ROOT
Constructor Detail

AbstractAugeasConfigurationComponentTest

public AbstractAugeasConfigurationComponentTest()
Method Detail

start

public void start()

resetConfigFiles

public void resetConfigFiles()
                      throws java.io.IOException
Throws:
java.io.IOException

testResourceConfigLoad

public void testResourceConfigLoad()
                            throws java.lang.Exception
Throws:
java.lang.Exception

testResourceConfigUpdate

public void testResourceConfigUpdate()
                              throws java.lang.Exception
Throws:
java.lang.Exception

stop

public void stop()

getPluginName

protected abstract java.lang.String getPluginName()

getResourceTypeName

protected abstract java.lang.String getResourceTypeName()

getExpectedResourceConfig

protected abstract Configuration getExpectedResourceConfig()

getUpdatedResourceConfig

protected abstract Configuration getUpdatedResourceConfig()

createPluginContainerConfiguration

protected PluginContainerConfiguration createPluginContainerConfiguration()
                                                                   throws java.io.IOException
Throws:
java.io.IOException

getResourceType

protected static ResourceType getResourceType(java.lang.String resourceTypeName,
                                              java.lang.String pluginName)

getResourceType

protected final ResourceType getResourceType()

getResource

protected Resource getResource()

resetConfigFiles

protected void resetConfigFiles(Configuration pluginConfig)
                         throws java.io.IOException
Throws:
java.io.IOException

isResourceConfigSupported

protected boolean isResourceConfigSupported()

tweakDefaultPluginConfig

protected void tweakDefaultPluginConfig(Configuration defaultPluginConfig)


Copyright © 2008-2009 Red Hat, Inc.. All Rights Reserved.