mirror of
https://github.com/t8y2/dbx.git
synced 2026-10-19 16:16:45 +00:00
@@ -33,7 +33,7 @@ import java.util.Set;
|
||||
public final class SundbAgent extends AbstractJdbcAgent {
|
||||
@Override
|
||||
protected String driverClass() {
|
||||
return "com.sundb.jdbc.SundbDriver";
|
||||
return "csii.sundb.jdbc.SundbDriver";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -2,6 +2,9 @@ package com.dbx.agent.sundb;
|
||||
|
||||
import com.dbx.agent.DatabaseAgent;
|
||||
import com.dbx.agent.test.JdbcFakeExecutionBehaviorTest;
|
||||
import java.lang.reflect.Method;
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
class SundbAgentTest extends JdbcFakeExecutionBehaviorTest {
|
||||
@Override
|
||||
@@ -13,4 +16,15 @@ class SundbAgentTest extends JdbcFakeExecutionBehaviorTest {
|
||||
protected String resultSetSql() {
|
||||
return "CALL sample_proc()";
|
||||
}
|
||||
|
||||
@Test
|
||||
void usesTheSunDbJdbcDriverClass() throws Exception {
|
||||
Method driverClass = SundbAgent.class.getDeclaredMethod("driverClass");
|
||||
driverClass.setAccessible(true);
|
||||
|
||||
Assertions.assertEquals(
|
||||
"csii.sundb.jdbc.SundbDriver",
|
||||
driverClass.invoke(new SundbAgent())
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user