Tabnine Logo
ImmutableList.isEmpty
Code IndexAdd Tabnine to your IDE (free)

How to use
isEmpty
method
in
org.apache.beam.vendor.guava.v20_0.com.google.common.collect.ImmutableList

Best Java code snippets using org.apache.beam.vendor.guava.v20_0.com.google.common.collect.ImmutableList.isEmpty (Showing top 1 results out of 315)

origin: org.apache.beam/beam-runners-flink_2.11

@Test
public void shouldUseTransformOverrides() {
 boolean[] testParameters = {true, false};
 for (boolean streaming : testParameters) {
  FlinkPipelineOptions options = PipelineOptionsFactory.as(FlinkPipelineOptions.class);
  options.setStreaming(streaming);
  options.setRunner(FlinkRunner.class);
  FlinkPipelineExecutionEnvironment flinkEnv = new FlinkPipelineExecutionEnvironment(options);
  Pipeline p = Mockito.spy(Pipeline.create(options));
  flinkEnv.translate(p);
  ArgumentCaptor<ImmutableList> captor = ArgumentCaptor.forClass(ImmutableList.class);
  Mockito.verify(p).replaceAll(captor.capture());
  ImmutableList<PTransformOverride> overridesList = captor.getValue();
  assertThat(overridesList.isEmpty(), is(false));
  assertThat(
    overridesList.size(), is(FlinkTransformOverrides.getDefaultOverrides(options).size()));
 }
}
org.apache.beam.vendor.guava.v20_0.com.google.common.collectImmutableListisEmpty

Popular methods of ImmutableList

  • of
  • builder
  • copyOf
  • size

Popular in Java

  • Making http requests using okhttp
  • compareTo (BigDecimal)
  • getApplicationContext (Context)
  • scheduleAtFixedRate (Timer)
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • JFileChooser (javax.swing)
  • Top Vim 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