Search in sources :

Example 1 with RemoteService

use of cn.cerc.jbean.client.RemoteService in project summer-mis by cn-cerc.

the class RemoteServiceTest method test.

@Test
@Ignore
public void test() {
    RemoteService app = new RemoteService();
    // app.setHost("r1.knowall.cn");
    app.setService("SvrUserLogin.check");
    DataSet datain = app.getDataIn();
    Record head = datain.getHead();
    head.setField("Account_", "admin");
    head.setField("Password_", "123456");
    head.setField("MachineID_", "webclient");
    boolean result = app.exec();
    assertTrue(app.getMessage(), result);
}
Also used : RemoteService(cn.cerc.jbean.client.RemoteService) DataSet(cn.cerc.jdb.core.DataSet) Record(cn.cerc.jdb.core.Record) Ignore(org.junit.Ignore) Test(org.junit.Test)

Aggregations

RemoteService (cn.cerc.jbean.client.RemoteService)1 DataSet (cn.cerc.jdb.core.DataSet)1 Record (cn.cerc.jdb.core.Record)1 Ignore (org.junit.Ignore)1 Test (org.junit.Test)1