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");
}
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);
}
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);
}
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);
}
Aggregations