Examples of validate()


Examples of org.lealone.cassandra.command.ddl.AlterKeyspace.validate()

        AlterKeyspace command = new AlterKeyspace(session);
        command.setKeyspaceName(readUniqueIdentifier());

        KSPropDefs defs = parseKSPropDefs();
        command.setKSPropDefs(defs);
        command.validate();
        return command;
    }

    protected Prepared parseDropKeyspace() {
        DropKeyspace command = new DropKeyspace(session);
View Full Code Here

Examples of org.libreplan.business.materials.entities.Material.validate()

            /*
             * "validate" method avoids that "material" goes to the Hibernate's
             * session if "material" is not valid.
             */
            material.validate();
            Registry.getMaterialDAO().save(material);
            material.dontPoseAsTransientObjectAnymore();
        }

        MaterialAssignment materialAssignment = MaterialAssignment
View Full Code Here

Examples of org.libreplan.business.orders.entities.Order.validate()

        synchronizeWithSchedule(order,
                TaskSource.persistTaskSources(taskSourceDAO));
        order.writeSchedulingDataChanges();

        order.validate();
        orderElementDAO.save(order);

        /*
         * create the customer communication to a new subcontrating project.
         */
 
View Full Code Here

Examples of org.locationtech.udig.internal.ui.UDIGTransfer.validate()

                Object element = iter.next();
               
                for( Transfer transfer : toSet ) {
                    if( transfer instanceof UDIGTransfer){
                        UDIGTransfer t=(UDIGTransfer) transfer;
                        if( !t.validate(element) )
                            toSet.remove(t);
                        continue;
                    }
                    if (transfer instanceof TextTransfer) {
                        TextTransfer t = (TextTransfer) transfer;
View Full Code Here

Examples of org.mifosplatform.portfolio.loanaccount.command.LoanUpdateCommand.validate()

        this.context.authenticatedUser();

        final LoanUpdateCommand loanUpdateCommand = this.loanUpdateCommandFromApiJsonDeserializer.commandFromApiJson(command.json());

        loanUpdateCommand.validate();

        final LocalDate dateOfLoanOfficerunAssigned = command.localDateValueOfParameterNamed("unassignedDate");

        final Loan loan = this.loanAssembler.assembleFrom(loanId);
        checkClientOrGroupActive(loan);
View Full Code Here

Examples of org.milyn.xml.EclipseFragmentXMLValidator.validate()

                } catch (SAXException e) {
                    // Ignore...
                }

                EclipseFragmentXMLValidator validator = new EclipseFragmentXMLValidator(schemaFactory);
                validator.validate(new StringSource(xmlResult.getResult()));
            } catch (Exception e) {
                throw new IllegalStateException("Error processing EDIFACT stream for '" + urn + "'.", e);
            } finally {
                Thread.currentThread().setContextClassLoader(origTCCL);
            }
View Full Code Here

Examples of org.milyn.xml.XsdDOMValidator.validate()

        XsdDOMValidator validator = new XsdDOMValidator(configDoc);

        assertEquals("http://www.milyn.org/xsd/smooks-1.1.xsd", validator.getDefaultNamespace().toString());
        assertEquals("[http://www.milyn.org/xsd/smooks-1.1.xsd, http://www.milyn.org/xsd/smooks/test-xsd-01.xsd, http://www.w3.org/2001/XMLSchema-instance]", validator.getNamespaces().toString());

        validator.validate();
    }

    public void test_digest_01_simple() throws IOException, SAXException {
        Smooks smooks = new Smooks(getClass().getResourceAsStream("config_01.xml"));
        StringResult result = new StringResult();
View Full Code Here

Examples of org.mockito.StateMaster.validate()

        ConfigurationAccess.getConfig().overrideCleansStackTrace(false);
        ConfigurationAccess.getConfig().overrideDefaultAnswer(null);
        StateMaster state = new StateMaster();
        //catch any invalid state left over after test case run
        //this way we can catch early if some Mockito operations leave weird state afterwards
        state.validate();
        //reset the state, especially, reset any ongoing stubbing for correct error messages of tests that assert unhappy paths
        state.reset();
    }

    @Before
View Full Code Here

Examples of org.mockito.internal.stubbing.answers.AnswersValidator.validate()

   
    private void addAnswer(Answer answer, boolean isConsecutive) {
        Invocation invocation = invocationForStubbing.getInvocation();
        mockingProgress.stubbingCompleted(invocation);
        AnswersValidator answersValidator = new AnswersValidator();
        answersValidator.validate(answer, invocation);
       
        if (isConsecutive) {
            stubbed.getFirst().addAnswer(answer);
        } else {
            stubbed.addFirst(new StubbedInvocationMatcher(invocationForStubbing, answer));
View Full Code Here

Examples of org.modeshape.jcr.RepositoryConfiguration.validate()

        providers.set(providerName, provider);

        // Get the changes and validate them ...
        Changes changes = editor.getChanges();
        Problems validationResults = repositoryConfig.validate(changes);

        if (validationResults.hasErrors()) {
            String msg = JcrI18n.errorsInRepositoryConfiguration.text(this.repositoryName,
                                                                      validationResults.errorCount(),
                                                                      validationResults.toString());
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.