Package com.sonyericsson.hudson.plugins.metadata.model

Examples of com.sonyericsson.hudson.plugins.metadata.model.MetadataJobProperty.addChild()


    public void testMatrixConfiguration() throws Exception {
        MatrixProject matrix = this.createMatrixProject("myMatrix");
        matrix.getAxes().add(new TextAxis("Test1", "one", "two"));
        matrix.getAxes().add(new TextAxis("Test2", "A", "B"));
        MetadataJobProperty property = new MetadataJobProperty();
        property.addChild(TreeStructureUtil.createPath("hello", "my matrix description", false, false,
                "the", "world", "says"));
        matrix.addProperty(property);
        configRoundtrip(matrix);

        //give the controller some time to work on the separate thread
View Full Code Here


        if (property == null) {
            property = new MetadataJobProperty();
            project.addProperty(property);
        }
        MetadataJobProperty metadataJobProperty = (MetadataJobProperty)property;
        metadataJobProperty.addChild(tree);

        FreeStyleBuild build = buildAndAssertSuccess(project);
        MetadataBuildAction action = build.getAction(MetadataBuildAction.class);
        assertNotNull(action);
View Full Code Here

                    TreeStructureUtil.addValue(combinationNode, axis.getValue(), "", "axis", axis.getKey());
                }
                jobInfo.addChild(matrixNode);
            }
            logger.finer("Adding standard generated metadata");
            property.addChild(jobInfo);

            ExtensionList<JobMetadataContributor> contributors = JobMetadataContributor.all();
            for (JobMetadataContributor contributor : contributors) {
                List<MetadataValue> dataFor = contributor.getMetaDataFor(project);
                if (dataFor != null && !dataFor.isEmpty()) {
View Full Code Here

    public void testDoUpdateTreeWithReplace() throws Exception {
        TreeNodeMetadataValue path = TreeStructureUtil.createPath("Bobby", "description", "owner", "name");
        TreeStructureUtil.addValue(path, "Admin", "What is the owner", "type");
        MetadataJobProperty myContainer = spy(new MetadataJobProperty());
        when(myContainer.getACL()).thenReturn(acl);
        myContainer.addChild(path);

        String replace = TreeStructureUtil.createPath("Tomas", "description", "owner", "name").toJson().toString();


        JSONObject expectedJson = new JSONObject();
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.