Tabnine Logo
HttpRequestFacade.initNewSpecification
Code IndexAdd Tabnine to your IDE (free)

How to use
initNewSpecification
method
in
lv.ctco.cukes.http.facade.HttpRequestFacade

Best Java code snippets using lv.ctco.cukes.http.facade.HttpRequestFacade.initNewSpecification (Showing top 7 results out of 315)

origin: ctco/cukes

@Inject
public HttpRequestFacade(GlobalWorldFacade world, RestAssuredConfiguration restConfig) {
  this.world = world;
  this.restConfig = restConfig;
  initNewSpecification();
}
origin: lv.ctco.cukes/cukes-http

@Inject
public HttpRequestFacade(GlobalWorldFacade world, RestAssuredConfiguration restConfig) {
  this.world = world;
  this.restConfig = restConfig;
  initNewSpecification();
}
origin: lv.ctco.cukes/cukes-http

  @After
  public void afterScenario() {
    requestFacade.initNewSpecification();
  }
}
origin: ctco/cukes

  @After
  public void afterScenario() {
    requestFacade.initNewSpecification();
  }
}
origin: ctco/cukes

@Before
public void beforeLoadRunnerScenario() {
  boolean filterEnabled = world.getBoolean(CukesOptions.LOADRUNNER_FILTER_BLOCKS_REQUESTS);
  if (filterEnabled) {
    requestFacade.initNewSpecification();
  }
}
origin: lv.ctco.cukes/cukes-http

public void doRequest(String httpMethod, final String url) throws Exception {
  final HttpMethod method = HttpMethod.parse(httpMethod);
  // TODO: Should be refactored into CukesHttpPlugin
  boolean filterEnabled = world.getBoolean(CukesOptions.LOADRUNNER_FILTER_BLOCKS_REQUESTS);
  AwaitCondition awaitCondition = specification.awaitCondition();
  try {
    if (awaitCondition != null && !filterEnabled) {
      int intervalTime = awaitCondition.getInterval().getValue();
      TimeUnit intervalUnit = awaitCondition.getInterval().getUnitDict().getTimeUnit();
      int waitTime = awaitCondition.getWaitTime().getValue();
      TimeUnit unit = awaitCondition.getWaitTime().getUnitDict().getTimeUnit();
      // TODO Fix
      Awaitility.with().pollInterval(intervalTime, intervalUnit)
        .await()
        .atMost(waitTime, unit)
        .until(doRequest(url, method), new AwaitConditionMatcher(awaitCondition));
    } else {
      doRequest(url, method).call();
    }
  } catch (RuntimeException e) {
    if (!expectException) {
      throw e;
    }
    exception = e;
  }
  specification.initNewSpecification();
}
origin: ctco/cukes

public void doRequest(String httpMethod, final String url) throws Exception {
  final HttpMethod method = HttpMethod.parse(httpMethod);
  // TODO: Should be refactored into CukesHttpPlugin
  boolean filterEnabled = world.getBoolean(CukesOptions.LOADRUNNER_FILTER_BLOCKS_REQUESTS);
  AwaitCondition awaitCondition = specification.awaitCondition();
  try {
    if (awaitCondition != null && !filterEnabled) {
      int intervalTime = awaitCondition.getInterval().getValue();
      TimeUnit intervalUnit = awaitCondition.getInterval().getUnitDict().getTimeUnit();
      int waitTime = awaitCondition.getWaitTime().getValue();
      TimeUnit unit = awaitCondition.getWaitTime().getUnitDict().getTimeUnit();
      // TODO Fix
      Awaitility.with().pollInterval(intervalTime, intervalUnit)
        .await()
        .atMost(waitTime, unit)
        .until(doRequest(url, method), new AwaitConditionMatcher(awaitCondition));
    } else {
      doRequest(url, method).call();
    }
  } catch (RuntimeException e) {
    if (!expectException) {
      throw e;
    }
    exception = e;
  }
  specification.initNewSpecification();
}
lv.ctco.cukes.http.facadeHttpRequestFacadeinitNewSpecification

Popular methods of HttpRequestFacade

  • value
  • accept
  • authenticationType
  • contentType
  • authentication
  • awaitCondition
  • baseUri
  • basicAuthentication
  • cookie
  • header
  • onCreate
  • param
  • onCreate,
  • param,
  • proxy,
  • queryParam,
  • sessionId,
  • shouldWaitWithIntervalUntilHeaderEqualToValue,
  • shouldWaitWithIntervalUntilPropertyEqualToValue,
  • shouldWaitWithIntervalUntilStatusCodeReceived

Popular in Java

  • Finding current android device location
  • getContentResolver (Context)
  • compareTo (BigDecimal)
  • getSharedPreferences (Context)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • JButton (javax.swing)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now