summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/ifc/configuration/backend/_XSchema.java
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo/tests/java/ifc/configuration/backend/_XSchema.java')
-rw-r--r--qadevOOo/tests/java/ifc/configuration/backend/_XSchema.java34
1 files changed, 17 insertions, 17 deletions
diff --git a/qadevOOo/tests/java/ifc/configuration/backend/_XSchema.java b/qadevOOo/tests/java/ifc/configuration/backend/_XSchema.java
index 36be98ebc1fb..6c4ed22f8782 100644
--- a/qadevOOo/tests/java/ifc/configuration/backend/_XSchema.java
+++ b/qadevOOo/tests/java/ifc/configuration/backend/_XSchema.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
@@ -42,13 +42,13 @@ public class _XSchema extends MultiMethodTest {
public XSchema oObj;
XSchemaHandlerImpl xSchemaHandlerImpl = new XSchemaHandlerImpl();
String filename = null;
-
+
protected void before() {
filename = (String)tEnv.getObjRelation("ParsedFileName");
}
-
+
public void _readComponent() {
- requiredMethod("readTemplates()");
+ requiredMethod("readTemplates()");
boolean res = false;
log.println("Checking for Exception in case of null argument");
@@ -70,10 +70,10 @@ public class _XSchema extends MultiMethodTest {
try {
xSchemaHandlerImpl.cleanCalls();
oObj.readComponent(xSchemaHandlerImpl);
-
+
String implCalled = xSchemaHandlerImpl.getCalls();
-
- System.out.println(implCalled);
+
+ System.out.println(implCalled);
int sc = implCalled.indexOf("startComponent");
@@ -134,7 +134,7 @@ public class _XSchema extends MultiMethodTest {
xSchemaHandlerImpl.cleanCalls();
oObj.readSchema(xSchemaHandlerImpl);
- String implCalled = xSchemaHandlerImpl.getCalls();
+ String implCalled = xSchemaHandlerImpl.getCalls();
int sc = implCalled.indexOf("startSchema");
@@ -178,8 +178,8 @@ public class _XSchema extends MultiMethodTest {
} catch (com.sun.star.configuration.backend.MalformedDataException e) {
log.println("Unexpected Exception (" + e + ") -- FAILED");
}
-
- tRes.tested("readSchema()", res);
+
+ tRes.tested("readSchema()", res);
reopenFile();
}
@@ -205,8 +205,8 @@ public class _XSchema extends MultiMethodTest {
try {
xSchemaHandlerImpl.cleanCalls();
oObj.readComponent(xSchemaHandlerImpl);
-
- String implCalled = xSchemaHandlerImpl.getCalls();
+
+ String implCalled = xSchemaHandlerImpl.getCalls();
int sc = implCalled.indexOf("startGroup");
@@ -238,10 +238,10 @@ public class _XSchema extends MultiMethodTest {
res &= false;
}
- tRes.tested("readTemplates()", res);
+ tRes.tested("readTemplates()", res);
reopenFile();
}
-
+
/**
* reopen the parsed file again, to avoid the wrapped target exception.
*/
@@ -251,13 +251,13 @@ public class _XSchema extends MultiMethodTest {
try {
Object fileacc = ((XMultiServiceFactory)tParam.getMSF()).createInstance("com.sun.star.comp.ucb.SimpleFileAccess");
simpleAccess = (XSimpleFileAccess)
- UnoRuntime.queryInterface(XSimpleFileAccess.class,fileacc);
+ UnoRuntime.queryInterface(XSimpleFileAccess.class,fileacc);
log.println("Going to parse: "+filename);
xStream = simpleAccess.openFileRead(filename);
} catch (com.sun.star.uno.Exception e) {
- }
+ }
- XActiveDataSink xSink = (XActiveDataSink) UnoRuntime.queryInterface(XActiveDataSink.class, oObj);
+ XActiveDataSink xSink = (XActiveDataSink) UnoRuntime.queryInterface(XActiveDataSink.class, oObj);
xSink.setInputStream(xStream);
}
} \ No newline at end of file