com.splunk
Class SDKTestCase
java.lang.Object
com.splunk.SDKTestCase
- Direct Known Subclasses:
- ApplicationTest, ConfigurationTest, DataModelTest, DeploymentClientTest, DeploymentServerClassTest, DeploymentServerTest, DeploymentTenantTest, DistributedConfTest, DistributedPeerTest, EntityTest, EventTypesTest, FiredAlertsTest, HttpServiceTest, IndexTest, InputTest, LicenseGroupTest, LicenseMessageTest, LicensePoolTest, LicenseSlaveTest, LicenseTest, LoggerTest, MessageTest, MetadataTest, ModularInputKindsTest, NamespaceTest, OutputDefaultTest, OutputGroupTest, OutputServerTest, OutputSyslogTest, PasswordTest, PivotTest, ResultsReaderTest, RoleTest, SavedSearchTest, ScriptedInputTest, SearchJobTest, ServiceTest, SettingsTest, TcpInputTest, UdpInputTest, UploadTest, UtilTest
public abstract class SDKTestCase
- extends java.lang.Object
Base test case for SDK test suite.
TestCase does the following actions in the various test contexts:
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SDKTestCase
public SDKTestCase()
streamToString
public static java.lang.String streamToString(java.io.InputStream is)
connect
public void connect()
setUp
public void setUp()
throws java.lang.Exception
- Throws:
java.lang.Exception
tearDown
public void tearDown()
throws java.lang.Exception
- Throws:
java.lang.Exception
openResource
public static java.io.InputStream openResource(java.lang.String path)
assertEventuallyTrue
public static boolean assertEventuallyTrue(SDKTestCase.EventuallyTrueBehavior behavior)
hasTestData
public boolean hasTestData()
installApplicationFromTestData
public void installApplicationFromTestData(java.lang.String applicationName)
clearRestartMessage
public void clearRestartMessage()
restartRequired
public boolean restartRequired()
splunkRestart
public void splunkRestart()
uncheckedSplunkRestart
public void uncheckedSplunkRestart()
isPortInUse
public boolean isPortInUse(int port)