From 14f727bd43d8fbb22b95f99cffad10973f3d2ae9 Mon Sep 17 00:00:00 2001 From: RĂ¼diger Timm Date: Fri, 20 Aug 2004 08:23:12 +0000 Subject: INTEGRATION: CWS sb21 (1.10.58); FILE MERGED 2004/08/03 15:35:32 sb 1.10.58.1: #i32131# Redesigned ThreadId to not depend on hashCode values, which are not unique. --- .../sun/star/lib/uno/environments/remote/JobQueue_Test.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'jurt') 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 c0d993bad1b7..ad85d3d8f7b4 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 @@ -2,9 +2,9 @@ * * $RCSfile: JobQueue_Test.java,v $ * - * $Revision: 1.10 $ + * $Revision: 1.11 $ * - * last change: $Author: vg $ $Date: 2003-10-09 10:15:08 $ + * last change: $Author: rt $ $Date: 2004-08-20 09:23:12 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -148,8 +148,9 @@ public final class JobQueue_Test extends ComplexTestCase { } public void testDynamicThreadExecutesJob() throws InterruptedException { - testExecuteJobs(new JobQueue(__javaThreadPoolFactory, new ThreadId(), - true)); + testExecuteJobs( + new JobQueue( + __javaThreadPoolFactory, ThreadId.createFresh(), true)); } public void testStaticThreadExecutesAsyncs() throws InterruptedException { @@ -170,7 +171,7 @@ public final class JobQueue_Test extends ComplexTestCase { } public void testDynamicThreadExecutesAsyncs() throws InterruptedException { - ThreadId threadId = new ThreadId(); + ThreadId threadId = ThreadId.createFresh(); JobQueue async_jobQueue = new JobQueue(__javaThreadPoolFactory, threadId); TestWorkAt workAt = new TestWorkAt(); -- cgit