sample code
This commit is contained in:
parent
78ed1cd553
commit
bc1bc6915d
@ -9,8 +9,10 @@ import java.util.List;
|
||||
public class SydApi4Database implements SydApi
|
||||
{
|
||||
|
||||
|
||||
|
||||
public static void SYD_SetLogConfig (
|
||||
String pcLogPath,
|
||||
int iLogLevel) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public SydApi SYD_Connect_Ex(String[] pcIpList, int[] iPortList, int iConnectTimeOut, int iDealTimeOut) {
|
||||
|
||||
@ -1,20 +0,0 @@
|
||||
package com.sunyard.sge.database;
|
||||
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
/**
|
||||
* Unit test for simple App.
|
||||
*/
|
||||
public class AppTest
|
||||
{
|
||||
/**
|
||||
* Rigorous Test :-)
|
||||
*/
|
||||
@Test
|
||||
public void shouldAnswerWithTrue()
|
||||
{
|
||||
assertTrue( true );
|
||||
}
|
||||
}
|
||||
21
src/test/java/sample/Sample.java
Normal file
21
src/test/java/sample/Sample.java
Normal file
@ -0,0 +1,21 @@
|
||||
package sample;
|
||||
|
||||
import com.sunyard.sge.database.SydApi;
|
||||
import com.sunyard.sge.database.SydApi4Database;
|
||||
|
||||
public class Sample
|
||||
{
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
SydApi4Database.SYD_SetLogConfig("./sydapi/log", 1);
|
||||
SydApi api = new SydApi4Database();
|
||||
api.SYD_Connect_Ex();
|
||||
|
||||
|
||||
|
||||
api.SYD_Disconnect_Ex();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user