congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
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

  • Making http post requests using okhttp
  • getSharedPreferences (Context)
  • putExtra (Intent)
  • runOnUiThread (Activity)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Best plugins for Eclipse
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