org.rhq.plugins.augeas.test
Class AbstractAugeasConfigurationComponentTest

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

public abstract class AbstractAugeasConfigurationComponentTest
extends Object

A base class for integration tests for instances of AugeasConfigurationComponent.

Author:
Ian Springer

Field Summary
protected static File AUGEAS_ROOT
           
protected static boolean IS_WINDOWS
           
static String TEST_GROUP
           
 
Constructor Summary
AbstractAugeasConfigurationComponentTest()
           
 
Method Summary
protected  PluginContainerConfiguration createPluginContainerConfiguration()
           
protected abstract  org.rhq.core.domain.configuration.Configuration getExpectedResourceConfig()
           
protected abstract  String getPluginName()
           
protected  Set<org.rhq.core.domain.resource.Resource> getResources()
           
protected  org.rhq.core.domain.resource.ResourceType getResourceType()
           
protected static org.rhq.core.domain.resource.ResourceType getResourceType(String resourceTypeName, String pluginName)
           
protected abstract  String getResourceTypeName()
           
protected static Set<org.rhq.core.domain.resource.ResourceType> getResourceTypes(String pluginName)
           
protected abstract  org.rhq.core.domain.configuration.Configuration getUpdatedResourceConfig()
           
protected  boolean isResourceConfigSupported()
           
 void resetConfigFiles()
           
protected  void resetConfigFiles(org.rhq.core.domain.configuration.Configuration pluginConfig, boolean deleteRoot)
           
 void start()
           
 void stop()
           
 void testResourceConfigLoad()
           
 void testResourceConfigUpdate()
           
protected  void tweakDefaultPluginConfig(org.rhq.core.domain.configuration.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 String TEST_GROUP
See Also:
Constant Field Values

IS_WINDOWS

protected static final boolean IS_WINDOWS

AUGEAS_ROOT

protected static final File AUGEAS_ROOT
Constructor Detail

AbstractAugeasConfigurationComponentTest

public AbstractAugeasConfigurationComponentTest()
Method Detail

start

public void start()

resetConfigFiles

public void resetConfigFiles()
                      throws IOException
Throws:
IOException

testResourceConfigLoad

public void testResourceConfigLoad()
                            throws Exception
Throws:
Exception

testResourceConfigUpdate

public void testResourceConfigUpdate()
                              throws Exception
Throws:
Exception

stop

public void stop()

getPluginName

protected abstract String getPluginName()

getResourceTypeName

protected abstract String getResourceTypeName()

getExpectedResourceConfig

protected abstract org.rhq.core.domain.configuration.Configuration getExpectedResourceConfig()

getUpdatedResourceConfig

protected abstract org.rhq.core.domain.configuration.Configuration getUpdatedResourceConfig()

createPluginContainerConfiguration

protected PluginContainerConfiguration createPluginContainerConfiguration()
                                                                   throws IOException
Throws:
IOException

getResourceTypes

protected static Set<org.rhq.core.domain.resource.ResourceType> getResourceTypes(String pluginName)

getResourceType

protected static org.rhq.core.domain.resource.ResourceType getResourceType(String resourceTypeName,
                                                                           String pluginName)

getResourceType

protected final org.rhq.core.domain.resource.ResourceType getResourceType()

getResources

protected Set<org.rhq.core.domain.resource.Resource> getResources()

resetConfigFiles

protected void resetConfigFiles(org.rhq.core.domain.configuration.Configuration pluginConfig,
                                boolean deleteRoot)
                         throws IOException
Throws:
IOException

isResourceConfigSupported

protected boolean isResourceConfigSupported()

tweakDefaultPluginConfig

protected void tweakDefaultPluginConfig(org.rhq.core.domain.configuration.Configuration defaultPluginConfig)


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