Tabnine Logo
AbstractStringAssert.isNullOrEmpty
Code IndexAdd Tabnine to your IDE (free)

How to use
isNullOrEmpty
method
in
org.assertj.core.api.AbstractStringAssert

Best Java code snippets using org.assertj.core.api.AbstractStringAssert.isNullOrEmpty (Showing top 14 results out of 315)

origin: reactor/reactor-core

  @Test
  public void fluxInitialValueAvailableOnceIfBroadcasted() {
//        "A deferred Flux with an initial value makes that value available once if broadcasted"
//        given: "a composable with an initial value"
    Flux<String> stream = Flux.just("test")
                 .publish()
                 .autoConnect();

//        when: "the value is retrieved"
    AtomicReference<String> value = new AtomicReference<>();
    AtomicReference<String> value2 = new AtomicReference<>();
    stream.subscribe(value::set);
    stream.subscribe(value2::set);

//        then: "it is available in value 1 but value 2 has subscribed after dispatching"
    assertThat(value.get()).isEqualTo("test");
    assertThat(value2.get()).isNullOrEmpty();
  }

origin: SpectoLabs/hoverfly-java

@Test
public void shouldNotSetSystemPropertiesWhenHoverflyInWebServerMode() {
  System.clearProperty("http.proxyHost");
  System.clearProperty("https.proxyHost");
  hoverfly = new Hoverfly(localConfigs().asWebServer(), SIMULATE);
  hoverfly.start();
  assertThat(System.getProperty("http.proxyHost")).isNullOrEmpty();
  assertThat(System.getProperty("https.proxyHost")).isNullOrEmpty();
}
origin: spring-cloud/spring-cloud-open-service-broker

@Test
public void createServiceInstanceBindingFails() {
  prepareBindingFlows();
  StepVerifier
      .create(serviceInstanceBindingEventService.createServiceInstanceBinding(
          CreateServiceInstanceBindingRequest.builder()
              .serviceInstanceId("foo")
              .build()))
      .expectError()
      .verify();
  assertThat(this.results.getBeforeCreate()).isEqualTo("before create foo");
  assertThat(this.results.getAfterCreate()).isNullOrEmpty();
  assertThat(this.results.getErrorCreate()).isEqualTo("error create foo");
  assertThat(this.results.getBeforeDelete()).isNullOrEmpty();
  assertThat(this.results.getAfterDelete()).isNullOrEmpty();
  assertThat(this.results.getErrorDelete()).isNullOrEmpty();
}
origin: spring-cloud/spring-cloud-open-service-broker

@Test
public void deleteServiceInstanceBindingFails() {
  prepareBindingFlows();
  StepVerifier
      .create(serviceInstanceBindingEventService.deleteServiceInstanceBinding(
          DeleteServiceInstanceBindingRequest.builder()
              .serviceInstanceId("foo")
              .build()))
      .expectError()
      .verify();
  assertThat(this.results.getBeforeCreate()).isNullOrEmpty();
  assertThat(this.results.getAfterCreate()).isNullOrEmpty();
  assertThat(this.results.getErrorCreate()).isNullOrEmpty();
  assertThat(this.results.getBeforeDelete()).isEqualTo("before delete foo");
  assertThat(this.results.getAfterDelete()).isNullOrEmpty();
  assertThat(this.results.getErrorDelete()).isEqualTo("error delete foo");
}
origin: spring-cloud/spring-cloud-open-service-broker

@Test
public void createServiceInstanceBindingSucceeds() {
  prepareBindingFlows();
  StepVerifier
      .create(serviceInstanceBindingEventService.createServiceInstanceBinding(
          CreateServiceInstanceBindingRequest.builder()
              .serviceInstanceId("foo")
              .serviceDefinitionId("bar")
              .build()))
      .expectNext(CreateServiceInstanceAppBindingResponse.builder().build())
      .verifyComplete();
  assertThat(this.results.getBeforeCreate()).isEqualTo("before create foo");
  assertThat(this.results.getAfterCreate()).isEqualTo("after create foo");
  assertThat(this.results.getErrorCreate()).isNullOrEmpty();
  assertThat(this.results.getBeforeDelete()).isNullOrEmpty();
  assertThat(this.results.getAfterDelete()).isNullOrEmpty();
  assertThat(this.results.getErrorDelete()).isNullOrEmpty();
}
origin: spring-cloud/spring-cloud-open-service-broker

@Test
public void deleteServiceInstanceBindingSucceeds() {
  prepareBindingFlows();
  StepVerifier
      .create(serviceInstanceBindingEventService.deleteServiceInstanceBinding(
          DeleteServiceInstanceBindingRequest.builder()
              .serviceInstanceId("foo")
              .bindingId("bar")
              .build()))
      .expectNext(DeleteServiceInstanceBindingResponse.builder().build())
      .verifyComplete();
  assertThat(this.results.getBeforeCreate()).isNullOrEmpty();
  assertThat(this.results.getAfterCreate()).isNullOrEmpty();
  assertThat(this.results.getErrorCreate()).isNullOrEmpty();
  assertThat(this.results.getBeforeDelete()).isEqualTo("before delete foo");
  assertThat(this.results.getAfterDelete()).isEqualTo("after delete foo");
  assertThat(this.results.getErrorDelete()).isNullOrEmpty();
}
origin: spring-cloud/spring-cloud-open-service-broker

@Test
public void getLastOperationFails() {
  prepareLastOperationEventFlows();
  StepVerifier
      .create(serviceInstanceEventService.getLastOperation(GetLastServiceOperationRequest.builder()
          .serviceInstanceId("foo")
          .build()))
      .expectError()
      .verify();
  assertThat(this.results.getBeforeLastOperation()).isEqualTo("before foo");
  assertThat(this.results.getAfterLastOperation()).isNullOrEmpty();
  assertThat(this.results.getErrorLastOperation()).isEqualTo("error foo");
}
origin: spring-cloud/spring-cloud-open-service-broker

