Examples of AxisList


Examples of hudson.matrix.AxisList

        }
    }
   
    public void testMatrixBuildsOnlyExactRuns() throws Exception {
        MatrixProject upstream = createMatrixProject();
        upstream.setAxes(new AxisList(new TextAxis("childname", "child1", "child2", "child3")));
        upstream.getBuildersList().add(new WriteFileBuilder("properties.txt", "triggered_${childname}=true"));
       
        FreeStyleProject downstream = createFreeStyleProject();
       
        // Run build.
        // builds of child1, child2, child3 is created.
        upstream.scheduleBuild2(0).get();
       
        // child2 is dropped
        upstream.setAxes(new AxisList(new TextAxis("childname", "child1", "child3")));
       
        // without onlyExactRuns
        {
            upstream.getPublishersList().clear();
            upstream.getPublishersList().add(new BuildTrigger(
View Full Code Here

Examples of hudson.matrix.AxisList

    @Bug(22705)
    public void testMatrixBuildsConfiguration() throws Exception {
        FreeStyleProject downstream = createFreeStyleProject();
       
        MatrixProject upstream = createMatrixProject();
        upstream.setAxes(new AxisList(new TextAxis("axis1", "value1", "value2")));
        upstream.getPublishersList().add(new BuildTrigger(
                new BuildTriggerConfig(downstream.getFullName(), ResultCondition.SUCCESS, true, Arrays.<AbstractBuildParameters>asList(
                        new FileBuildParameters("properties.txt", "UTF-8", true, true, "axis1=value1", true)
                ))
        ));
View Full Code Here

Examples of hudson.matrix.AxisList

    @Override
    protected MatrixProject createMatrixProject(String name) throws IOException {
        MatrixProject p = super.createMatrixProject(name);
        // set up 2x2 matrix
        AxisList axes = new AxisList();
        axes.add(new TextAxis("db","mysql","oracle"));
        axes.add(new TextAxis("direction","north","south"));
        p.setAxes(axes);

        return p;
    }
View Full Code Here

Examples of hudson.matrix.AxisList

            if (StringUtils.isBlank(getCombinationFilter())) {
              // no combination filter stands for all children.
              return true;
            }
            Combination c = run.getParent().getCombination();
            AxisList axes = run.getParent().getParent().getAxes();
           
            return c.evalGroovyExpression(axes, getCombinationFilter());
          }
        }
      );
View Full Code Here

Examples of hudson.matrix.AxisList

    /**
     * Verify {@link CopyOnWriteListProjectProperty#getDefaultValue()} method.
     */
    @Test
    public void testAxisListProjectPropertyGetDefaultValue() {
        AxisList defaultValue = property.getDefaultValue();
        assertNotNull(defaultValue);
        assertTrue(defaultValue.isEmpty());
    }
View Full Code Here

Examples of hudson.matrix.AxisList

        assertTrue(property.allowOverrideValue(null, new Object()));
        //Test properties that don't have correct equals methods
        assertFalse(property.allowOverrideValue(new JavadocArchiver("", false), new JavadocArchiver("", false)));
        assertTrue(property.allowOverrideValue(new JavadocArchiver("", true), new JavadocArchiver("", false)));
        //Object with transient filds should be taken into account
        assertTrue(property.allowOverrideValue(new AxisList(new Axis("DB", "mysql")), new AxisList()));
        assertTrue(property.allowOverrideValue(new AxisList(new Axis("DB", "mysql")),
            new AxisList(new Axis("DB", "mysql", "mssql"))));
        assertTrue(property.allowOverrideValue(new AxisList(new Axis("DB", "mysql")),
            new AxisList(new Axis("DB", "mssql"))));
    }
View Full Code Here

Examples of hudson.matrix.AxisList

        super(job);
    }

    @Override
    public AxisList getDefaultValue() {
        return new AxisList();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.