diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2011-08-23 15:21:41 +0200 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2011-08-23 15:21:41 +0200 |
commit | 1b12b332a9ff0c44b19f7f4f0c76b3f8ee534fc7 (patch) | |
tree | f951731fcd4f0c17dd7a55b154be238cb2b71bae /qadevOOo/tests/java/ifc/frame/_XModuleManager.java | |
parent | 42e0579442c805df41454461d17cdede43c47b6a (diff) |
recreated tag libreoffice-3.3.3.1 which had these commits:
commit aec86c5680a68c65de8537b8a83a16e8d90cfdd9 (tag: refs/tags/libreoffice-3.3.3.1)
Author: Petr Mladek <pmladek@suse.cz>
Date: Tue May 31 17:39:08 2011 +0200
Version 3.3.3.1, tag libreoffice-3.3.3.1 (3.3.3-rc1)
Notes
Notes:
split repo tag: testing_libreoffice-3.3.3.1
split repo tag: testing_libreoffice-3.3.4.1
Diffstat (limited to 'qadevOOo/tests/java/ifc/frame/_XModuleManager.java')
-rwxr-xr-x | qadevOOo/tests/java/ifc/frame/_XModuleManager.java | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/qadevOOo/tests/java/ifc/frame/_XModuleManager.java b/qadevOOo/tests/java/ifc/frame/_XModuleManager.java index 375500f89bb6..e542b249266b 100755 --- a/qadevOOo/tests/java/ifc/frame/_XModuleManager.java +++ b/qadevOOo/tests/java/ifc/frame/_XModuleManager.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 @@ -70,7 +70,7 @@ public class _XModuleManager extends MultiMethodTest { * coresponding value.<p> * As enhancement the method <CODE>identify()</CODE> was called with incvalid * parameter. In this case the thrown exceptions was catched. - */ + */ public XModuleManager oObj = null; /** * Test calls the method. <p> @@ -82,35 +82,35 @@ public class _XModuleManager extends MultiMethodTest { * relation 'Frame' </li> * </ul> */ - + private PropertyValue[] xFrameSeq = null; private PropertyValue[] xControllerSeq = null; private PropertyValue[] xModelSeq = null; /** Retrieves object relations. */ - + public void before() { - + xFrameSeq = (PropertyValue[]) tEnv.getObjRelation("XModuleManager.XFrame") ; if (xFrameSeq == null) throw new StatusException (Status.failed("Relation 'xFrameSeq' not found.")) ; - - + + xControllerSeq = (PropertyValue[]) tEnv.getObjRelation("XModuleManager.XController") ; if (xControllerSeq == null) throw new StatusException (Status.failed("Relation 'xControllerSeq' not found.")) ; - - + + xModelSeq = (PropertyValue[]) tEnv.getObjRelation("XModuleManager.XModel") ; if (xModelSeq == null) throw new StatusException (Status.failed("Relation 'xModelSeq' not found.")) ; } - + /** The method <CODE>identify()</CODE> was tesed for every entry in sequeze of * object relations. - */ + */ public void _identify() { boolean ok = true; log.println("testing frame sequenze..."); @@ -130,7 +130,7 @@ public class _XModuleManager extends MultiMethodTest { log.println("expected exception."); } } - + private boolean testSequenze(PropertyValue[] sequenze){ boolean ok = true; for (int i = 0 ; i < sequenze.length; i++){ @@ -138,10 +138,10 @@ public class _XModuleManager extends MultiMethodTest { log.println("testing '" + sequenze[i].Name + "'"); if (oObj.identify(sequenze[i].Value).equals( sequenze[i].Name)){ - ok &= ok; + ok &= ok; }else{ - log.println("failure: returned value: '" + - oObj.identify(sequenze[i].Value) + + log.println("failure: returned value: '" + + oObj.identify(sequenze[i].Value) + "' ,expected value: '" + sequenze[i].Name + "'"); ok = false; } @@ -149,7 +149,7 @@ public class _XModuleManager extends MultiMethodTest { log.println("Could not get value of sequenze '" + sequenze[i].Name + "'"); return false; - + } catch (UnknownModuleException e){ log.println("Could not indetify value of sequenze '" + sequenze[i].Name + "'"); @@ -158,6 +158,6 @@ public class _XModuleManager extends MultiMethodTest { } return ok; } - + } |