public class InternalXBaseTestCase
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
baseUrl |
protected static java.lang.String |
DEFAULT_METADATA_CHARSET
The default character set used to interpret metadata.
|
protected SessionFactory |
fact |
protected boolean |
isSetForXTests |
private ServerVersion |
mysqlVersion |
HostInfo |
testHostInfo |
java.util.Properties |
testProperties |
| Constructor and Description |
|---|
InternalXBaseTestCase() |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
assertSessionStatusEquals(Session sess,
java.lang.String statusVariable,
java.lang.String expected) |
protected static void |
assertSessionStatusNotEquals(Session sess,
java.lang.String statusVariable,
java.lang.String unexpected) |
protected static <EX extends java.lang.Throwable> |
assertThrows(java.lang.Class<EX> throwable,
java.util.concurrent.Callable<?> testRoutine) |
protected static <EX extends java.lang.Throwable> |
assertThrows(java.lang.Class<EX> throwable,
java.lang.String msgMatchesRegex,
java.util.concurrent.Callable<?> testRoutine) |
protected static <EX extends java.lang.Throwable> |
assertThrows(java.lang.String message,
java.lang.Class<EX> throwable,
java.util.concurrent.Callable<?> testRoutine) |
protected static <EX extends java.lang.Throwable> |
assertThrows(java.lang.String message,
java.lang.Class<EX> throwable,
java.lang.String msgMatchesRegex,
java.util.concurrent.Callable<?> testRoutine) |
XProtocol |
createAuthenticatedTestProtocol(XProtocol protocol,
java.util.Properties props) |
java.lang.String |
createTempTestCollection(XProtocol protocol)
Create a temporary collection for testing.
|
XProtocol |
createTestProtocol()
Create a new
XProtocol instance for testing. |
void |
createTestSchema(XProtocol protocol,
java.lang.String schemaName) |
MysqlxSession |
createTestSession() |
void |
dropTempTestCollection(XProtocol protocol) |
java.lang.String |
getEncodedTestHost() |
java.lang.String |
getTestDatabase() |
java.lang.String |
getTestHost() |
java.lang.String |
getTestPassword() |
int |
getTestPort() |
java.lang.String |
getTestUser() |
protected boolean |
mysqlVersionMeetsMinimum(ServerVersion version)
Checks if the MySQL version we are connected to meets the minimum
ServerVersion provided. |
protected boolean |
mysqlVersionMeetsMinimum(java.lang.String url,
ServerVersion version)
Checks if the MySQL version we are connected to meets the minimum
ServerVersion provided. |
protected static final java.lang.String DEFAULT_METADATA_CHARSET
public java.lang.String baseUrl
protected boolean isSetForXTests
protected SessionFactory fact
public HostInfo testHostInfo
public java.util.Properties testProperties
private ServerVersion mysqlVersion
public java.lang.String getTestHost()
public int getTestPort()
public java.lang.String getTestUser()
public java.lang.String getTestPassword()
public java.lang.String getTestDatabase()
public java.lang.String getEncodedTestHost()
public XProtocol createTestProtocol()
XProtocol instance for testing.public XProtocol createAuthenticatedTestProtocol(XProtocol protocol, java.util.Properties props)
public MysqlxSession createTestSession()
public void createTestSchema(XProtocol protocol, java.lang.String schemaName)
public java.lang.String createTempTestCollection(XProtocol protocol)
protocol - public void dropTempTestCollection(XProtocol protocol)
protected static <EX extends java.lang.Throwable> EX assertThrows(java.lang.Class<EX> throwable,
java.util.concurrent.Callable<?> testRoutine)
protected static <EX extends java.lang.Throwable> EX assertThrows(java.lang.String message,
java.lang.Class<EX> throwable,
java.util.concurrent.Callable<?> testRoutine)
protected static <EX extends java.lang.Throwable> EX assertThrows(java.lang.Class<EX> throwable,
java.lang.String msgMatchesRegex,
java.util.concurrent.Callable<?> testRoutine)
protected static <EX extends java.lang.Throwable> EX assertThrows(java.lang.String message,
java.lang.Class<EX> throwable,
java.lang.String msgMatchesRegex,
java.util.concurrent.Callable<?> testRoutine)
protected boolean mysqlVersionMeetsMinimum(ServerVersion version)
ServerVersion provided.version - the minimum ServerVersion acceptedprotected boolean mysqlVersionMeetsMinimum(java.lang.String url,
ServerVersion version)
ServerVersion provided.url - server URLversion - the minimum ServerVersion acceptedprotected static void assertSessionStatusEquals(Session sess, java.lang.String statusVariable, java.lang.String expected)
protected static void assertSessionStatusNotEquals(Session sess, java.lang.String statusVariable, java.lang.String unexpected)