Examples of verify()


Examples of com.volantis.shared.metadata.type.mutable.MutableChoiceType.verify()

            TYPE_FACTORY.createChoiceType();

        // normal case
        final MutableChoiceValue choiceValue =
            VALUE_FACTORY.createChoiceValue();
        Collection errors = choiceType.verify(choiceValue);
        assertEquals(0, errors.size());

        // invalid type
        final BooleanValue booleanValue = VALUE_FACTORY.createBooleanValue();
        errors = choiceType.verify(booleanValue);
View Full Code Here

Examples of com.volantis.shared.metadata.type.mutable.MutableCollectionType.verify()

        collectionType.setMemberTypeConstraint(memberTypeConstraint);

        // check constraint with right value
        final MutableCollectionValue collectionValue =
            createCollectionValue(new String[]{"one", "two"});
        Collection errors = collectionType.verify(collectionValue);
        assertEquals(0, errors.size());

        // check constraint violation
        memberTypeConstraint.setMemberType(TYPE_FACTORY.createBooleanType());
        collectionType.setMemberTypeConstraint(memberTypeConstraint);
View Full Code Here

Examples of com.volantis.shared.metadata.type.mutable.MutableListType.verify()

        listType.setUniqueMemberConstraint(uniqueMemberConstraint);

        // check constraint with right value
        MutableListValue listValue =
            (MutableListValue) createCollectionValue(new String[]{"one", "two"});
        Collection errors = listType.verify(listValue);
        assertEquals(0, errors.size());

        // check constraint violation
        listValue =
            (MutableListValue) createCollectionValue(new String[]{"one", "one"});
View Full Code Here

Examples of com.volantis.shared.metadata.type.mutable.MutableNumberType.verify()

        final MutableNumberType numberType = TYPE_FACTORY.createNumberType();

        // normal case
        MutableNumberValue numberValue = VALUE_FACTORY.createNumberValue();
        numberValue.setValue(new Integer(5));
        Collection errors = numberType.verify(numberValue);
        assertEquals(0, errors.size());

        // null value
        numberValue = VALUE_FACTORY.createNumberValue();
        errors = numberType.verify(numberValue);
View Full Code Here

Examples of com.volantis.shared.metadata.type.mutable.MutableQuantityType.verify()

        final MutableNumberValue magnitudeValue =
            VALUE_FACTORY.createNumberValue();
        magnitudeValue.setValue(new Integer(123));
        quantityValue.setMagnitudeValue(magnitudeValue);
        quantityValue.setUnitValue(QuantityUnits.CENTIMETERS);
        Collection errors = quantityType.verify(quantityValue);
        assertEquals(0, errors.size());

        // invalid magnitude type
        magnitudeValue.setValue(new Byte((byte) 42));
        quantityValue.setMagnitudeValue(magnitudeValue);
View Full Code Here

Examples of com.volantis.shared.metadata.type.mutable.MutableStringType.verify()

        final MutableStringType stringType = TYPE_FACTORY.createStringType();

        // normal case
        MutableStringValue stringValue = VALUE_FACTORY.createStringValue();
        stringValue.setValue("Foo");
        Collection errors = stringType.verify(stringValue);
        assertEquals(0, errors.size());

        // null value
        stringValue = VALUE_FACTORY.createStringValue();
        errors = stringType.verify(stringValue);
View Full Code Here

Examples of com.volantis.shared.metadata.type.mutable.MutableStructureType.verify()

            TYPE_FACTORY.createStructureType();

        // normal case
        final MutableStructureValue structureValue =
            VALUE_FACTORY.createStructureValue();
        Collection errors = structureType.verify(structureValue);
        assertEquals(0, errors.size());

        // invalid type
        final BooleanValue booleanValue = VALUE_FACTORY.createBooleanValue();
        errors = structureType.verify(booleanValue);
View Full Code Here

Examples of com.volantis.testtools.mock.ExpectationContainer.verify()

                // Verify all expectations.
                for (Iterator iterator = getExpectations().iterator(); iterator.hasNext();)
                {
                    ExpectationContainer container =
                            (ExpectationContainer) iterator.next();
                    container.verify();
                }
            }
        } finally {
            // Clear the state.
            setState(null);
View Full Code Here

Examples of com.volantis.xml.pipeline.sax.impl.template.TValue.verify()

                    dynamicProcess.getPipelineContext()
                            .getFlowControlManager().exitCurrentElement();

                    // Record the fact that the existing binding value is
                    // "good"
                    boundValue.verify();

                    model.transition(TemplateSchema.VALUE_END);

                    action = new EndParameterAction(model);
                }
View Full Code Here

Examples of cryptix.openpgp.PGPDetachedSignatureMessage.verify()

        //**********************************************************************
        // Verify the message.
        //**********************************************************************
        try {
       
            if (detachedSig.verify(originalMsg, bundle)) {
                System.out.println("Signature OK");
               
            } else {
                System.out.println("Signature BAD");
            }
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.