Examples of validate()


Examples of org.pentaho.platform.uifoundation.chart.DashboardWidgetComponent.validate()

    widget.setValue( 49 );
    widget.setTitle( "test widget 1" ); //$NON-NLS-1$
    widget.setUnits( "" ); //$NON-NLS-1$

    StandaloneSession session = new StandaloneSession( "BaseTest.DEBUG_JUNIT_SESSION" ); //$NON-NLS-1$
    widget.validate( session, null );

    SimpleParameterProvider requestParameters = new SimpleParameterProvider();
    SimpleParameterProvider sessionParameters = new SimpleParameterProvider();
    widget.setParameterProvider( HttpRequestParameterProvider.SCOPE_REQUEST, requestParameters );
    widget.setParameterProvider( HttpSessionParameterProvider.SCOPE_SESSION, sessionParameters );
View Full Code Here

Examples of org.pentaho.platform.uifoundation.chart.TimeSeriesCollectionChartComponent.validate()

    SimpleOutputHandler outputHandler = new SimpleOutputHandler( outputStream, false );
    BaseRequestHandler requestHandler = new BaseRequestHandler( session, null, outputHandler, null, urlFactory );

    try {
      timeSeriesChartComponent.validate( session, requestHandler );
      timeSeriesChartComponent.handleRequest( outputStream, requestHandler, contentType, parameterProviders );
    } catch ( IOException e ) {
      e.printStackTrace();
    }
  }
View Full Code Here

Examples of org.pentaho.platform.uifoundation.component.ActionComponent.validate()

        new ActionComponent(
            "samples/reporting/JFree_XQuery_Chart_report.xaction", null, IOutputHandler.OUTPUT_TYPE_DEFAULT, urlFactory, messages ); //$NON-NLS-1$
    component.setParameterProvider( IParameterProvider.SCOPE_REQUEST, parameterProvider );
    StandaloneSession session =
        new StandaloneSession( Messages.getInstance().getString( "BaseTest.DEBUG_JUNIT_SESSION" ) ); //$NON-NLS-1$
    component.validate( session, null );
    OutputStream outputStream = getOutputStream( "ReportingTest.testJFreeReportWithChartActionComponent", ".html" ); //$NON-NLS-1$ //$NON-NLS-2$
    String content = component.getContent( "text/html" ); //$NON-NLS-1$
    try {
      outputStream.write( content.getBytes() );
    } catch ( Exception e ) {
View Full Code Here

Examples of org.pentaho.platform.uifoundation.component.HtmlComponent.validate()

    HtmlComponent component = new HtmlComponent( HtmlComponent.TYPE_URL, url, "", urlFactory, messages ); //$NON-NLS-1$
    StandaloneSession session =
        new StandaloneSession( Messages.getInstance().getString( "BaseTest.DEBUG_JUNIT_SESSION" ) ); //$NON-NLS-1$
    try {
      OutputStream outputStream = getOutputStream( "HTMLComponentTest.testComponent1", ".html" ); //$NON-NLS-1$//$NON-NLS-2$
      component.validate( session, null );
      String content = component.getContent( "text/html" ); //$NON-NLS-1$
      outputStream.write( content.getBytes() );
    } catch ( IOException e ) {
      e.printStackTrace();
    }
View Full Code Here

Examples of org.pentaho.platform.uifoundation.component.xml.PMDUIComponent.validate()

    IPentahoUrlFactory urlFactory = new SimpleUrlFactory( "" ); //$NON-NLS-1$

    PMDUIComponent component = new PMDUIComponent( urlFactory, new ArrayList() );
    StandaloneSession session =
        new StandaloneSession( Messages.getInstance().getString( "BaseTest.DEBUG_JUNIT_SESSION" ) ); //$NON-NLS-1$
    component.validate( session, null );
    component.setAction( PMDUIComponent.ACTION_LIST_MODELS );

    Document doc = component.getXmlContent();
    System.out.println( doc.asXML() );
    try {
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.process.valign.BoxAlignContext.validate()

  }

  public BoxAlignContext closeContext()
  {
    final BoxAlignContext context = (BoxAlignContext) contexts.pop();
    context.validate();
    if (contexts.isEmpty())
    {
      currentLine = null;
    }
    else
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.parameters.DefaultReportParameterValidator.validate()

    final MasterReport report = new MasterReport();
    final DefaultReportParameterValidator validator = new DefaultReportParameterValidator();
    report.setDataFactory(dataFactory);
    report.setParameterDefinition(parameterDefinition);
    report.getParameterValues().put("parameter", new Object[]{"K1", new Integer(1)});
    ValidationResult validate = validator.validate(null, parameterDefinition, new DefaultParameterContext(report));
    assertFalse(validate.isEmpty());

    report.getParameterValues().put("parameter", new Object[]{"K1", "K2"});
    validate = validator.validate(null, parameterDefinition, new DefaultParameterContext(report));
    assertTrue(validate.isEmpty());
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.parameters.ReportParameterValidator.validate()

      try
      {
        final ReportParameterValidator reportParameterValidator = parameters.getValidator();
        final ValidationResult validationResult =
            reportParameterValidator.validate(new ValidationResult(), parameters, parameterContext);
        // first compute the default values ...
        this.reportParameterValues = validationResult.getParameterValues();
      }
      finally
      {
View Full Code Here

Examples of org.pentaho.reporting.libraries.base.util.LFUMap.validate()

  public void testAdd ()
  {
    final LFUMap lfuMap = new LFUMap(10);
    lfuMap.put("1", "1");
    lfuMap.validate();
    lfuMap.put("2", "2");
    lfuMap.validate();
    lfuMap.put("3", "3");
    lfuMap.validate();
    lfuMap.put("4", "4");
View Full Code Here

Examples of org.picketlink.identity.federation.api.saml.v2.sig.SAML2Signature.validate()

            return;
        }
        SAML2Signature saml2Signature = new SAML2Signature();
        PublicKey publicKey = getSignatureValidationKey(client);
        try {
            if (!saml2Signature.validate(document, publicKey)) {
                throw new VerificationException("Invalid signature on document");
            }
        } catch (ProcessingException e) {
            throw new VerificationException("Error validating signature", e);
        }
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.