Examples of validate()


Examples of org.jasig.cas.client.validation.Cas20ProxyTicketValidator.validate()

    Cas20ProxyTicketValidator ticketValidator = new Cas20ProxyTicketValidator(casServerUrl);
      ticketValidator.setRenew(this.renewTicket);
     
      //String serviceUrl = "http://"+ httpRequest.getServerName() +":" + httpRequest.getServerPort() +
      //httpRequest.getContextPath() +"/private/classic";
      Assertion assertion = ticketValidator.validate(ticket, this.casServiceUrl);
     
      log.debug("------------------------------------------------------------------------------------");
      log.debug("Service: "+this.casServiceUrl);
      log.debug("Principal: "+assertion.getPrincipal().getName());
      log.debug("------------------------------------------------------------------------------------");
View Full Code Here

Examples of org.jasig.cas.client.validation.TicketValidator.validate()

    public void authenticateAllNullService() throws Exception {
        String serviceUrl = "https://service/context";
        ServiceAuthenticationDetails details = mock(ServiceAuthenticationDetails.class);
        when(details.getServiceUrl()).thenReturn(serviceUrl);
        TicketValidator validator = mock(TicketValidator.class);
        when(validator.validate(any(String.class),any(String.class))).thenReturn(new AssertionImpl("rod"));

        ServiceProperties serviceProperties = makeServiceProperties();
        serviceProperties.setAuthenticateAllArtifacts(true);

        CasAuthenticationProvider cap = new CasAuthenticationProvider();
View Full Code Here

Examples of org.jasig.portal.services.persondir.support.legacy.PersonDirInfo.validate()

     * Test that the validate() method of an entirely new PDI
     * throws IllegalStateException.
     */
    public void testValidateBare() {
        PersonDirInfo pdi = new PersonDirInfo();
        assertNotNull(pdi.validate());
    }
   
    /**
     * Test that a PersonDirInfo which has no uid query set throws
     * IllegalStateException on validation attempt.
View Full Code Here

Examples of org.javalite.activejdbc.test_models.Page.validate()

    @Test
    public void shouldConvertStringToNumber(){
        Page p = new Page();
        p.set("word_count", "123");
        a(p.get("word_count") instanceof Integer).shouldBeFalse();
        p.validate();
        a(p.get("word_count") instanceof Integer).shouldBeTrue();
    }
}
View Full Code Here

Examples of org.javalite.activejdbc.test_models.Person.validate()

        deleteAndPopulateTable("people");
        Person p = new Person();
        p.set("name", "Marilyn");
        p.set("last_name", "Monroe");
        p.set("dob", "1935/6/12");//wrong format
        p.validate();
        a(p.errors().size()).shouldBeEqual(1);


        p.set("dob", "1935-12-06");//right format
        p.validate();
View Full Code Here

Examples of org.javalite.activejdbc.test_models.School.validate()

public class ValidationWithResourceBundlesTest extends ActiveJDBCTest{

    @Test
    public void shouldPullCorrectMessageFromResourceBundle(){
        School s = new School();
        s.validate();
        a(s.errors().get("school_name")).shouldBeEqual("School name missing");
    }

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

Examples of org.jbake.parser.MarkupEngine.validate()

        // generate default body
        processBody(fileContents, content);

        // eventually process body using specific engine
        if (engine.validate(context)) {
            engine.processBody(context);
        } else {
            LOGGER.error("Incomplete source file ({}) for markup engine:", file, engine.getClass().getSimpleName());
            return null;
        }
View Full Code Here

Examples of org.jboss.arquillian.container.spi.client.container.ContainerConfiguration.validate()

   public ContainerConfiguration createDeployableConfiguration() throws Exception
   {
      ContainerConfiguration config = SecurityActions.newInstance(
            deployableContainer.getConfigurationClass(), new Class<?>[0], new Object[0]);
      MapObject.populate(config, containerConfiguration.getContainerProperties());
      config.validate();
      return config;
   }
  
   /* (non-Javadoc)
    * @see org.jboss.arquillian.container.impl.ContainerT#hasProtocolConfiguration(org.jboss.arquillian.spi.client.protocol.ProtocolDescription)
View Full Code Here

Examples of org.jboss.arquillian.graphene.spi.configuration.GrapheneConfiguration.validate()

        getManager().bind(SuiteScoped.class, ArquillianDescriptor.class, descriptor);
        fire(new BeforeClass(Object.class));
        assertEventFired(GrapheneConfigured.class);
        GrapheneConfiguration configuration = getManager().resolve(GrapheneConfiguration.class);
        assertNotNull("Configuration instance has to be available.", configuration);
        configuration.validate();
        assertEquals("'waitGuiInterval' should be 5", 5, configuration.getWaitGuiInterval());
        assertEquals("'waitAjaxInterval' should be 25", 25, configuration.getWaitAjaxInterval());
        assertEquals("'waitModelInterval' should be 125", 125, configuration.getWaitModelInterval());
        fire(new AfterClass(Object.class));
        assertEventFired(GrapheneUnconfigured.class);
View Full Code Here

Examples of org.jboss.arquillian.spi.client.container.ContainerConfiguration.validate()

    */
   public ContainerConfiguration createDeployableConfiguration() throws Exception
   {
      ContainerConfiguration config = deployableContainer.getConfigurationClass().newInstance();
      MapObject.populate(config, containerConfiguration.getContainerProperties());
      config.validate();
      return config;
   }
  
   public boolean hasProtocolConfiguration(ProtocolDescription description)
   {
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.