congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
DescribableList.size
Code IndexAdd Tabnine to your IDE (free)

How to use
size
method
in
hudson.util.DescribableList

Best Java code snippets using hudson.util.DescribableList.size (Showing top 7 results out of 315)

origin: jenkinsci/configuration-as-code-plugin

  @Test
  @ConfiguredWithCode("JdkConfiguratorTest.yml")
  public void should_configure_maven_tools_and_global_config() {
    final Object descriptor = j.jenkins.getDescriptorOrDie(JDK.class);
    Assert.assertNotNull(descriptor);
    Assert.assertEquals(1, ((JDK.DescriptorImpl) descriptor).getInstallations().length);

    JDK jdk = ((JDK.DescriptorImpl) descriptor).getInstallations()[0];
    Assert.assertEquals("jdk8", jdk.getName());
    Assert.assertEquals("/jdk", jdk.getHome());

    InstallSourceProperty installSourceProperty = jdk.getProperties().get(InstallSourceProperty.class);
    Assert.assertEquals(1, installSourceProperty.installers.size());

    JDKInstaller installer = installSourceProperty.installers.get(JDKInstaller.class);
    Assert.assertEquals("jdk-8u181-oth-JPR", installer.id);
    Assert.assertTrue(installer.acceptLicense);
  }
}
origin: org.jenkins-ci.plugins/multiple-scms

@Override
public void buildEnvVars(AbstractBuild<?,?> build, Map<String, String> env) {
  // Add each SCM's env vars, appending indices where needed to avoid collisions
  for (int i = 0; i < scms.size(); i++) {
    try {
      EnvVars currScmVars = new EnvVars();
      scms.get(i).buildEnvVars(build, currScmVars);
      for (Entry<String, String> entry : currScmVars.entrySet()) {
        if (env.containsKey(entry.getKey())) {
          // We have a collision; append the index of this SCM to the env var name
          env.put(entry.getKey() + "_" + i, entry.getValue());
        } else {
          // No collision; just put the var as usual
          env.put(entry.getKey(), entry.getValue());
        }
      }
    }
    catch(NullPointerException npe)
    {}
    
  }
}
origin: i-m-c/jenkins-inheritance-plugin

str = (pubs == null || pubs.size() != 1) ? "publishers" : "publisher";
num = (pubs == null) ? 0 : pubs.size();
b.append(String.format(
    "%d %s", num, str
origin: hudson.plugins/project-inheritance

str = (pubs == null || pubs.size() != 1) ? "publishers" : "publisher";
num = (pubs == null) ? 0 : pubs.size();
b.append(String.format(
    "%d %s", num, str
origin: org.jenkins-ci.plugins/cloudbees-folder

    + ENTROPY.nextInt((int)TimeUnit.MINUTES.toMillis(HEALTH_REPORT_CACHE_REFRESH_MIN / 2));
reports = new ArrayList<HealthReport>();
List<FolderHealthMetric.Reporter> reporters = new ArrayList<FolderHealthMetric.Reporter>(healthMetrics.size());
boolean recursive = false;
boolean topLevelOnly = true;
origin: jenkinsci/cloudbees-folder-plugin

    + ENTROPY.nextInt((int)TimeUnit.MINUTES.toMillis(HEALTH_REPORT_CACHE_REFRESH_MIN / 2));
reports = new ArrayList<HealthReport>();
List<FolderHealthMetric.Reporter> reporters = new ArrayList<FolderHealthMetric.Reporter>(healthMetrics.size());
boolean recursive = false;
boolean topLevelOnly = true;
origin: jenkinsci/cloudbees-folder-plugin

/**
 * Make sure we can load the data before we supported views and the configuration of the view
 * correctly comes back.
 */
@LocalData
@Test public void dataCompatibility() throws Exception {
  Folder f = (Folder) r.jenkins.getItem("foo");
  ListView pv = (ListView)f.getPrimaryView();
  assertEquals(2,pv.getColumns().size());
  assertEquals(JobColumn.class, pv.getColumns().get(0).getClass());
  assertEquals(BuildButtonColumn.class, pv.getColumns().get(1).getClass());
  // we only have 2 columns in the zip but we expect a lot more in the out-of-the-box ListView.
  assertTrue(2<new ListView("test").getColumns().size());
}
hudson.utilDescribableListsize

Popular methods of DescribableList

  • get
  • toList
  • add
  • <init>
  • rebuild
  • remove
  • setOwner
  • getAll
  • toMap
    Creates a detached map from the current snapshot of the data, keyed from a descriptor to an instance
  • buildDependencyGraph
    Picks up DependecyDeclarers and allow it to build dependencies.
  • rebuildHetero
    Rebuilds the list by creating a fresh instances from the submitted form. This version works with the
  • addAll
  • rebuildHetero,
  • addAll,
  • isEmpty,
  • replace,
  • replaceBy,
  • addAllTo,
  • removeAll,
  • onModified,
  • clear

Popular in Java

  • Start an intent from android
  • getContentResolver (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • runOnUiThread (Activity)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Permission (java.security)
    Legacy security code; do not use.
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • JTextField (javax.swing)
  • Top 17 PhpStorm Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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