diff options
Diffstat (limited to 'javaunohelper/test/com/sun/star/comp/helper/Bootstrap_Test.java')
-rw-r--r-- | javaunohelper/test/com/sun/star/comp/helper/Bootstrap_Test.java | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/javaunohelper/test/com/sun/star/comp/helper/Bootstrap_Test.java b/javaunohelper/test/com/sun/star/comp/helper/Bootstrap_Test.java index c5908f3452cb..3fe9bd53beb6 100644 --- a/javaunohelper/test/com/sun/star/comp/helper/Bootstrap_Test.java +++ b/javaunohelper/test/com/sun/star/comp/helper/Bootstrap_Test.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 @@ -36,12 +36,12 @@ import com.sun.star.lang.XMultiServiceFactory; public class Bootstrap_Test { - + static public boolean test( String ini_file, java.util.Hashtable bootstrap_parameters ) throws java.lang.Exception { boolean passed = false; - System.err.println(); + System.err.println(); System.out.println("*******************************************************************"); System.err.println("Bootstrap - doing tests..."); System.err.println(); @@ -50,7 +50,7 @@ public class Bootstrap_Test { XComponentContext xContext = com.sun.star.comp.helper.Bootstrap.defaultBootstrap_InitialComponentContext( ini_file, bootstrap_parameters ); - + if (AnyConverter.isVoid( xContext.getValueByName( "/singletons/com.sun.star.reflection.theTypeDescriptionManager" ) )) @@ -58,7 +58,7 @@ public class Bootstrap_Test { throw new Exception( "no /singletons/com.sun.star.reflection.theTypeDescriptionManager!" ); } - + XMultiServiceFactory msf = UnoRuntime.queryInterface( XMultiServiceFactory.class, xContext.getServiceManager() ); String services[] = msf.getAvailableServiceNames(); @@ -67,16 +67,16 @@ public class Bootstrap_Test { if (services.length == 0) System.out.println("No services avialable!"); - else + else for ( int i=0; i<services.length; i++ ) System.out.println(services[i]); XComponent xComp = UnoRuntime.queryInterface( XComponent.class, xContext ); xComp.dispose(); - + passed = true; - } + } catch (Exception e) { e.printStackTrace(); } @@ -99,7 +99,7 @@ public class Bootstrap_Test { static public void main(String args[]) throws java.lang.Exception { if ( args.length == 0 ) usage(); - + java.util.Hashtable bootstrap_parameters = new java.util.Hashtable(); for ( int nPos = 1; nPos < args.length; ++nPos ) { @@ -110,8 +110,8 @@ public class Bootstrap_Test { bootstrap_parameters.put( arg.substring( 0, n ), arg.substring( n +1 ) ); } } - - System.exit( test(args[0], bootstrap_parameters) == true ? 0: -1 ); + + System.exit( test(args[0], bootstrap_parameters) == true ? 0: -1 ); } } |