Examples of allowNullValueTypeForAttribute()


Examples of org.jboss.as.model.test.ModelTestModelDescriptionValidator.ValidationConfiguration.allowNullValueTypeForAttribute()

        return config;
    }

    private static ValidationConfiguration createForHost() {
        ValidationConfiguration config = createWithGlobalOperations();
        config.allowNullValueTypeForAttribute(new ModelNode(), DOMAIN_CONTROLLER);
        config.allowNullValueTypeForOperationReplyProperties(createHostPlatformMBeanAddress(PlatformMBeanConstants.COMPILATION), READ_RESOURCE_OPERATION);
        config.allowNullValueTypeForOperationReplyProperties(createHostPlatformMBeanAddress(PlatformMBeanConstants.THREADING), READ_RESOURCE_OPERATION);
        config.allowNullValueTypeForOperationReplyProperties(createHostPlatformMBeanAddress(PlatformMBeanConstants.OPERATING_SYSTEM), READ_RESOURCE_OPERATION);
        config.allowNullValueTypeForOperationReplyProperties(createHostPlatformMBeanAddress(PlatformMBeanConstants.MEMORY_POOL), READ_RESOURCE_OPERATION);
        config.allowNullValueTypeForOperationReplyProperties(createHostPlatformMBeanAddress(PlatformMBeanConstants.RUNTIME), READ_RESOURCE_OPERATION);
View Full Code Here

Examples of org.jboss.as.model.test.ModelTestModelDescriptionValidator.ValidationConfiguration.allowNullValueTypeForAttribute()

    private static ValidationConfiguration createForDomain() {
        ValidationConfiguration config = createWithGlobalOperations();

        ModelNode rolloutPlan = new ModelNode().add(MANAGEMENT_CLIENT_CONTENT, ROLLOUT_PLANS).add(ROLLOUT_PLAN, "*");
        config.allowNullValueTypeForAttribute(rolloutPlan, CONTENT);
        config.allowNullValueTypeForOperationParameter(rolloutPlan, "store", CONTENT);
        config.allowNullValueTypeForOperationParameter(rolloutPlan, ADD, CONTENT);
        return config;
    }

View Full Code Here

Examples of org.jboss.as.subsystem.test.ModelDescriptionValidator.ValidationConfiguration.allowNullValueTypeForAttribute()

    @Test
    public void testConfiguredAllowNullValueTypeForList() {
        ModelNode description = createSubsystemSkeleton(ModelType.LIST, (ModelType)null);

        ValidationConfiguration arbitraryDescriptors = new ValidationConfiguration();
        arbitraryDescriptors.allowNullValueTypeForAttribute(ROOT_ADDRESS, ROOT_ATTR);
        arbitraryDescriptors.allowNullValueTypeForOperation(ROOT_ADDRESS, ROOT_OP);
        arbitraryDescriptors.allowNullValueTypeForAttribute(CHILD_ADDRESS, CHILD_ATTR);
        arbitraryDescriptors.allowNullValueTypeForOperation(CHILD_ADDRESS, CHILD_OP);

        List<ValidationFailure> errors = validate(description, arbitraryDescriptors);
View Full Code Here

Examples of org.jboss.as.subsystem.test.ModelDescriptionValidator.ValidationConfiguration.allowNullValueTypeForAttribute()

        ModelNode description = createSubsystemSkeleton(ModelType.LIST, (ModelType)null);

        ValidationConfiguration arbitraryDescriptors = new ValidationConfiguration();
        arbitraryDescriptors.allowNullValueTypeForAttribute(ROOT_ADDRESS, ROOT_ATTR);
        arbitraryDescriptors.allowNullValueTypeForOperation(ROOT_ADDRESS, ROOT_OP);
        arbitraryDescriptors.allowNullValueTypeForAttribute(CHILD_ADDRESS, CHILD_ATTR);
        arbitraryDescriptors.allowNullValueTypeForOperation(CHILD_ADDRESS, CHILD_OP);

        List<ValidationFailure> errors = validate(description, arbitraryDescriptors);
        dumpErrors(errors);
        Assert.assertEquals(0, errors.size());
View Full Code Here

Examples of org.jboss.as.subsystem.test.ModelDescriptionValidator.ValidationConfiguration.allowNullValueTypeForAttribute()

    @Test
    public void testConfiguredAllowNullValueTypeForObject() {
        ModelNode description = createSubsystemSkeleton(ModelType.OBJECT, (ModelType)null);

        ValidationConfiguration arbitraryDescriptors = new ValidationConfiguration();
        arbitraryDescriptors.allowNullValueTypeForAttribute(ROOT_ADDRESS, ROOT_ATTR);
        arbitraryDescriptors.allowNullValueTypeForOperation(ROOT_ADDRESS, ROOT_OP);
        arbitraryDescriptors.allowNullValueTypeForAttribute(CHILD_ADDRESS, CHILD_ATTR);
        arbitraryDescriptors.allowNullValueTypeForOperation(CHILD_ADDRESS, CHILD_OP);

        List<ValidationFailure> errors = validate(description, arbitraryDescriptors);
View Full Code Here

Examples of org.jboss.as.subsystem.test.ModelDescriptionValidator.ValidationConfiguration.allowNullValueTypeForAttribute()

        ModelNode description = createSubsystemSkeleton(ModelType.OBJECT, (ModelType)null);

        ValidationConfiguration arbitraryDescriptors = new ValidationConfiguration();
        arbitraryDescriptors.allowNullValueTypeForAttribute(ROOT_ADDRESS, ROOT_ATTR);
        arbitraryDescriptors.allowNullValueTypeForOperation(ROOT_ADDRESS, ROOT_OP);
        arbitraryDescriptors.allowNullValueTypeForAttribute(CHILD_ADDRESS, CHILD_ATTR);
        arbitraryDescriptors.allowNullValueTypeForOperation(CHILD_ADDRESS, CHILD_OP);

        List<ValidationFailure> errors = validate(description, arbitraryDescriptors);
        Assert.assertEquals(0, errors.size());
    }
View Full Code Here

Examples of org.jboss.as.subsystem.test.ModelDescriptionValidator.ValidationConfiguration.allowNullValueTypeForAttribute()

    @Test
    public void testConfiguredAllowNullValueTypeForObjectParameter() {
        ModelNode description = createSubsystemSkeleton(ModelType.OBJECT, (ModelType)null);

        ValidationConfiguration arbitraryDescriptors = new ValidationConfiguration();
        arbitraryDescriptors.allowNullValueTypeForAttribute(ROOT_ADDRESS, ROOT_ATTR);
        arbitraryDescriptors.allowNullValueTypeForOperationParameter(ROOT_ADDRESS, ROOT_OP, PARAM);
        arbitraryDescriptors.allowNullValueTypeForAttribute(CHILD_ADDRESS, CHILD_ATTR);
        arbitraryDescriptors.allowNullValueTypeForOperationParameter(CHILD_ADDRESS, CHILD_OP, PARAM);

        List<ValidationFailure> errors = validate(description, arbitraryDescriptors);
View Full Code Here

Examples of org.jboss.as.subsystem.test.ModelDescriptionValidator.ValidationConfiguration.allowNullValueTypeForAttribute()

        ModelNode description = createSubsystemSkeleton(ModelType.OBJECT, (ModelType)null);

        ValidationConfiguration arbitraryDescriptors = new ValidationConfiguration();
        arbitraryDescriptors.allowNullValueTypeForAttribute(ROOT_ADDRESS, ROOT_ATTR);
        arbitraryDescriptors.allowNullValueTypeForOperationParameter(ROOT_ADDRESS, ROOT_OP, PARAM);
        arbitraryDescriptors.allowNullValueTypeForAttribute(CHILD_ADDRESS, CHILD_ATTR);
        arbitraryDescriptors.allowNullValueTypeForOperationParameter(CHILD_ADDRESS, CHILD_OP, PARAM);

        List<ValidationFailure> errors = validate(description, arbitraryDescriptors);
        Assert.assertEquals(2, errors.size());
        assertOperationParameterFailure(errors.get(0), ROOT_ADDRESS, ROOT_OP, REPLY_PROPERTIES);
View Full Code Here

Examples of org.jboss.as.subsystem.test.ModelDescriptionValidator.ValidationConfiguration.allowNullValueTypeForAttribute()

    @Test
    public void testConfiguredAllowNullValueTypeForObjectReplyProperties() {
        ModelNode description = createSubsystemSkeleton(ModelType.OBJECT, (ModelType)null);

        ValidationConfiguration arbitraryDescriptors = new ValidationConfiguration();
        arbitraryDescriptors.allowNullValueTypeForAttribute(ROOT_ADDRESS, ROOT_ATTR);
        arbitraryDescriptors.allowNullValueTypeForOperationReplyProperties(ROOT_ADDRESS, ROOT_OP);
        arbitraryDescriptors.allowNullValueTypeForAttribute(CHILD_ADDRESS, CHILD_ATTR);
        arbitraryDescriptors.allowNullValueTypeForOperationReplyProperties(CHILD_ADDRESS, CHILD_OP);

        List<ValidationFailure> errors = validate(description, arbitraryDescriptors);
View Full Code Here

Examples of org.jboss.as.subsystem.test.ModelDescriptionValidator.ValidationConfiguration.allowNullValueTypeForAttribute()

        ModelNode description = createSubsystemSkeleton(ModelType.OBJECT, (ModelType)null);

        ValidationConfiguration arbitraryDescriptors = new ValidationConfiguration();
        arbitraryDescriptors.allowNullValueTypeForAttribute(ROOT_ADDRESS, ROOT_ATTR);
        arbitraryDescriptors.allowNullValueTypeForOperationReplyProperties(ROOT_ADDRESS, ROOT_OP);
        arbitraryDescriptors.allowNullValueTypeForAttribute(CHILD_ADDRESS, CHILD_ATTR);
        arbitraryDescriptors.allowNullValueTypeForOperationReplyProperties(CHILD_ADDRESS, CHILD_OP);

        List<ValidationFailure> errors = validate(description, arbitraryDescriptors);
        Assert.assertEquals(2, errors.size());
        assertOperationParameterFailure(errors.get(0), ROOT_ADDRESS, ROOT_OP, PARAM);
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.