Java Code Examples for com.taobao.diamond.mockserver.MockServer#tearDownMockServer()

The following examples show how to use com.taobao.diamond.mockserver.MockServer#tearDownMockServer() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BaseMatrixTestCase.java    From tddl5 with Apache License 2.0 5 votes vote down vote up
@BeforeClass
public static void IEnvInit() throws Exception {
    MockServer.tearDownMockServer();
    // setMatrixMockInfo(MATRIX_DBGROUPS_PATH, TDDL_DBGROUPS);

    if (tddlDatasource == null) {
        tddlDatasource = JDBCClient(dbType, false);
    }

    mysqlConnection = getConnection();
    // tddlConnection = getTddlServerConnection();
    tddlConnection = tddlDatasource.getConnection();
}
 
Example 2
Source File: BaseMatrixTestCase.java    From tddl with Apache License 2.0 5 votes vote down vote up
@BeforeClass
public static void IEnvInit() throws Exception {
    MockServer.tearDownMockServer();
    // setMatrixMockInfo(MATRIX_DBGROUPS_PATH, TDDL_DBGROUPS);

    if (us == null) {
        if (dbType.equals("bdb") || dbType == "") {
            JDBCClient(dbType);
        } else if (dbType.equals("mysql") || dbType.equals("tdhs") || dbType.equals("hbase")) {
            JDBCClient(dbType, false);
        }
    }
}
 
Example 3
Source File: BaseAtomTest.java    From tddl5 with Apache License 2.0 4 votes vote down vote up
@AfterClass
public static void after() {
    MockServer.tearDownMockServer();
}
 
Example 4
Source File: BaseTestCase.java    From tddl5 with Apache License 2.0 4 votes vote down vote up
@AfterClass
public static void diamondTearDown() {
    MockServer.tearDownMockServer();
    // TAtomDataSource.cleanAllDataSource();
}
 
Example 5
Source File: BaseGroupTest.java    From tddl5 with Apache License 2.0 4 votes vote down vote up
@AfterClass
public static void after() {
    MockServer.tearDownMockServer();
}
 
Example 6
Source File: BaseAtomTest.java    From tddl with Apache License 2.0 4 votes vote down vote up
@AfterClass
public static void after() {
    MockServer.tearDownMockServer();
}
 
Example 7
Source File: BaseTestCase.java    From tddl with Apache License 2.0 4 votes vote down vote up
@AfterClass
public static void diamondTearDown() {
    MockServer.tearDownMockServer();
    // TAtomDataSource.cleanAllDataSource();
}
 
Example 8
Source File: BaseGroupTest.java    From tddl with Apache License 2.0 4 votes vote down vote up
@AfterClass
public static void after() {
    MockServer.tearDownMockServer();
}