Examples of validate()


Examples of mf.org.apache.xerces.impl.dv.XSSimpleType.validate()

                if (oneAttr.dvIndex >= 0) {
                    if (oneAttr.dvIndex != DT_STRING &&
                        oneAttr.dvIndex != DT_XPATH &&
                        oneAttr.dvIndex != DT_XPATH1) {
                        XSSimpleType dv = fExtraDVs[oneAttr.dvIndex];
                        Object avalue = dv.validate(attrVal, schemaDoc.fValidationContext, null);
                        // kludge to handle chameleon includes/redefines...
                        if (oneAttr.dvIndex == DT_QNAME) {
                            QName qname = (QName)avalue;
                            if(qname.prefix == XMLSymbols.EMPTY_STRING && qname.uri == null && schemaDoc.fIsChameleonSchema)
                                qname.uri = schemaDoc.fTargetNamespace;
View Full Code Here

Examples of mikera.matrixx.impl.SparseColumnMatrix.validate()

    M1.replaceColumn(1, v1);

        int[] index = {0,2};
        double[] data = {7,8};
    SparseColumnMatrix M2 = SparseColumnMatrix.create(Vector.of(0,1,2),SparseIndexedVector.wrap(3, index, data),null);
        M2.validate();
   
    M1.add(M2);         // test adding SparseColumnMatrix
    assertEquals(2, M1.get(1,1), 0.01);
  }
View Full Code Here

Examples of mks.integrations.common.TriclopsSiSandbox.validate()

  public static TriclopsSiSandbox createSandbox(String pjFilePath) throws TriclopsException {
    synchronized (mksLock) {
      TriclopsSiSandbox siSandbox = new TriclopsSiSandbox(CLIENT);
      siSandbox.setPath(pjFilePath);
      siSandbox.setIdeProjectPath(pjFilePath);
      siSandbox.validate();
      return siSandbox;
    }
  }

  public static TriclopsSiMembers createMembers(MksNativeSandboxInfo key) {
View Full Code Here

Examples of model.forms.RegisterForm.validate()

    registerForm.email="susan.g.fung@gmail.com";
    registerForm.firstName="Susan";
    registerForm.lastName="Fung";
    registerForm.password="abc";
    registerForm.password2="abcd";
    String message = registerForm.validate();
    Assert.assertTrue(message.equals(ApplicationConstants.PASSWORD_MISMATCH));
    }

  @Test
    public void userAlreadyRegistered() {
View Full Code Here

Examples of models.Article.validate()

        article.save();
       
        // Still no activity for the article
        assertEquals(0, Activity.count("article = ?", article));
       
        article.validate();
        // 1 comment activity amongst others
        assertEquals(1, CommentArticleActivity.count("article = ?", article));
        Activity a = CommentArticleActivity.find("article = ?", article).first();
        assertActivity(a);
        assertTrue(a instanceof CommentArticleActivity);
View Full Code Here

Examples of models.Talk.validate()

    @Test
    public void grantedSpeaker() {
        // Member become speaker of a validated talk
        final Talk t = createTalk(member);
        assertEquals(EnumSet.noneOf(Badge.class), computer.compute(member, new BadgeComputationContext()));
        t.validate();
        assertEquals(EnumSet.of(Badge.Speaker), computer.compute(member, new BadgeComputationContext()));
    }

    @Test
    public void grantedSpeakerPadawan() {
View Full Code Here

Examples of net.buffalo.request.RequestWorker.validate()

    } else {
      throw new ServletException("Cannot find the request worker!");
    }
   
    try {
      worker.validate(request, response);
    } catch (ValidationException ex) {
      throw new ServletException("Service validation error", ex);
    }
   
    worker.processRequest(request, response);
View Full Code Here

Examples of net.datacrow.console.menu.DcFileRenamerPopupMenu.validate()

            }
        }
       
        if (SwingUtilities.isRightMouseButton(e) && getCaretPosition() > -1) {
            DcFileRenamerPopupMenu popupmenu = new DcFileRenamerPopupMenu(this, module);
            popupmenu.validate();
            popupmenu.show(this, e.getX(), e.getY());
        }
    }   
}
View Full Code Here

Examples of net.datacrow.console.menu.DcFileRenamerPreviewPopupMenu.validate()

    @Override
    public void mouseReleased(MouseEvent e) {
        if (SwingUtilities.isRightMouseButton(e)) {
           
            DcFileRenamerPreviewPopupMenu popupmenu = new DcFileRenamerPreviewPopupMenu(this);
            popupmenu.validate();
            popupmenu.show(table, e.getX(), e.getY());
        }
    }
}
View Full Code Here

Examples of net.fortuna.ical4j.model.Calendar.validate()

                }
            }
        }
        if (Debug.verboseOn()) {
            try {
                calendar.validate(true);
                Debug.logVerbose("iCalendar passes validation", module);
            } catch (ValidationException e) {
                Debug.logVerbose("iCalendar fails validation: " + e, module);
            }
        }
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.