@UnitTest public class AbstractSolrServerControllerTest extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
protected class |
AbstractSolrServerControllerTest.AbstractSolrServerControllerSpy |
| Modifier and Type | Field and Description |
|---|---|
ExpectedException |
expectedException |
static java.lang.String |
INSTANCE_NAME |
static java.lang.String |
INSTANCE_PORT |
static java.lang.String |
SOLT_MULTIPLE_SERVERS_STDOUT_FILE |
static java.lang.String |
SOLT_NO_JSON_STDOUT_FILE |
static java.lang.String |
SOLT_NO_SERVER_STDOUT_FILE |
| Constructor and Description |
|---|
AbstractSolrServerControllerTest() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
readFile(java.lang.String file) |
void |
restartRunningServer() |
void |
serverDoesNotStart() |
void |
setUp() |
void |
startServer() |
void |
startServerWithStatusRetry() |
void |
statusShouldBeStarted() |
void |
statusShouldBeStopped() |
void |
statusShouldBeUnknown() |
void |
stopServer() |
void |
thrownExceptionBecauseWrongServerIsRunning() |
public static final java.lang.String INSTANCE_NAME
public static final java.lang.String INSTANCE_PORT
public static final java.lang.String SOLT_MULTIPLE_SERVERS_STDOUT_FILE
public static final java.lang.String SOLT_NO_JSON_STDOUT_FILE
public static final java.lang.String SOLT_NO_SERVER_STDOUT_FILE
public ExpectedException expectedException
public void setUp()
throws java.lang.Exception
java.lang.Exceptionpublic void startServer()
throws java.lang.Exception
java.lang.Exceptionpublic void startServerWithStatusRetry()
throws java.lang.Exception
java.lang.Exceptionpublic void restartRunningServer()
throws java.lang.Exception
java.lang.Exceptionpublic void thrownExceptionBecauseWrongServerIsRunning()
throws java.lang.Exception
java.lang.Exceptionpublic void serverDoesNotStart()
throws java.lang.Exception
java.lang.Exceptionpublic void stopServer()
throws java.lang.Exception
java.lang.Exceptionpublic void statusShouldBeStopped()
throws java.lang.Exception
java.lang.Exceptionpublic void statusShouldBeStarted()
throws java.lang.Exception
java.lang.Exceptionpublic void statusShouldBeUnknown()
throws java.lang.Exception
java.lang.Exceptionprotected java.lang.String readFile(java.lang.String file)
throws java.io.IOException
java.io.IOExceptionCopyright © 2018 SAP SE. All Rights Reserved.