use of com.mysql.cj.protocol.x.XServerCapabilities in project aws-mysql-jdbc by awslabs.
the class XProtocolTest method testCapabilities.
@Test
public void testCapabilities() {
assumeTrue(this.isSetForXTests, PropertyDefinitions.SYSP_testsuite_url_mysqlx + " must be set to run this test.");
XServerCapabilities capabilities = (XServerCapabilities) this.protocol.getServerSession().getCapabilities();
assertEquals("mysql", capabilities.getNodeType());
assertTrue(capabilities.getTls());
assertFalse(capabilities.getClientPwdExpireOk());
assertTrue(capabilities.getAuthenticationMechanisms().contains("MYSQL41"));
assertEquals("text", capabilities.getDocFormats());
}
Aggregations