com.splunk
Class SDKTestCase

java.lang.Object
  extended by 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:


Nested Class Summary
static class SDKTestCase.EventuallyTrueBehavior
           
 
Constructor Summary
SDKTestCase()
           
 
Method Summary
static boolean assertEventuallyTrue(SDKTestCase.EventuallyTrueBehavior behavior)
           
 void clearRestartMessage()
           
 void connect()
           
 boolean hasTestData()
           
 void installApplicationFromTestData(java.lang.String applicationName)
           
 boolean isPortInUse(int port)
           
static java.io.InputStream openResource(java.lang.String path)
           
 boolean restartRequired()
           
 void setUp()
           
 void splunkRestart()
           
static java.lang.String streamToString(java.io.InputStream is)
           
 void tearDown()
           
 void uncheckedSplunkRestart()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SDKTestCase

public SDKTestCase()
Method Detail

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)