summaryrefslogtreecommitdiff
path: root/jurt/test/com/sun/star/lib/uno/environments/remote
diff options
context:
space:
mode:
Diffstat (limited to 'jurt/test/com/sun/star/lib/uno/environments/remote')
-rw-r--r--jurt/test/com/sun/star/lib/uno/environments/remote/JavaThreadPoolFactory_Test.java2
-rw-r--r--jurt/test/com/sun/star/lib/uno/environments/remote/JobQueue_Test.java2
-rw-r--r--jurt/test/com/sun/star/lib/uno/environments/remote/TestIWorkAt.java8
-rw-r--r--jurt/test/com/sun/star/lib/uno/environments/remote/TestMessage.java22
-rw-r--r--jurt/test/com/sun/star/lib/uno/environments/remote/TestReceiver.java2
-rw-r--r--jurt/test/com/sun/star/lib/uno/environments/remote/TestWorkAt.java36
-rw-r--r--jurt/test/com/sun/star/lib/uno/environments/remote/ThreadId_Test.java2
-rw-r--r--jurt/test/com/sun/star/lib/uno/environments/remote/ThreadPool_Test.java2
8 files changed, 38 insertions, 38 deletions
diff --git a/jurt/test/com/sun/star/lib/uno/environments/remote/JavaThreadPoolFactory_Test.java b/jurt/test/com/sun/star/lib/uno/environments/remote/JavaThreadPoolFactory_Test.java
index 8dc1a767b5fa..1434caed3c58 100644
--- a/jurt/test/com/sun/star/lib/uno/environments/remote/JavaThreadPoolFactory_Test.java
+++ b/jurt/test/com/sun/star/lib/uno/environments/remote/JavaThreadPoolFactory_Test.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/jurt/test/com/sun/star/lib/uno/environments/remote/JobQueue_Test.java b/jurt/test/com/sun/star/lib/uno/environments/remote/JobQueue_Test.java
index 5e83098b8ecd..83829cd955e1 100644
--- a/jurt/test/com/sun/star/lib/uno/environments/remote/JobQueue_Test.java
+++ b/jurt/test/com/sun/star/lib/uno/environments/remote/JobQueue_Test.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/jurt/test/com/sun/star/lib/uno/environments/remote/TestIWorkAt.java b/jurt/test/com/sun/star/lib/uno/environments/remote/TestIWorkAt.java
index 1c616a84541b..c4946208ffec 100644
--- a/jurt/test/com/sun/star/lib/uno/environments/remote/TestIWorkAt.java
+++ b/jurt/test/com/sun/star/lib/uno/environments/remote/TestIWorkAt.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
@@ -35,12 +35,12 @@ import com.sun.star.uno.XInterface;
public interface TestIWorkAt extends XInterface {
void syncCall() throws Throwable ;
void asyncCall() throws Throwable ;
-
+
void increment() throws Throwable;
-
+
void notifyme();
- public static final TypeInfo UNOTYPEINFO[] = {
+ public static final TypeInfo UNOTYPEINFO[] = {
new MethodTypeInfo("increment", 0, 0),
new MethodTypeInfo("notifyme", 1, 0),
new MethodTypeInfo("syncCall", 2, 0),
diff --git a/jurt/test/com/sun/star/lib/uno/environments/remote/TestMessage.java b/jurt/test/com/sun/star/lib/uno/environments/remote/TestMessage.java
index f47048e423ed..c4bc556960d7 100644
--- a/jurt/test/com/sun/star/lib/uno/environments/remote/TestMessage.java
+++ b/jurt/test/com/sun/star/lib/uno/environments/remote/TestMessage.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
@@ -40,7 +40,7 @@ class TestMessage implements IMessage {
Object _result;
String _operation;
Object _params[];
-
+
TestMessage(boolean synchron, ITypeDescription iTypeDescription, String oid, ThreadId threadId, Object result, String operation, Object params[]) {
_synchron = synchron;
_iTypeDescription = iTypeDescription;
@@ -50,39 +50,39 @@ class TestMessage implements IMessage {
_operation = operation;
_params = params;
}
-
+
public String getOperation() {
return _operation;
}
-
+
public ThreadId getThreadId() {
return _threadId;
}
-
+
public ITypeDescription getInterface() {
return _iTypeDescription;
}
-
+
public boolean isSynchron() {
return _synchron;
}
-
+
public boolean mustReply() {
return _synchron;
}
-
+
public boolean isException() {
return false;
}
-
+
public String getOid() {
return _oid;
}
-
+
public Object getData(Object params[][]) {
params[0] = _params;
return _result;
-// return new Integer(_requestId);
+// return new Integer(_requestId);
}
}
diff --git a/jurt/test/com/sun/star/lib/uno/environments/remote/TestReceiver.java b/jurt/test/com/sun/star/lib/uno/environments/remote/TestReceiver.java
index 32ba5ba7473b..0a42d4f2db41 100644
--- a/jurt/test/com/sun/star/lib/uno/environments/remote/TestReceiver.java
+++ b/jurt/test/com/sun/star/lib/uno/environments/remote/TestReceiver.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/jurt/test/com/sun/star/lib/uno/environments/remote/TestWorkAt.java b/jurt/test/com/sun/star/lib/uno/environments/remote/TestWorkAt.java
index 322d7573c697..c45b020dafce 100644
--- a/jurt/test/com/sun/star/lib/uno/environments/remote/TestWorkAt.java
+++ b/jurt/test/com/sun/star/lib/uno/environments/remote/TestWorkAt.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,10 +37,10 @@ class TestWorkAt implements TestIWorkAt {
int _counter;
-
+
int _sync_counter;
int _async_counter;
-
+
Thread _sync_thread;
Thread _async_thread;
@@ -49,48 +49,48 @@ class TestWorkAt implements TestIWorkAt {
public void syncCall() throws Throwable {
++ _sync_counter;
-
- if(_async_counter != MESSAGES)
+
+ if(_async_counter != MESSAGES)
_passedAync = false;
-
+
if(_sync_thread == null)
_sync_thread = Thread.currentThread();
-// if(_sync_thread != Thread.currentThread())
-// _passedAync = false;
+// if(_sync_thread != Thread.currentThread())
+// _passedAync = false;
if(DEBUG) System.err.println("syncCall:" + _sync_counter + " " + _passedAync + " " + Thread.currentThread());
}
-
+
public void asyncCall() throws Throwable {
-// Thread.sleep(50);
-
+// Thread.sleep(50);
+
++ _async_counter;
if(_async_thread == null)
_async_thread = Thread.currentThread();
-// if(_async_thread != Thread.currentThread())
-// _passedAync = false;
+// if(_async_thread != Thread.currentThread())
+// _passedAync = false;
if(DEBUG) System.err.println("asyncCall:" + _async_counter + " " + Thread.currentThread());
}
-
+
public synchronized void increment() throws Throwable {
if(DEBUG) System.err.println("increment - " + Thread.currentThread());
-
+
++ _counter;
notifyAll();
}
-
+
public synchronized void notifyme() {
if(DEBUG) System.err.println("\t\t\tnotifying me" + Thread.currentThread());
-
+
notifyAll();
_notified = true;
}
-
+
public boolean passedAsyncTest() {
return _passedAync && (_sync_counter == MESSAGES);
}
diff --git a/jurt/test/com/sun/star/lib/uno/environments/remote/ThreadId_Test.java b/jurt/test/com/sun/star/lib/uno/environments/remote/ThreadId_Test.java
index d9154ce6b0ef..b3ff1c75789a 100644
--- a/jurt/test/com/sun/star/lib/uno/environments/remote/ThreadId_Test.java
+++ b/jurt/test/com/sun/star/lib/uno/environments/remote/ThreadId_Test.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/jurt/test/com/sun/star/lib/uno/environments/remote/ThreadPool_Test.java b/jurt/test/com/sun/star/lib/uno/environments/remote/ThreadPool_Test.java
index bed90acfbbcb..45c05e72d0f8 100644
--- a/jurt/test/com/sun/star/lib/uno/environments/remote/ThreadPool_Test.java
+++ b/jurt/test/com/sun/star/lib/uno/environments/remote/ThreadPool_Test.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