diff options
Diffstat (limited to 'qadevOOo/tests/java/ifc/configuration/backend/_XLayerImporter.java')
-rw-r--r-- | qadevOOo/tests/java/ifc/configuration/backend/_XLayerImporter.java | 76 |
1 files changed, 38 insertions, 38 deletions
diff --git a/qadevOOo/tests/java/ifc/configuration/backend/_XLayerImporter.java b/qadevOOo/tests/java/ifc/configuration/backend/_XLayerImporter.java index 39193787a857..6cf29ee71dae 100644 --- a/qadevOOo/tests/java/ifc/configuration/backend/_XLayerImporter.java +++ b/qadevOOo/tests/java/ifc/configuration/backend/_XLayerImporter.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 @@ -32,15 +32,15 @@ import com.sun.star.configuration.backend.XLayerImporter; import lib.MultiMethodTest; public class _XLayerImporter extends MultiMethodTest { - - public XLayerImporter oObj; + + public XLayerImporter oObj; public XBackend xBackend = null; - + public void _getTargetBackend() { xBackend = oObj.getTargetBackend(); tRes.tested("getTargetBackend()", xBackend != null); } - + public void _importLayer() { boolean res = false; log.println("checking for exception is argument null is given"); @@ -49,22 +49,22 @@ public class _XLayerImporter extends MultiMethodTest { log.println("\tException expected -- FAILED"); } catch (com.sun.star.lang.NullPointerException ne) { res = true; - log.println("\tExpected exception was thrown -- OK"); + log.println("\tExpected exception was thrown -- OK"); } catch (com.sun.star.configuration.backend.MalformedDataException mde) { res = false; - log.println("\tWrong Expected "+mde+" exception was thrown -- FAILED"); + log.println("\tWrong Expected "+mde+" exception was thrown -- FAILED"); } catch (com.sun.star.lang.IllegalArgumentException iae) { res = false; - log.println("\tWrong Expected "+iae+" exception was thrown -- FAILED"); + log.println("\tWrong Expected "+iae+" exception was thrown -- FAILED"); } catch (com.sun.star.lang.WrappedTargetException wte) { res = false; - log.println("\tWrong Expected "+wte+" exception was thrown -- FAILED"); + log.println("\tWrong Expected "+wte+" exception was thrown -- FAILED"); } - + log.println("checking own implementation of XLayer"); try { util.XLayerImpl xLayer = new util.XLayerImpl(); - oObj.importLayer(xLayer); + oObj.importLayer(xLayer); if (! xLayer.hasBeenCalled()) { log.println("\tXLayer hasn't been imported -- FAILED"); res &= false; @@ -74,21 +74,21 @@ public class _XLayerImporter extends MultiMethodTest { } } catch (com.sun.star.lang.NullPointerException ne) { res &= false; - log.println("\tExpected exception "+ne+" was thrown -- FAILED"); + log.println("\tExpected exception "+ne+" was thrown -- FAILED"); } catch (com.sun.star.configuration.backend.MalformedDataException mde) { res &= false; - log.println("\tWrong Expected "+mde+" exception was thrown -- FAILED"); + log.println("\tWrong Expected "+mde+" exception was thrown -- FAILED"); } catch (com.sun.star.lang.IllegalArgumentException iae) { res &= false; - log.println("\tWrong Expected "+iae+" exception was thrown -- FAILED"); + log.println("\tWrong Expected "+iae+" exception was thrown -- FAILED"); } catch (com.sun.star.lang.WrappedTargetException wte) { res &= false; - log.println("\tWrong Expected "+wte+" exception was thrown -- FAILED"); - } - - tRes.tested("importLayer()",res); + log.println("\tWrong Expected "+wte+" exception was thrown -- FAILED"); + } + + tRes.tested("importLayer()",res); } - + public void _importLayerForEntity() { boolean res = false; log.println("checking for exception for argument (null,\"\")"); @@ -97,22 +97,22 @@ public class _XLayerImporter extends MultiMethodTest { log.println("\tException expected -- FAILED"); } catch (com.sun.star.lang.NullPointerException ne) { res = true; - log.println("\tExpected exception was thrown -- OK"); + log.println("\tExpected exception was thrown -- OK"); } catch (com.sun.star.configuration.backend.MalformedDataException mde) { res = false; - log.println("\tWrong Expected "+mde+" exception was thrown -- FAILED"); + log.println("\tWrong Expected "+mde+" exception was thrown -- FAILED"); } catch (com.sun.star.lang.IllegalArgumentException iae) { res = false; - log.println("\tWrong Expected "+iae+" exception was thrown -- FAILED"); + log.println("\tWrong Expected "+iae+" exception was thrown -- FAILED"); } catch (com.sun.star.lang.WrappedTargetException wte) { res = false; - log.println("\tWrong Expected "+wte+" exception was thrown -- FAILED"); + log.println("\tWrong Expected "+wte+" exception was thrown -- FAILED"); } - + log.println("checking own implementation of XLayer"); try { util.XLayerImpl xLayer = new util.XLayerImpl(); - oObj.importLayerForEntity(xLayer,""); + oObj.importLayerForEntity(xLayer,""); if (! xLayer.hasBeenCalled()) { log.println("\tXLayer hasn't been imported -- FAILED"); res &= false; @@ -122,21 +122,21 @@ public class _XLayerImporter extends MultiMethodTest { } } catch (com.sun.star.lang.NullPointerException ne) { res &= false; - log.println("\tExpected exception "+ne+" was thrown -- FAILED"); + log.println("\tExpected exception "+ne+" was thrown -- FAILED"); } catch (com.sun.star.configuration.backend.MalformedDataException mde) { res &= false; - log.println("\tWrong Expected "+mde+" exception was thrown -- FAILED"); + log.println("\tWrong Expected "+mde+" exception was thrown -- FAILED"); } catch (com.sun.star.lang.IllegalArgumentException iae) { res &= false; - log.println("\tWrong Expected "+iae+" exception was thrown -- FAILED"); + log.println("\tWrong Expected "+iae+" exception was thrown -- FAILED"); } catch (com.sun.star.lang.WrappedTargetException wte) { res &= false; - log.println("\tWrong Expected "+wte+" exception was thrown -- FAILED"); - } - - tRes.tested("importLayerForEntity()",res); + log.println("\tWrong Expected "+wte+" exception was thrown -- FAILED"); + } + + tRes.tested("importLayerForEntity()",res); } - + public void _setTargetBackend() { requiredMethod("getTargetBackend()"); boolean res = false; @@ -148,7 +148,7 @@ public class _XLayerImporter extends MultiMethodTest { res = true; log.println("\tExpected exception was thrown -- OK"); } - + log.println("checking argument previously gained by getTargetBackend"); try { oObj.setTargetBackend(xBackend); @@ -157,10 +157,10 @@ public class _XLayerImporter extends MultiMethodTest { } catch (com.sun.star.lang.NullPointerException ne) { res &= false; log.println("\tException was thrown -- FAILED"); - } - + } + tRes.tested("setTargetBackend()",res); - + } - + } |