summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/ifc/inspection/_XObjectInspector.java
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo/tests/java/ifc/inspection/_XObjectInspector.java')
-rw-r--r--qadevOOo/tests/java/ifc/inspection/_XObjectInspector.java38
1 files changed, 19 insertions, 19 deletions
diff --git a/qadevOOo/tests/java/ifc/inspection/_XObjectInspector.java b/qadevOOo/tests/java/ifc/inspection/_XObjectInspector.java
index 8bf57eb657fe..714246a1d3f1 100644
--- a/qadevOOo/tests/java/ifc/inspection/_XObjectInspector.java
+++ b/qadevOOo/tests/java/ifc/inspection/_XObjectInspector.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
@@ -54,7 +54,7 @@ import lib.StatusException;
*/
public class _XObjectInspector extends MultiMethodTest {
-
+
/**
* the test object
*/
@@ -71,7 +71,7 @@ public class _XObjectInspector extends MultiMethodTest {
* test the method <CODE>setInspectorModel()</CODE>
*/
public XObjectInspectorModel xSetModel = null;
-
+
/**
* get object relations
* <ul>
@@ -79,38 +79,38 @@ public class _XObjectInspector extends MultiMethodTest {
* </ul>
*/
public void before() {
-
+
oInspect = (Object[]) tEnv.getObjRelation("XObjectInspector.toInspect");
-
+
if (oInspect == null) throw new StatusException
(Status.failed("Relation 'XObjectInspector.toInspect' not found.")) ;
-
+
xSetModel = (XObjectInspectorModel) tEnv.getObjRelation("XObjectInspector.InspectorModelToSet");
-
+
if (xSetModel == null) throw new StatusException
(Status.failed("Relation 'XObjectInspector.InspectorModelToSet' not found.")) ;
}
-
+
/**
* Inspects a new collection of one or more objects given by object realtion
* <CODE>XObjectInspector.toInspect</CODE><br>
* Has <b>OK</b> status if no runtime exceptions occured.
*/
public void _inspect() {
-
+
boolean result = true;
-
+
try {
oObj.inspect(oInspect);
-
+
} catch (com.sun.star.util.VetoException e){
log.println("ERROR:" + e.toString());
result = false;
}
-
+
tRes.tested("inspect()", result) ;
}
-
+
/**
* First call the method <CODE>getInspectorModel()</CODE> and save the value<br>
* Second call the method <CODE>setInspectorModel()</CODE> with the module variable
@@ -124,20 +124,20 @@ public class _XObjectInspector extends MultiMethodTest {
log.println("testing 'getInspectorModel()'...");
XObjectInspectorModel xGetModel = oObj.getInspectorModel() ;
-
+
boolean result = xGetModel != null;
-
+
log.println(result? "got a not null object -> OK" : "got a NULL object -> FAILED");
log.println("testing 'setInspectorModel()'...");
oObj.setInspectorModel(xSetModel);
-
+
XObjectInspectorModel xNewModel = oObj.getInspectorModel();
-
+
if (result) oObj.setInspectorModel(xGetModel);
-
+
result &= xSetModel.equals(xNewModel);
-
+
tRes.tested("InspectorModel()", result) ;
}