Examples of NullOutputStream


Examples of org.pentaho.reporting.libraries.base.util.NullOutputStream

  public static boolean createPlainText(final MasterReport report)
  {
    try
    {
      PlainTextReportUtil.createPlainText(report, new NullOutputStream(), 10, 15);
      return true;
    }
    catch (ReportParameterValidationException p)
    {
      return true;
View Full Code Here

Examples of org.pentaho.reporting.libraries.base.util.NullOutputStream

  public static void createRTF(final MasterReport report)
      throws Exception
  {
    try
    {
      RTFReportUtil.createRTF(report, new NullOutputStream());
    }
    catch (IndexOutOfBoundsException ibe)
    {
      // this is a known iText bug that does not get fixed.
    }
View Full Code Here

Examples of org.rascalmpl.library.cobra.util.NullOutputStream

  }

  public IValue _quickcheck(IValue function, IBool verbose, IBool maxVerbose, IInteger maxDepth, IInteger tries,
      IEvaluatorContext eval) {

    NullOutputStream nullStream = new NullOutputStream();
    PrintWriter printer = new PrintWriter(nullStream);
    PrintWriter out = (verbose.getValue()) ? eval.getStdOut() : printer;

    ArrayList<AbstractFunction> functions = extractFunctions(function, eval);
View Full Code Here

Examples of ro.isdc.wro.util.io.NullOutputStream

      // mock request
      final HttpServletRequest request = Mockito.mock(HttpServletRequest.class);
      Mockito.when(request.getRequestURI()).thenReturn(group);
      // mock response
      final HttpServletResponse response = Mockito.mock(HttpServletResponse.class);
      Mockito.when(response.getOutputStream()).thenReturn(new DelegatingServletOutputStream(new NullOutputStream()));

      // init context
      final WroConfiguration config = Context.get().getConfig();
      Context.set(Context.webContext(request, response, Mockito.mock(FilterConfig.class)), config);
      // perform processing
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.