Examples of numberOfSteps()


Examples of org.rhq.modules.plugins.jbossas7.json.CompositeOperation.numberOfSteps()

        }

        CompositeOperation cop = delegate.updateGenerateOperationFromProperties(conf, new Address());

        Assert.assertNotNull(cop);
        Assert.assertEquals(cop.numberOfSteps(), 6);

        for (int index = 0; index < 6; index++) {
            Operation step = cop.step(index);
            Assert.assertEquals(step.getOperation(), "write-attribute", "Step name was " + step.getOperation());
            Map<String, Object> additionalProperties = step.getAdditionalProperties();
View Full Code Here

Examples of org.rhq.modules.plugins.jbossas7.json.CompositeOperation.numberOfSteps()

            conf.put(new PropertySimple(name, properties.get(name)));
        }

        CompositeOperation cop = delegate.updateGenerateOperationFromProperties(conf, new Address());

        assert cop.numberOfSteps() == properties.size() : "Composite operation steps incorrect. Expected '"
            + properties.size() + "' but was '" + cop.numberOfSteps() + "'.";
        //check property values
        for (int i = 0; i < cop.numberOfSteps(); i++) {
            //each property maps to a separate operation.
            Operation step = cop.step(i);
View Full Code Here

Examples of org.rhq.modules.plugins.jbossas7.json.CompositeOperation.numberOfSteps()

        }

        CompositeOperation cop = delegate.updateGenerateOperationFromProperties(conf, new Address());

        assert cop.numberOfSteps() == properties.size() : "Composite operation steps incorrect. Expected '"
            + properties.size() + "' but was '" + cop.numberOfSteps() + "'.";
        //check property values
        for (int i = 0; i < cop.numberOfSteps(); i++) {
            //each property maps to a separate operation.
            Operation step = cop.step(i);
            assert step.getOperation().equals("write-attribute") : "Write attribute not set correctly.";
View Full Code Here

Examples of org.rhq.modules.plugins.jbossas7.json.CompositeOperation.numberOfSteps()

        CompositeOperation cop = delegate.updateGenerateOperationFromProperties(conf, new Address());

        assert cop.numberOfSteps() == properties.size() : "Composite operation steps incorrect. Expected '"
            + properties.size() + "' but was '" + cop.numberOfSteps() + "'.";
        //check property values
        for (int i = 0; i < cop.numberOfSteps(); i++) {
            //each property maps to a separate operation.
            Operation step = cop.step(i);
            assert step.getOperation().equals("write-attribute") : "Write attribute not set correctly.";
            Map<String, Object> props = step.getAdditionalProperties();
            assert props.size() == 2 : "Property list not correct. Expected '2' property but there were '"
View Full Code Here

Examples of org.rhq.modules.plugins.jbossas7.json.CompositeOperation.numberOfSteps()

        ConfigurationWriteDelegate delegate = new ConfigurationWriteDelegate(definition, connection, null);
        CompositeOperation cop = delegate.updateGenerateOperationFromProperties(configuration, new Address());

        assert cop != null;
        assert cop.numberOfSteps() == 1 : "One step was expected, but got " + cop.numberOfSteps();

    }

    /**
     * Test that if a property is required and has a defaultValue and the user just uses this,
View Full Code Here

Examples of org.rhq.modules.plugins.jbossas7.json.CompositeOperation.numberOfSteps()

        ConfigurationWriteDelegate delegate = new ConfigurationWriteDelegate(definition, connection, null);
        CompositeOperation cop = delegate.updateGenerateOperationFromProperties(configuration, new Address());

        assert cop != null;
        assert cop.numberOfSteps() == 1 : "One step was expected, but got " + cop.numberOfSteps();

    }

    /**
     * Test that if a property is required and has a defaultValue and the user just uses this,
View Full Code Here

Examples of org.rhq.modules.plugins.jbossas7.json.CompositeOperation.numberOfSteps()

        PropertySimple ps = new PropertySimple("mode",null);
        conf.put(ps);

        CompositeOperation cop = delegate.updateGenerateOperationFromProperties(conf, new Address());

        assert cop.numberOfSteps() == 1;
        Operation step1 = cop.step(0);
        assert step1.getOperation().equals("write-attribute");
        Map<String, Object> props = step1.getAdditionalProperties();
        assert props.size() == 2;
        assert props.get("name").equals("mode");
View Full Code Here

Examples of org.rhq.modules.plugins.jbossas7.json.CompositeOperation.numberOfSteps()

        PropertySimple ps = new PropertySimple("mode","ASYNC");
        conf.put(ps);

        CompositeOperation cop = delegate.updateGenerateOperationFromProperties(conf, new Address());

        assert cop.numberOfSteps() == 1;
        Operation step1 = cop.step(0);
        assert step1.getOperation().equals("write-attribute");
        Map<String, Object> props = step1.getAdditionalProperties();
        assert props.size() == 2;
        assert props.get("name").equals("mode");
View Full Code Here

Examples of org.rhq.modules.plugins.jbossas7.json.CompositeOperation.numberOfSteps()

        PropertySimple ps = new PropertySimple("mode",null);
        conf.put(ps);

        CompositeOperation cop = delegate.updateGenerateOperationFromProperties(conf, new Address());

        assert cop.numberOfSteps() == 1;
        Operation step1 = cop.step(0);
        assert step1.getOperation().equals("write-attribute");
        Map<String, Object> props = step1.getAdditionalProperties();
        assert props.size() == 2;
        assert props.get("name").equals("mode");
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.