congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
MaterialConfigs.scmMaterialsHaveDestination
Code IndexAdd Tabnine to your IDE (free)

How to use
scmMaterialsHaveDestination
method
in
com.thoughtworks.go.config.materials.MaterialConfigs

Best Java code snippets using com.thoughtworks.go.config.materials.MaterialConfigs.scmMaterialsHaveDestination (Showing top 1 results out of 315)

origin: gocd/gocd

@Test
public void shouldCheckSCMMaterialsHaveDestinationCorrectly() {
  HgMaterialConfig materialConfigOne = new HgMaterialConfig("http://url1", null);
  materialConfigOne.setConfigAttributes(Collections.singletonMap(ScmMaterialConfig.FOLDER, "folder"));
  CruiseConfig config = GoConfigMother.configWithPipelines("one");
  PipelineConfig pipelineOne = config.pipelineConfigByName(new CaseInsensitiveString("one"));
  pipelineOne.setMaterialConfigs((new MaterialConfigs(materialConfigOne)));
  assertThat(pipelineOne.materialConfigs().scmMaterialsHaveDestination(), is(true));
  PluggableSCMMaterialConfig materialConfigTwo = new PluggableSCMMaterialConfig(null, SCMMother.create("scm-id"), null, null);
  pipelineOne.materialConfigs().add(materialConfigTwo);
  assertThat(pipelineOne.materialConfigs().scmMaterialsHaveDestination(), is(false));
}
com.thoughtworks.go.config.materialsMaterialConfigsscmMaterialsHaveDestination

Popular methods of MaterialConfigs

  • <init>
  • add
  • get
  • clear
  • first
  • errors
  • findDependencyMaterial
  • forEach
  • size
  • validate
  • getExistingOrDefaultMaterial
  • hasDependencyMaterial
  • getExistingOrDefaultMaterial,
  • hasDependencyMaterial,
  • hasMaterialWithFingerprint,
  • isEmpty,
  • setConfigAttributes,
  • validateTree,
  • addAll,
  • addError,
  • addMaterialConfig,
  • displayNameFor

Popular in Java

  • Finding current android device location
  • startActivity (Activity)
  • scheduleAtFixedRate (Timer)
  • setRequestProperty (URLConnection)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • 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