summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2008-01-04 15:36:09 +0000
committerOliver Bolte <obo@openoffice.org>2008-01-04 15:36:09 +0000
commit0be2eabe8dbc40438328e874abf09361bf839723 (patch)
tree8792b49435f9af76d47561305c03c2c0b1cab485 /comphelper
parent38a8dfb8f61eb2f1f896396eea3cfb8579d65bc0 (diff)
INTEGRATION: CWS fwk77 (1.1.2); FILE ADDED
2007/10/18 12:59:52 mav 1.1.2.1: #i81435# test for SequenceOutputStream
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/qa/complex/sequenceoutputstream/TestHelper.java57
1 files changed, 57 insertions, 0 deletions
diff --git a/comphelper/qa/complex/sequenceoutputstream/TestHelper.java b/comphelper/qa/complex/sequenceoutputstream/TestHelper.java
new file mode 100644
index 000000000000..abc2fc51dd97
--- /dev/null
+++ b/comphelper/qa/complex/sequenceoutputstream/TestHelper.java
@@ -0,0 +1,57 @@
+/*************************************************************************
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * $RCSfile: TestHelper.java,v $
+ *
+ * $Revision: 1.2 $
+ *
+ * last change: $Author: obo $ $Date: 2008-01-04 16:36:09 $
+ *
+ * The Contents of this file are made available subject to
+ * the terms of GNU Lesser General Public License Version 2.1.
+ *
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2005 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ ************************************************************************/
+package complex.sequenceoutputstream;
+
+import share.LogWriter;
+
+public class TestHelper {
+ LogWriter m_aLogWriter;
+ String m_sTestPrefix;
+
+ /** Creates a new instance of TestHelper */
+ public TestHelper ( LogWriter aLogWriter, String sTestPrefix ) {
+ m_aLogWriter = aLogWriter;
+ m_sTestPrefix = sTestPrefix;
+ }
+
+ public void Error ( String sError ) {
+ m_aLogWriter.println ( m_sTestPrefix + "Error: " + sError );
+ }
+
+ public void Message ( String sMessage ) {
+ m_aLogWriter.println ( m_sTestPrefix + sMessage );
+ }
+}
+