@Test
public void createServiceInstanceFails() {
  prepareCreateEventFlows();
  StepVerifier.create(serviceInstanceEventService.createServiceInstance(
      CreateServiceInstanceRequest.builder()
          .serviceInstanceId("foo")
          .build()))
      .expectError()
      .verify();
  assertThat(this.results.getBeforeCreate()).isEqualTo("before foo");
  assertThat(this.results.getAfterCreate()).isNullOrEmpty();
  assertThat(this.results.getErrorCreate()).isEqualTo("error foo");
}
origin: spring-cloud/spring-cloud-open-service-broker

@Test
public void updateServiceInstanceFails() {
  prepareUpdateEventFlows();
  StepVerifier
      .create(serviceInstanceEventService.updateServiceInstance(
          UpdateServiceInstanceRequest.builder()
          .serviceInstanceId("foo")
          .build()))
      .expectError()
      .verify();
  assertThat(this.results.getBeforeUpdate()).isEqualTo("before foo");
  assertThat(this.results.getAfterUpdate()).isNullOrEmpty();
  assertThat(this.results.getErrorUpdate()).isEqualTo("error foo");
}
origin: spring-cloud/spring-cloud-open-service-broker

@Test
public void deleteServiceInstanceFails() {
  prepareDeleteEventFlows();
  StepVerifier
      .create(serviceInstanceEventService.deleteServiceInstance(
          DeleteServiceInstanceRequest.builder()
              .serviceInstanceId("foo")
              .build()))
      .expectError()
      .verify();
  assertThat(this.results.getBeforeDelete()).isEqualTo("before foo");
  assertThat(this.results.getAfterDelete()).isNullOrEmpty();
  assertThat(this.results.getErrorDelete()).isEqualTo("error foo");
}
origin: spring-cloud/spring-cloud-open-service-broker

@Test
public void updateServiceInstanceSucceeds() {
  prepareUpdateEventFlows();
  StepVerifier
      .create(serviceInstanceEventService.updateServiceInstance(
          UpdateServiceInstanceRequest.builder()
              .serviceInstanceId("foo")
              .serviceDefinitionId("bar")
              .build()))
      .expectNext(UpdateServiceInstanceResponse.builder().build())
      .verifyComplete();
  assertThat(this.results.getBeforeUpdate()).isEqualTo("before foo");
  assertThat(this.results.getAfterUpdate()).isEqualTo("after foo");
  assertThat(this.results.getErrorUpdate()).isNullOrEmpty();
}
origin: spring-cloud/spring-cloud-open-service-broker

@Test
public void getLastOperationSucceeds() {
  prepareLastOperationEventFlows();
  StepVerifier
      .create(serviceInstanceEventService.getLastOperation(GetLastServiceOperationRequest.builder()
          .serviceInstanceId("foo")
          .serviceDefinitionId("bar")
          .build()))
      .expectNext(GetLastServiceOperationResponse.builder().build())
      .verifyComplete();
  assertThat(this.results.getBeforeLastOperation()).isEqualTo("before foo");
  assertThat(this.results.getAfterLastOperation()).isEqualTo("after foo");
  assertThat(this.results.getErrorLastOperation()).isNullOrEmpty();
}
origin: spring-cloud/spring-cloud-open-service-broker

@Test
public void createServiceInstanceSucceeds() {
  prepareCreateEventFlows();
  StepVerifier
      .create(serviceInstanceEventService.createServiceInstance(
          CreateServiceInstanceRequest.builder()
              .serviceInstanceId("foo")
              .serviceDefinitionId("bar")
              .build()))
      .expectNext(CreateServiceInstanceResponse.builder().build())
      .verifyComplete();
  assertThat(this.results.getBeforeCreate()).isEqualTo("before foo");
  assertThat(this.results.getAfterCreate()).isEqualTo("after foo");
  assertThat(this.results.getErrorCreate()).isNullOrEmpty();
}
origin: spring-cloud/spring-cloud-open-service-broker

@Test
public void deleteServiceInstanceSucceeds() {
  prepareDeleteEventFlows();
  StepVerifier
      .create(serviceInstanceEventService.deleteServiceInstance(
          DeleteServiceInstanceRequest.builder()
              .serviceInstanceId("foo")
              .serviceDefinitionId("bar")
              .build()))
      .expectNext(DeleteServiceInstanceResponse.builder().build())
      .verifyComplete();
  assertThat(this.results.getBeforeDelete()).isEqualTo("before foo");
  assertThat(this.results.getAfterDelete()).isEqualTo("after foo");
  assertThat(this.results.getErrorDelete()).isNullOrEmpty();
}
org.assertj.core.apiAbstractStringAssertisNullOrEmpty

Popular methods of AbstractStringAssert

  • isEqualTo
  • contains
  • isNull
  • isNotNull
  • startsWith
  • isEmpty
  • isNotEqualTo
  • isNotEmpty
  • doesNotContain
  • as
  • matches
  • endsWith
  • matches,
  • endsWith,
  • isEqualToIgnoringCase,
  • containsPattern,
  • isSameAs,
  • isEqualToIgnoringWhitespace,
  • isIn,
  • isNotBlank,
  • describedAs,
  • isEqualToNormalizingNewlines

Popular in Java

  • Creating JSON documents from java classes using gson
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • putExtra (Intent)
  • getSharedPreferences (Context)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • JList (javax.swing)
  • Top PhpStorm plugins
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