summaryrefslogtreecommitdiff
path: root/sfx2/qa
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2008-01-14 16:27:15 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2008-01-14 16:27:15 +0000
commit61980f6536a7fbbcec52f32eb9ece722fae59715 (patch)
tree0f3ab4ddd42e337b81d77233edb239f32ba2db4b /sfx2/qa
parent674ea820abd91196e11335e6a2f2e068a9a75008 (diff)
INTEGRATION: CWS fwk79 (1.1.2); FILE ADDED
2007/12/04 11:16:03 mav 1.1.2.1: #i60116# introduce the complex test for StandaloneDocumentInfo
Diffstat (limited to 'sfx2/qa')
-rw-r--r--sfx2/qa/complex/standalonedocumentinfo/TestHelper.java56
1 files changed, 56 insertions, 0 deletions
diff --git a/sfx2/qa/complex/standalonedocumentinfo/TestHelper.java b/sfx2/qa/complex/standalonedocumentinfo/TestHelper.java
new file mode 100644
index 0000000000..2914319f07
--- /dev/null
+++ b/sfx2/qa/complex/standalonedocumentinfo/TestHelper.java
@@ -0,0 +1,56 @@
+/*************************************************************************
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * $RCSfile: TestHelper.java,v $
+ *
+ * $Revision: 1.2 $
+ *
+ * last change: $Author: ihi $ $Date: 2008-01-14 17:27:15 $
+ *
+ * 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.standalonedocumentinfo;
+
+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 );
+ }
+}