1*113d1ee9SAndrew Rist /************************************************************** 2*113d1ee9SAndrew Rist * 3*113d1ee9SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*113d1ee9SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*113d1ee9SAndrew Rist * distributed with this work for additional information 6*113d1ee9SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*113d1ee9SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*113d1ee9SAndrew Rist * "License"); you may not use this file except in compliance 9*113d1ee9SAndrew Rist * with the License. You may obtain a copy of the License at 10*113d1ee9SAndrew Rist * 11*113d1ee9SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*113d1ee9SAndrew Rist * 13*113d1ee9SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*113d1ee9SAndrew Rist * software distributed under the License is distributed on an 15*113d1ee9SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*113d1ee9SAndrew Rist * KIND, either express or implied. See the License for the 17*113d1ee9SAndrew Rist * specific language governing permissions and limitations 18*113d1ee9SAndrew Rist * under the License. 19*113d1ee9SAndrew Rist * 20*113d1ee9SAndrew Rist *************************************************************/ 21*113d1ee9SAndrew Rist 22cdf0e10cSrcweir package complex.embedding; 23cdf0e10cSrcweir 24cdf0e10cSrcweir import com.sun.star.uno.UnoRuntime; 25cdf0e10cSrcweir import com.sun.star.uno.XInterface; 26cdf0e10cSrcweir import com.sun.star.uno.AnyConverter; 27cdf0e10cSrcweir 28cdf0e10cSrcweir import com.sun.star.lang.*; 29cdf0e10cSrcweir import com.sun.star.embed.*; 30cdf0e10cSrcweir import com.sun.star.packages.*; 31cdf0e10cSrcweir import com.sun.star.io.*; 32cdf0e10cSrcweir import com.sun.star.beans.*; 33cdf0e10cSrcweir 34cdf0e10cSrcweir import share.LogWriter; 35cdf0e10cSrcweir 36cdf0e10cSrcweir public class TestHelper { 37cdf0e10cSrcweir 38cdf0e10cSrcweir LogWriter m_aLogWriter; 39cdf0e10cSrcweir String m_sTestPrefix; 40cdf0e10cSrcweir TestHelper( LogWriter aLogWriter, String sTestPrefix )41cdf0e10cSrcweir public TestHelper( LogWriter aLogWriter, String sTestPrefix ) 42cdf0e10cSrcweir { 43cdf0e10cSrcweir m_aLogWriter = aLogWriter; 44cdf0e10cSrcweir m_sTestPrefix = sTestPrefix; 45cdf0e10cSrcweir } 46cdf0e10cSrcweir Error( String sError )47cdf0e10cSrcweir public void Error( String sError ) 48cdf0e10cSrcweir { 49cdf0e10cSrcweir m_aLogWriter.println( m_sTestPrefix + "Error: " + sError ); 50cdf0e10cSrcweir } 51cdf0e10cSrcweir Message( String sMessage )52cdf0e10cSrcweir public void Message( String sMessage ) 53cdf0e10cSrcweir { 54cdf0e10cSrcweir m_aLogWriter.println( m_sTestPrefix + sMessage ); 55cdf0e10cSrcweir } 56cdf0e10cSrcweir } 57cdf0e10cSrcweir 58