Search in sources :

Example 1 with NavajoClient

use of com.dexels.navajo.client.NavajoClient in project navajo by Dexels.

the class TestClient method testClientBig.

@Test(timeout = 20000)
@Ignore
public void testClientBig() throws ClientException {
    NavajoClient cl = new JavaNetNavajoClientImpl();
    cl.setAllowCompression(true);
    cl.setForceGzip(true);
    cl.setServerUrls(new String[] { TestConfig.NAVAJO_TEST_SERVER.getValue() });
    cl.setUsername(TestConfig.NAVAJO_TEST_USER.getValue());
    cl.setPassword(TestConfig.NAVAJO_TEST_PASS.getValue());
    cl.useBasicAuthentication(true);
    Navajo nc = NavajoFactory.getInstance().createNavajo();
    Navajo result = cl.doSimpleSend(nc, "club/InitUpdateClub");
    result.getMessage("Club").getProperty("ClubIdentifier").setAnyValue("BBFX31R");
    cl.doSimpleSend(result, "club/ProcessQueryClub");
}
Also used : NavajoClient(com.dexels.navajo.client.NavajoClient) Navajo(com.dexels.navajo.document.Navajo) Ignore(org.junit.Ignore) Test(org.junit.Test)

Example 2 with NavajoClient

use of com.dexels.navajo.client.NavajoClient in project navajo by Dexels.

the class TestClient method testClient.

@Test(timeout = 10000)
public void testClient() throws ClientException {
    NavajoClient cl = new ApacheNavajoClientImpl();
    cl.setAllowCompression(true);
    cl.setForceGzip(true);
    cl.useBasicAuthentication(true);
    cl.setServerUrls(new String[] { TestConfig.NAVAJO_TEST_SERVER.getValue() });
    cl.setUsername(TestConfig.NAVAJO_TEST_USER.getValue());
    cl.setPassword(TestConfig.NAVAJO_TEST_PASS.getValue());
    Navajo nc = NavajoFactory.getInstance().createNavajo();
    Navajo result = cl.doSimpleSend(nc, "single");
    result.write(System.err);
    Assert.assertTrue(result.getErrorDescription() == null);
}
Also used : NavajoClient(com.dexels.navajo.client.NavajoClient) Navajo(com.dexels.navajo.document.Navajo) Test(org.junit.Test)

Example 3 with NavajoClient

use of com.dexels.navajo.client.NavajoClient in project navajo by Dexels.

the class TestClient method testClientBig.

// can't get it to work on circleci, no idea why
@Ignore
@Test(timeout = 20000)
public void testClientBig() throws ClientException {
    NavajoClient cl = new ApacheNavajoClientImpl();
    cl.setAllowCompression(true);
    cl.setForceGzip(true);
    cl.setServerUrls(new String[] { TestConfig.NAVAJO_TEST_SERVER.getValue() });
    cl.setUsername(TestConfig.NAVAJO_TEST_USER.getValue());
    cl.setPassword(TestConfig.NAVAJO_TEST_PASS.getValue());
    cl.useBasicAuthentication(true);
    Navajo nc = NavajoFactory.getInstance().createNavajo();
    Navajo result = cl.doSimpleSend(nc, "club/InitUpdateClub");
    result.getMessage("Club").getProperty("ClubIdentifier").setAnyValue("BBFX31R");
    Navajo result2 = cl.doSimpleSend(result, "club/ProcessQueryClub");
    result2.write(System.err);
}
Also used : NavajoClient(com.dexels.navajo.client.NavajoClient) Navajo(com.dexels.navajo.document.Navajo) Ignore(org.junit.Ignore) Test(org.junit.Test)

Example 4 with NavajoClient

use of com.dexels.navajo.client.NavajoClient in project navajo by Dexels.

the class TestClient method testClient.

@Test(timeout = 10000)
@Ignore
public void testClient() throws ClientException {
    NavajoClient cl = new JavaNetNavajoClientImpl();
    cl.setAllowCompression(true);
    cl.setForceGzip(true);
    cl.setServerUrls(new String[] { TestConfig.NAVAJO_TEST_SERVER.getValue() });
    cl.setUsername(TestConfig.NAVAJO_TEST_USER.getValue());
    cl.setPassword(TestConfig.NAVAJO_TEST_PASS.getValue());
    cl.useBasicAuthentication(true);
    Navajo nc = NavajoFactory.getInstance().createNavajo();
    Navajo result = cl.doSimpleSend(nc, "single");
    Assert.assertTrue(result.getErrorDescription() == null);
}
Also used : NavajoClient(com.dexels.navajo.client.NavajoClient) Navajo(com.dexels.navajo.document.Navajo) Ignore(org.junit.Ignore) Test(org.junit.Test)

Aggregations

NavajoClient (com.dexels.navajo.client.NavajoClient)4 Navajo (com.dexels.navajo.document.Navajo)4 Test (org.junit.Test)4 Ignore (org.junit.Ignore)3