Examples of check()


Examples of org.objectweb.joram.shared.security.Identity.check()

      if (logger.isLoggable(BasicLevel.ERROR))
        logger.log(BasicLevel.ERROR, "User [" + identity.getUserName() + "] does not exist");
      throw new Exception("User [" + identity.getUserName() + "] does not exist");
    }

    if (!userIdentity.check(identity)) {
      if (logger.isLoggable(BasicLevel.ERROR))
        logger.log(BasicLevel.ERROR, "identity check failed.");
      throw new Exception("identity check failed.");
    }
View Full Code Here

Examples of org.objectweb.speedo.pobjects.basic.BasicType.check()

      pmf.getDataStoreCache().evictAll();

        pm.currentTransaction().begin();
      bt = (BasicType) pm.getObjectById(oid, false);
      Assert.assertNotNull("bt is null", bt);
    bt.check(longval);
      pm.deletePersistent(bt);
      pm.currentTransaction().commit();
        pm.close();
    }
    public void testBasicType35() {
View Full Code Here

Examples of org.obolibrary.oboformat.model.OBODoc.check()

    public List<Diff> roundTripOBODoc(@Nonnull OBODoc obodoc,
            boolean isExpectRoundtrip) throws Exception {
        OWLOntology oo = convert(obodoc);
        OBODoc obodoc2 = convert(oo);
        obodoc2.check();
        writeOBO(obodoc2);
        List<Diff> diffs = OBODocDiffer.getDiffs(obodoc, obodoc2);
        if (isExpectRoundtrip) {
            assertEquals("Expected no diffs but " + diffs, 0, diffs.size());
        }
View Full Code Here

Examples of org.outerj.expression.Expression.check()

    {
        FormulaParser parser = new FormulaParser(new java.io.StringReader(expressionString)); //, functionFactory);
        parser.sum();

        Expression expression = parser.getExpression();
        expression.check();

        return expression;
    }
}
View Full Code Here

Examples of org.ow2.easybeans.tests.common.ejbs.base.invocationcontext.ItfInvocation00.check()

     * @param beanClass bean class
     * @throws Exception Exception if there is a problem with the test.
     */
    private void testInvocation(final Class beanClass) throws Exception {
        ItfInvocation00 icBean = getBeanRemoteInstance(beanClass, ItfInvocation00.class);
        icBean.check();
    }

    /**
     * Verifies if the intercepted method parameters can be modified to a null
     * reference. The interceptor method is on the bean class.
View Full Code Here

Examples of org.ow2.easybeans.tests.common.ejbs.stateless.containermanaged.callbacklogger.CallbackChecker.check()

        lstResult.add(PrintOrder06Interceptor.class.toString());
        lstResult.add(MDBInvocationOrder00.class.toString());

        // Verifies the invoked interceptors.
        try {
            checker.check(MDBInvocationOrder00.class.toString(), UNDEFINED, lstResult);
            super.log(MDBInvocationOrder00.class.toString(), AROUND_INVOKE, MDBInvocationOrder00.class.toString());
        } catch (Exception e) {
            logger.error("Error verifying interceptors order. Exception: ", e);
        }
View Full Code Here

Examples of org.qi4j.api.metrics.MetricsHealthCheck.check()

                throws Exception
            {
                throw new RuntimeException( "Not healthy!!!" );
            }
        } );
        test.check(); // Should not throw an exception, as it should have been replaced by a null implementation.
    }

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

Examples of org.rioproject.impl.associations.filter.VersionMatchFilter.check()

public class VersionMatchFilterTest {

    @Test
    public void testVersionMatchFilter1() {
        VersionMatchFilter versionMatchFilter = new VersionMatchFilter();
        Assert.assertTrue(versionMatchFilter.check(makeAssociationDescriptor("1.*"), makeServiceItem("1.1")));
    }

    @Test
    public void testVersionMatchFilter2() {
        VersionMatchFilter versionMatchFilter = new VersionMatchFilter();
View Full Code Here

Examples of org.springmodules.validation.util.condition.Condition.check()

        BeanWrapper wrapper = wrapBean(obj);
        for (int i=0; i<cascadeValidations.length; i++) {
            CascadeValidation cascadeValidation = cascadeValidations[i];
            Condition applicabilityCondition = cascadeValidation.getApplicabilityCondition();

            if (!applicabilityCondition.check(obj)) {
                continue;
            }

            String propertyName = cascadeValidation.getPropertyName();
            Class propertyType = wrapper.getPropertyType(propertyName);
View Full Code Here

Examples of org.vngx.jsch.util.HostKeyRepository.check()

    // Check host against known hosts repository
    HostKeyRepository hkr = JSch.getInstance().getHostKeyRepository();
    Check keyCheck;
    synchronized( hkr ) {
      keyCheck = hkr.check(chost, kex.K_S);
    }

    boolean insert = false;
    String shkc = _session.getConfig().getString(SessionConfig.STRICT_HOST_KEY_CHECKING);
    if( ("ask".equals(shkc) || "yes".equals(shkc)) && keyCheck == Check.CHANGED ) {
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.