Example #1
0
  @Ignore
  @Test
  public void testAdministrative() {
    System.out.println("test Administrative");

    // Valid service connection
    System.out.println("Valid Service Connection - Administrative");
    String url = "http://localhost:8080/sola/webservices/administrative-service?wsdl";
    AdministrativeClient result =
        WSManager.getInstance()
            .getWSClient(AdministrativeClientImpl.class, url, "test", "test".toCharArray());
    System.out.print("Checking connection:");
    System.out.println(result.checkConnection());
  }
Example #2
0
  @Test
  @Ignore
  public void testSearch() {
    System.out.println("test search");

    // Valid service connection
    System.out.println("Valid Service Connection - Case Management");
    String url = "http://localhost:8080/sola/webservices/search-service?wsdl";
    SearchClient result =
        WSManager.getInstance()
            .getWSClient(SearchClientImpl.class, url, "test", "test".toCharArray());
    System.out.print("Checking connection:");
    System.out.println(result.checkConnection());

    //               GenericResult res = result.test();
    //        System.out.println("test");
    //        System.out.println("result:" + res);

  }
Example #3
0
  @Test
  @Ignore
  public void testCadastre() {
    System.out.println("test cadastre");

    // Valid service connection
    System.out.println("Valid Service Connection - Case Management");
    String url = "http://localhost:8080/sola/webservices/cadastre-service?wsdl";
    CadastreClient result =
        WSManager.getInstance()
            .getWSClient(CadastreClientImpl.class, url, "test", "test".toCharArray());
    System.out.print("Checking connection:");
    System.out.println(result.checkConnection());

    System.out.println("test GetCadastreObjectByParts");
    System.out.println("Validate result:" + result.getCadastreObjectByParts("Lot 59 32488").size());

    System.out.println("test getTransactionCadastreChange");
    TransactionCadastreChangeTO obj = result.getTransactionCadastreChange("4086");
    System.out.println("Result: " + obj.toString());
  }
Example #4
0
  /** Check that a valid connection can be made to the web service. Also includes failure tests */
  @Test
  @Ignore
  public void testGetCaseManagementMethods() {
    System.out.println("test different case management methods for development");

    // Valid service connection
    System.out.println("Valid Service Connection - Case Management");
    String url = "http://localhost:8080/sola/webservices/casemanagement-service?wsdl";
    CaseManagementClient result =
        WSManager.getInstance()
            .getWSClient(CaseManagementClientImpl.class, url, "test", "test".toCharArray());
    System.out.print("Checking connection:");
    System.out.println(result.checkConnection());

    ApplicationTO app = result.getApplication("3000");
    System.out.println("Application found: " + app.getId());

    System.out.println("Test Application actions");
    System.out.println(
        "Test assign:" + result.applicationActionAssign(app.getId(), "1000", app.getRowVersion()));
    // System.out.println("Validate result:" + result.validate("3009").size());
  }