summaryrefslogtreecommitdiff
path: root/qadevOOo/runner/lib
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo/runner/lib')
-rw-r--r--qadevOOo/runner/lib/DynamicClassLoader.java2
-rw-r--r--qadevOOo/runner/lib/ExceptionStatus.java2
-rw-r--r--qadevOOo/runner/lib/MultiMethodTest.java4
-rw-r--r--qadevOOo/runner/lib/MultiPropertyTest.java10
-rw-r--r--qadevOOo/runner/lib/Parameters.java10
-rw-r--r--qadevOOo/runner/lib/SimpleStatus.java8
-rw-r--r--qadevOOo/runner/lib/Status.java8
-rw-r--r--qadevOOo/runner/lib/StatusException.java2
-rw-r--r--qadevOOo/runner/lib/TestCase.java20
-rw-r--r--qadevOOo/runner/lib/TestEnvironment.java4
-rw-r--r--qadevOOo/runner/lib/TestParameters.java10
-rw-r--r--qadevOOo/runner/lib/TestResult.java6
12 files changed, 43 insertions, 43 deletions
diff --git a/qadevOOo/runner/lib/DynamicClassLoader.java b/qadevOOo/runner/lib/DynamicClassLoader.java
index 2611ad965dfc..841cd119098f 100644
--- a/qadevOOo/runner/lib/DynamicClassLoader.java
+++ b/qadevOOo/runner/lib/DynamicClassLoader.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
diff --git a/qadevOOo/runner/lib/ExceptionStatus.java b/qadevOOo/runner/lib/ExceptionStatus.java
index 198bded1e895..8c14572d6f69 100644
--- a/qadevOOo/runner/lib/ExceptionStatus.java
+++ b/qadevOOo/runner/lib/ExceptionStatus.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
diff --git a/qadevOOo/runner/lib/MultiMethodTest.java b/qadevOOo/runner/lib/MultiMethodTest.java
index 884059bcfd88..5e28ec74e46b 100644
--- a/qadevOOo/runner/lib/MultiMethodTest.java
+++ b/qadevOOo/runner/lib/MultiMethodTest.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
@@ -166,7 +166,7 @@ public class MultiMethodTest
String ifcName = getInterfaceName();
// System.out.println("checking : " + ifcName);
System.out.print("checking: [" + entry.longName + "]");
-
+
// defining a name of the class corresponding to the tested interface
// or service
String testedClassName;
diff --git a/qadevOOo/runner/lib/MultiPropertyTest.java b/qadevOOo/runner/lib/MultiPropertyTest.java
index a02f93c04347..e766d13a4ad1 100644
--- a/qadevOOo/runner/lib/MultiPropertyTest.java
+++ b/qadevOOo/runner/lib/MultiPropertyTest.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
@@ -179,7 +179,7 @@ public class MultiPropertyTest extends MultiMethodTest
try
{
Object oldValue = oObj.getPropertyValue(propName);
-
+
if( (oldValue==null) || utils.isVoid(oldValue) )
{
// #i111560# method getNewValue() does not work with an empty oldValue
@@ -187,18 +187,18 @@ public class MultiPropertyTest extends MultiMethodTest
if( (prop.Attributes & PropertyAttribute.MAYBEVOID) != 0 )
{
// todo: implement a new test independent from method getNewValue()
- log.println("changing initially empty MAYBEVOID properties is not supported by the test framework so far - skip test of property: " + propName);
+ log.println("changing initially empty MAYBEVOID properties is not supported by the test framework so far - skip test of property: " + propName);
tRes.tested(propName, true);
return;
}
else
{
- log.println( "property '"+propName+"' is not set but is not MAYBEVOID");
+ log.println( "property '"+propName+"' is not set but is not MAYBEVOID");
tRes.tested(propName, false);
return;
}
}
-
+
Object newValue;
// trying to create new value
diff --git a/qadevOOo/runner/lib/Parameters.java b/qadevOOo/runner/lib/Parameters.java
index 1c4a43c4fd3a..1f52b4b8a08b 100644
--- a/qadevOOo/runner/lib/Parameters.java
+++ b/qadevOOo/runner/lib/Parameters.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
@@ -81,16 +81,16 @@ public class Parameters implements XPropertySet {
}
}
-
+
public String get(String paramName) {
Object res = parameters.get(paramName);
-
+
if (res != null && res instanceof String)
return (String)res;
-
+
if (defaults != null)
return defaults.get(paramName);
-
+
return null;
}
diff --git a/qadevOOo/runner/lib/SimpleStatus.java b/qadevOOo/runner/lib/SimpleStatus.java
index 2c2304b5088e..faf579fe9604 100644
--- a/qadevOOo/runner/lib/SimpleStatus.java
+++ b/qadevOOo/runner/lib/SimpleStatus.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
@@ -59,7 +59,7 @@ class SimpleStatus {
* This is a private indicator for a user defined runtime state
*/
private final static int USER_DEFINED = 4;
-
+
/* Test states */
/**
@@ -87,7 +87,7 @@ class SimpleStatus {
* or user defined. Deriving classes can overwrite it for own run states.
*/
protected String runStateString;
-
+
/**
* The constructor initialize state and reason field.
*/
@@ -136,7 +136,7 @@ class SimpleStatus {
public String getRunStateString() {
return runStateString;
}
-
+
/**
* Get the ressult: passed or failed.
*/
diff --git a/qadevOOo/runner/lib/Status.java b/qadevOOo/runner/lib/Status.java
index 7cd65c380425..d4bf6afc03d3 100644
--- a/qadevOOo/runner/lib/Status.java
+++ b/qadevOOo/runner/lib/Status.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
@@ -53,7 +53,7 @@ public class Status extends SimpleStatus {
public Status(int runState, boolean state ) {
super(runState, state);
}
-
+
/**
* Construct a status: use own message and state.
* @parame messaeg An own message for the status.
@@ -62,7 +62,7 @@ public class Status extends SimpleStatus {
public Status(String message, boolean state) {
super( message, state );
}
-
+
/**
* This is a factory method for creating a Status representing normal
* actibity termination.
@@ -110,7 +110,7 @@ public class Status extends SimpleStatus {
* @param reason describes why the activity failed
*/
public static Status failed(final String reason) {
- return new Status(reason, FAILED);
+ return new Status(reason, FAILED);
}
/**
diff --git a/qadevOOo/runner/lib/StatusException.java b/qadevOOo/runner/lib/StatusException.java
index 4768a9229c8f..38f47ad0b07f 100644
--- a/qadevOOo/runner/lib/StatusException.java
+++ b/qadevOOo/runner/lib/StatusException.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
diff --git a/qadevOOo/runner/lib/TestCase.java b/qadevOOo/runner/lib/TestCase.java
index 6b8b960c3014..e09e0609ea2d 100644
--- a/qadevOOo/runner/lib/TestCase.java
+++ b/qadevOOo/runner/lib/TestCase.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,12 +54,12 @@ import lib.TestParameters;
* @see lib.TestEnvironment
*/
public abstract class TestCase {
-
+
/**
* Specifies the PrintWriter to log information.
*/
- public PrintWriter log;
-
+ public PrintWriter log;
+
//public static TestCase tCase;
/**
@@ -67,7 +67,7 @@ public abstract class TestCase {
*/
public void setLogWriter( PrintWriter log ) {
this.log = log;
- }
+ }
/**
* Initializes the <code>TestCase</code>. Calls <code>initialize()</code>
@@ -91,7 +91,7 @@ public abstract class TestCase {
*/
protected void initialize( TestParameters tParam, PrintWriter log ) {
}
-
+
/**
* Cleans up the <code>TestCase</code>. Calls <code>cleanup()</code>.
@@ -129,19 +129,19 @@ public abstract class TestCase {
public synchronized TestEnvironment getTestEnvironment( TestParameters tParam ) {
TestEnvironment tEnv = null;
try {
- tEnv = createTestEnvironment( tParam, log );
+ tEnv = createTestEnvironment( tParam, log );
System.out.println("Environment created");
if (tEnv != null) {
tEnv.setTestCase(this);
}
- } catch (Exception e) {
+ } catch (Exception e) {
String message = e.getMessage();
if (message == null)
message = e.toString();
System.out.println("Exception while getting Environment "+message);
e.printStackTrace();
cleanup(tParam, log);
- }
+ }
return tEnv;
}
@@ -177,6 +177,6 @@ public abstract class TestCase {
public String getObjectName() {
String clName = this.getClass().getName();
return clName.substring( clName.lastIndexOf('.') + 1 );
- }
+ }
}
diff --git a/qadevOOo/runner/lib/TestEnvironment.java b/qadevOOo/runner/lib/TestEnvironment.java
index 9848a5b2b633..a3fa76e22571 100644
--- a/qadevOOo/runner/lib/TestEnvironment.java
+++ b/qadevOOo/runner/lib/TestEnvironment.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
@@ -136,7 +136,7 @@ public final class TestEnvironment {
* Makes the environment invalid, i.e. it should not be used for
* testing anymore.
*/
- public void dispose() {
+ public void dispose() {
disposed = true;
}
diff --git a/qadevOOo/runner/lib/TestParameters.java b/qadevOOo/runner/lib/TestParameters.java
index 9d1e171b95d9..75a8f8433cdb 100644
--- a/qadevOOo/runner/lib/TestParameters.java
+++ b/qadevOOo/runner/lib/TestParameters.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
@@ -69,14 +69,14 @@ public class TestParameters extends Hashtable {
*/
public String AppExecutionCommand="";
-
+
/**
* If this parameter is <CODE>true</CODE> the <CODE>OfficeProvider</CODE> tries
- * to get the URL to the binary of the office and to fill the
+ * to get the URL to the binary of the office and to fill the
* <CODE>AppExecutionCommand</CODE> with usefull content if needet
*/
public boolean AutoRestart = false;
-
+
/**
* Shoert wait time for the Office: default is 500 milliseconds
*/
@@ -311,7 +311,7 @@ public class TestParameters extends Hashtable {
}
return (XComponentContext)context;
}
-
+
/**
* Convert the system dependent operating system name to a name according
* to OOo rules.
diff --git a/qadevOOo/runner/lib/TestResult.java b/qadevOOo/runner/lib/TestResult.java
index b0c70954a6cc..8ea0f828d747 100644
--- a/qadevOOo/runner/lib/TestResult.java
+++ b/qadevOOo/runner/lib/TestResult.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 TestResult {
* @throw java.lang.IllegalArgumentException if the method is not
* available in the interface.
*/
- public boolean tested( String method, Status status ) {
+ public boolean tested( String method, Status status ) {
testedMethods.put(method,status);
return true;
}
@@ -102,5 +102,5 @@ public class TestResult {
public Status getStatusFor( String method ) {
return (Status)testedMethods.get( method );
}
-
+
} \ No newline at end of file