/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
package mod._stm;
import java.io.PrintWriter;
import java.util.ArrayList;
import lib.TestCase;
import lib.TestEnvironment;
import lib.TestParameters;
import com.sun.star.io.XActiveDataSink;
import com.sun.star.io.XActiveDataSource;
import com.sun.star.io.XInputStream;
import com.sun.star.io.XOutputStream;
import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star.uno.UnoRuntime;
import com.sun.star.uno.XInterface;
/**
* Test for object which is represented by service
* com.sun.star.io.MarkableOutputStream.
* Object implements the following interfaces :
*
*
com::sun::star::io::XMarkableStream
*
com::sun::star::io::XActiveDataSource
*
com::sun::star::io::XOutputStream
*
com::sun::star::io::XConnectable
*
* @see com.sun.star.io.MarkableOutputStream
* @see com.sun.star.io.XMarkableStream
* @see com.sun.star.io.XActiveDataSource
* @see com.sun.star.io.XOutputStream
* @see com.sun.star.io.XConnectable
* @see ifc.io._XMarkableStream
* @see ifc.io._XActiveDataSource
* @see ifc.io._XOutputStream
* @see ifc.io._XConnectable
*/
public class MarkableOutputStream extends TestCase {
/**
* Creating a TestEnvironment for the interfaces to be tested.
* Creates an instances of services com.sun.star.io.Pipe,
* com.sun.star.io.MarkableInputStream and
* com.sun.star.io.MarkableOutputStream.
* Plugs the created pipe as output stream for the created
* MarkableOutputStream. Plugs the created pipe as input stream
* for the created MarkableInputStream.
* Object relations created :
*
*
'ByteData' for
* {@link ifc.io._XOutputStream}(the data that should be written into
* the stream)
*
'StreamData' for
* {@link ifc.io._XDataOutputStream}(the data that should be
* written into the stream)
*
'Connectable' for
* {@link ifc.io._XConnectable}
* (another object that can be connected)
*
'OutputStream' for
* {@link ifc.io._XActiveDataSource}
* (an input stream to set and get)
*
'XOutputStream.StreamChecker' for
* {@link ifc.io._XOutputStream}( implementation of the interface
* ifc.io._XOutputStream.StreamChecker )