diff options
Diffstat (limited to 'comphelper/qa')
-rw-r--r-- | comphelper/qa/complex/comphelper/Map.java | 14 | ||||
-rw-r--r-- | comphelper/qa/complex/comphelper/SequenceOutputStreamUnitTest.java | 12 | ||||
-rw-r--r-- | comphelper/qa/complex/comphelper/Test01.java | 28 | ||||
-rw-r--r-- | comphelper/qa/complex/comphelper/TestHelper.java | 8 | ||||
-rw-r--r-- | comphelper/qa/test_string.cxx | 2 | ||||
-rw-r--r-- | comphelper/qa/test_weakbag.cxx | 2 | ||||
-rw-r--r-- | comphelper/qa/version.map | 2 |
7 files changed, 34 insertions, 34 deletions
diff --git a/comphelper/qa/complex/comphelper/Map.java b/comphelper/qa/complex/comphelper/Map.java index deeffe6baf32..751c4a90317b 100644 --- a/comphelper/qa/complex/comphelper/Map.java +++ b/comphelper/qa/complex/comphelper/Map.java @@ -1,23 +1,23 @@ /* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. - * + * * OpenOffice.org - a multi-platform office productivity suite - * + * * This file is part of OpenOffice.org. - * + * * OpenOffice.org is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License version 3 * only, as published by the Free Software Foundation. - * + * * OpenOffice.org 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 version 3 for more details * (a copy is included in the LICENSE file that accompanied this code). - * + * * You should have received a copy of the GNU Lesser General Public License * version 3 along with OpenOffice.org. If not, see * <http://www.openoffice.org/license.html> @@ -292,7 +292,7 @@ public class Map extends complexlib.ComplexTestCase public Type getElementType() { throw new UnsupportedOperationException( "Not implemented." ); } public boolean hasElements() { throw new UnsupportedOperationException( "Not implemented." ); } }; - + private class DummyContainer implements XContainer { public void addContainerListener( XContainerListener arg0 ) { throw new UnsupportedOperationException( "Not implemented." ); } diff --git a/comphelper/qa/complex/comphelper/SequenceOutputStreamUnitTest.java b/comphelper/qa/complex/comphelper/SequenceOutputStreamUnitTest.java index 26879a7c83ad..de95d209b4b8 100644 --- a/comphelper/qa/complex/comphelper/SequenceOutputStreamUnitTest.java +++ b/comphelper/qa/complex/comphelper/SequenceOutputStreamUnitTest.java @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -34,16 +34,16 @@ import com.sun.star.lang.XMultiServiceFactory; public class SequenceOutputStreamUnitTest extends ComplexTestCase { private XMultiServiceFactory m_xMSF = null; - + public String[] getTestMethodNames() { return new String[] { "ExecuteTest01"}; } - + public String getTestObjectName () { return "SequenceOutputStreamUnitTest"; } - + public static String getShortTestDescription() { return "tests the SequenceOutput/InputStream implementations"; } @@ -58,11 +58,11 @@ public class SequenceOutputStreamUnitTest extends ComplexTestCase { failed ("Cannot create service factory!"); } } - + public void after() { m_xMSF = null; } - + public void ExecuteTest01() { Test01 aTest = new Test01 (m_xMSF, log); assure ( "Test01 failed!", aTest.test() ); diff --git a/comphelper/qa/complex/comphelper/Test01.java b/comphelper/qa/complex/comphelper/Test01.java index 6900b738aeba..14738844eafa 100644 --- a/comphelper/qa/complex/comphelper/Test01.java +++ b/comphelper/qa/complex/comphelper/Test01.java @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -37,26 +37,26 @@ import share.LogWriter; public class Test01 { XMultiServiceFactory m_xMSF = null; TestHelper m_aTestHelper = null; - + public Test01 ( XMultiServiceFactory xMSF, LogWriter aLogWriter ) { m_xMSF = xMSF; m_aTestHelper = new TestHelper (aLogWriter, "Test01: "); } - + public boolean test () { try { final int nBytesCnt = 20; - + //create SequenceOutputStream - Object oSequenceOutputStream = m_xMSF.createInstance ( + Object oSequenceOutputStream = m_xMSF.createInstance ( "com.sun.star.io.SequenceOutputStream" ); - XSequenceOutputStream xSeqOutStream = - (XSequenceOutputStream) UnoRuntime.queryInterface ( + XSequenceOutputStream xSeqOutStream = + (XSequenceOutputStream) UnoRuntime.queryInterface ( XSequenceOutputStream.class, oSequenceOutputStream ); m_aTestHelper.Message ( "SequenceOutputStream created." ); - + //write something to the stream byte pBytesOriginal[] = new byte [nBytesCnt]; Random oRandom = new Random(); @@ -64,27 +64,27 @@ public class Test01 { xSeqOutStream.writeBytes (pBytesOriginal); byte pBytesWritten[] = xSeqOutStream.getWrittenBytes (); m_aTestHelper.Message ( "SeuenceOutputStream filled." ); - + //create SequenceInputstream Object pArgs[] = new Object[1]; pArgs[0] = pBytesWritten; Object oSequenceInputStream = m_xMSF.createInstanceWithArguments ( "com.sun.star.io.SequenceInputStream", pArgs ); - XSeekableInputStream xSeekableInStream = - (XSeekableInputStream)UnoRuntime.queryInterface ( + XSeekableInputStream xSeekableInStream = + (XSeekableInputStream)UnoRuntime.queryInterface ( XSeekableInputStream.class, oSequenceInputStream ); m_aTestHelper.Message ( "SequenceInputStream created." ); - + //read from the stream byte pBytesRead[][] = new byte [1][nBytesCnt]; xSeekableInStream.readBytes ( pBytesRead, pBytesRead[0].length + 1 ); m_aTestHelper.Message ( "Read from SequenceInputStream." ); - + //close the streams xSeqOutStream.closeOutput (); xSeekableInStream.closeInput (); m_aTestHelper.Message ( "Both streams closed." ); - + //compare the original, written and read arrys for ( int i = 0; i < nBytesCnt; ++i ) { if ( pBytesOriginal[i] != pBytesWritten[i] ) { diff --git a/comphelper/qa/complex/comphelper/TestHelper.java b/comphelper/qa/complex/comphelper/TestHelper.java index 0a6989e95271..8a685e9ca4f2 100644 --- a/comphelper/qa/complex/comphelper/TestHelper.java +++ b/comphelper/qa/complex/comphelper/TestHelper.java @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -31,17 +31,17 @@ 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 ); } diff --git a/comphelper/qa/test_string.cxx b/comphelper/qa/test_string.cxx index 9e355a5c9528..7b997e6d1396 100644 --- a/comphelper/qa/test_string.cxx +++ b/comphelper/qa/test_string.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/comphelper/qa/test_weakbag.cxx b/comphelper/qa/test_weakbag.cxx index 9c60f11dd925..acb6e567a37c 100644 --- a/comphelper/qa/test_weakbag.cxx +++ b/comphelper/qa/test_weakbag.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/comphelper/qa/version.map b/comphelper/qa/version.map index 7321bbca16ad..f313c44bd7ad 100644 --- a/comphelper/qa/version.map +++ b/comphelper/qa/version.map @@ -1,7 +1,7 @@ #************************************************************************* # # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. -# +# # Copyright 2000, 2010 Oracle and/or its affiliates. # # OpenOffice.org - a multi-platform office productivity suite |