Search in sources :

Example 1 with XServerCapabilities

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());
}
Also used : XServerCapabilities(com.mysql.cj.protocol.x.XServerCapabilities) Test(org.junit.jupiter.api.Test)

Aggregations

XServerCapabilities (com.mysql.cj.protocol.x.XServerCapabilities)1 Test (org.junit.jupiter.api.Test)1