Codota Logo
RemoteApiTest
Code IndexAdd Codota to your IDE (free)

How to use
RemoteApiTest
in
org.kie.services.client.api

Best Java code snippets using org.kie.services.client.api.RemoteApiTest (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: org.kie.remote/kie-services-client

@Test
public void reRequestTest() throws Exception { 
  String urlString = "http://localhost:8080/appBase/";
  URL appBaseUrl = new URL(urlString);
  ClientRequestFactory factory = new ClientRequestFactory(appBaseUrl.toURI());
    String pathAdd = "/j_security_check";
  ClientRequest formRequest = factory.createRelativeRequest(pathAdd);
  formRequest.formParameter("test", "test");
    assertEquals(urlString + pathAdd , formRequest.getUri());
}
origin: org.kie.remote/kie-remote-client

@Test
public void notAceptedMethodTest() throws Exception { 
  URL deploymentUrl = new URL( "http://localhost:8080/kie-wb/" );
  RemoteRestRuntimeEngineFactory restSessionFactory 
    = RemoteRuntimeEngineFactory.newRestBuilder()
      .addDeploymentId("deployment")
      .addUrl(deploymentUrl)
      .addUserName("mary")
      .addPassword("pass")
      .buildFactory();
  
  WorkItemHandler wih = new DoNothingWorkItemHandler();
  try { 
    restSessionFactory.newRuntimeEngine().getKieSession().getWorkItemManager().registerWorkItemHandler("test", wih);
    fail( "The above call should have failed.");
  } catch( UnsupportedOperationException uoe ) { 
    assertTrue("Incorrect error message: " + uoe.getMessage(), uoe.getMessage().contains("not supported on the Remote Client instance."));
  }
}

origin: org.kie.remote/kie-services-client

@Test
public void notAceptedMethodTest() throws Exception { 
  URL deploymentUrl = new URL( "http://localhost:8080/kie-wb/" );
  RemoteRestRuntimeEngineFactory restSessionFactory 
    = RemoteRestRuntimeEngineFactory.newBuilder()
      .addDeploymentId("deployment")
      .addUrl(deploymentUrl)
      .addUserName("mary")
      .addPassword("pass")
      .build();
  
  WorkItemHandler wih = new DoNothingWorkItemHandler();
  try { 
    restSessionFactory.newRuntimeEngine().getKieSession().getWorkItemManager().registerWorkItemHandler("test", wih);
    fail( "The above call should have failed.");
  } catch( UnsupportedOperationException uoe ) { 
    assertEquals("The .registerWorkItemHandler(..) method is not supported on the remote api.", uoe.getMessage());
  }
}

org.kie.services.client.apiRemoteApiTest

Most used methods

  • fail
  • assertEquals
  • assertTrue

Popular in Java

  • Reactive rest calls using spring rest template
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • getSystemService (Context)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Iterator (java.util)
    An iterator over a collection. Iterator takes the place of Enumeration in the Java Collections Frame
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now