Tabnine Logo
io.sphere.sdk.test
Code IndexAdd Tabnine to your IDE (free)

How to use io.sphere.sdk.test

Best Java code snippets using io.sphere.sdk.test (Showing top 20 results out of 315)

origin: commercetools/commercetools-jvm-sdk

protected static HttpClient newHttpClient() {
  //NO SSL Client: this client doesn't perform ssl certification check, which is a necessity to run tests on CI
  CloseableHttpAsyncClient asyncClient = createNoSSLClient();
  return IntegrationTestHttpClient.of(asyncClient);
}
origin: io.sphere.jvmsdk/javaintegrationtestlib

  public ReferenceAssert isExpanded() {
    checkIsExpanded();
    return this;
  }
}
origin: io.sphere.sdk.jvm/sphere-test-lib

public static String randomSortOrder() {
  final int append = 5;//hack to not have a trailing 0 which is not accepted in sphere
  return  "0." + randomInt() + append;
}
origin: io.sphere.sdk.jvm/sphere-test-lib

public static  <T> T draftFromJsonResource(final String resourcePath, final Class<T> clazz, final JsonNodeReferenceResolver referenceResolver) {
  final JsonNode draftAsJson = SphereTestUtils.jsonNodeFromResource(resourcePath);
  referenceResolver.replaceIds(draftAsJson);
  return SphereJsonUtils.readObject(draftAsJson, clazz);
}
origin: io.sphere.jvmsdk/javaintegrationtestlib

public static ReferenceAssert assertThat(final Reference<?> actual) {
  return new ReferenceAssert(actual);
}
origin: io.sphere.sdk.jvm/sphere-test-lib

protected synchronized static BlockingSphereClient client() {
  setupClient();
  return client;
}
origin: io.sphere.jvmsdk/javaintegrationtestlib

public static LocalizedStringAssert assertThat(final LocalizedString localizedString) {
  return new LocalizedStringAssert(localizedString);
}
origin: io.sphere.sdk.jvm/test-lib

public static DefaultModelAssert assertThat(final DefaultModel<?> actual) {
  return new DefaultModelAssert(actual);
}
origin: io.sphere.jvmsdk/javaintegrationtestlib

public static OptionalAssert assertThat(final Optional<?> actual) {
  return new OptionalAssert(actual);
}
origin: io.sphere.sdk.jvm/test-lib

protected static String clientSecret() {
  return getValueForEnvVar(JVM_SDK_IT_CLIENT_SECRET);
}
origin: io.sphere.sdk.jvm/test-lib

public OptionalAssert isEmpty() {
  return isAbsent();
}
origin: commercetools/commercetools-jvm-sdk

public static  <T> T draftFromJsonResource(final String resourcePath, final Class<T> clazz, final JsonNodeReferenceResolver referenceResolver) {
  final JsonNode draftAsJson = SphereTestUtils.jsonNodeFromResource(resourcePath);
  referenceResolver.replaceIds(draftAsJson);
  return SphereJsonUtils.readObject(draftAsJson, clazz);
}
origin: io.sphere.sdk.jvm/sphere-test-lib

public ReferenceAssert isExpanded() {
  checkIsExpanded();
  return this;
}
origin: commercetools/commercetools-jvm-sdk

public static String randomSortOrder() {
  final int append = 5;//hack to not have a trailing 0 which is not accepted in sphere
  return  "0." + randomInt() + append;
}
origin: io.sphere.sdk.jvm/test-lib

public static ReferenceAssert assertThat(final Reference<?> actual) {
  return new ReferenceAssert(actual);
}
origin: commercetools/commercetools-jvm-sdk

protected synchronized static BlockingSphereClient client() {
  setupClient();
  return client;
}
origin: io.sphere.sdk.jvm/sphere-test-lib

public static LocalizedStringAssert assertThat(final LocalizedString localizedString) {
  return new LocalizedStringAssert(localizedString);
}
origin: io.sphere.sdk.jvm/test-lib

protected static String authUrl() {
  return getValueForEnvVar(JVM_SDK_IT_AUTH_URL);
}
origin: io.sphere.sdk.jvm/test-lib

public ReferenceAssert isExpanded() {
  checkIsExpanded();
  return this;
}
origin: io.sphere.sdk.jvm/test-lib

protected static String projectKey() {
  return getValueForEnvVar(JVM_SDK_IT_PROJECT_KEY);
}
io.sphere.sdk.test

Most used classes

  • SphereTestUtils
  • IntegrationTest
  • JsonNodeReferenceResolver
  • ReferenceAssert
  • DefaultModelAssert
  • OptionalAssert,
  • CompletableFutureCallbackAdapter,
  • IntegrationTestHttpClient,
  • LocalizedStringsAssert,
  • VrapHeaders,
  • VrapRequestDecorator
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