diff options
Diffstat (limited to 'qadevOOo/tests/java/ifc/text/_NumberingLevel.java')
-rw-r--r-- | qadevOOo/tests/java/ifc/text/_NumberingLevel.java | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/qadevOOo/tests/java/ifc/text/_NumberingLevel.java b/qadevOOo/tests/java/ifc/text/_NumberingLevel.java index c4255065dfa1..ff7b6b06b8a5 100644 --- a/qadevOOo/tests/java/ifc/text/_NumberingLevel.java +++ b/qadevOOo/tests/java/ifc/text/_NumberingLevel.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,7 +37,7 @@ import share.LogWriter; /** * Testing <code>com.sun.star.text.NumberingLevel</code><p> -* This service is currently konwn as property value of +* This service is currently konwn as property value of * com.sun.star.text.ParagraphProperties.NumberingRules * This test checks only for completnes of implemented properties. * service properties : @@ -70,13 +70,13 @@ import share.LogWriter; * @see ifc.text._ParagraphProperties */ public class _NumberingLevel { - + private static TestParameters tParam = null; private static Hashtable NumberingLevel = new Hashtable(); private static PropertyValue[] PropertyArray = null; private static LogWriter log = null; - - + + /** * returns an instance of _NumberingLevel * @param log the log writer @@ -84,12 +84,12 @@ public class _NumberingLevel { * @param propertyValues a PropertyValue[] which should contain all properties of com.sun.star.text.NumberingLevel */ public _NumberingLevel(LogWriter log, TestParameters tParam, PropertyValue[] propertyValues){ - + this.tParam = tParam; this.PropertyArray = propertyValues; - + this.log = log; - + //key = PropertyName, value = Ooptional NumberingLevel.put("Adjust", new Boolean(false)); NumberingLevel.put("ParentNumbering", new Boolean(true)); @@ -112,23 +112,23 @@ public class _NumberingLevel { NumberingLevel.put("HeadingStyleName", new Boolean(false)); NumberingLevel.put("BulletColor", new Boolean(true)); NumberingLevel.put("BulletRelSize", new Boolean(true)); - + } - + /** - * This methods checks the PropertyValue for completnes. If one or more properties + * This methods checks the PropertyValue for completnes. If one or more properties * are missing the return value is FALSE, else TRUE * @return returns TRUE if PropertyValue[] is complete, else FALSE */ public boolean testPropertieArray(){ - + boolean status = true; try{ - + // iterate over the given property array and remove it from the must list for (int i = 0; i < PropertyArray.length; i++){ String propertyName=PropertyArray[i].Name; - + if ( NumberingLevel.containsKey(propertyName) ) { NumberingLevel.remove(propertyName); } else { @@ -141,17 +141,17 @@ public class _NumberingLevel { status = false; log.println("-> '" + propertyName + "'"); } - + } - + // get rest of properties and check if they are optional if (! NumberingLevel.isEmpty()){ for (Enumeration e = NumberingLevel.keys() ; e.hasMoreElements() ;) { String property = (String) e.nextElement(); - + // if some elements are not optional -> failed if ( ! ((Boolean)NumberingLevel.get(property)).booleanValue() ){ - + if ( status ) { log.println("FAILED: com.sun.star.text.NumberingLevel -> " + "could not find not optional property:"); @@ -166,9 +166,9 @@ public class _NumberingLevel { }catch( Exception e ){ throw new StatusException("ERROR: could not test all properties of com.sun.star.text.NumberingLevel",e); } - + return status; } - - + + } // finish class _NumberingLevel |