org.rhq.plugins.augeas.test
Class AbstractAugeasConfigurationComponentTest
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
AbstractAugeasConfigurationComponentTest
public AbstractAugeasConfigurationComponentTest()
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.