diff options
author | Noel Grandin <noel@peralex.com> | 2012-08-31 14:07:56 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-09-05 21:01:45 +0200 |
commit | 553a17f66540040a5ab21be71232fe736b353b65 (patch) | |
tree | a47380771d2cbee1949f29486dad1688c251bf61 /bridges | |
parent | 3954be2ae61fba01afb82ffb314a4e45a7b4c384 (diff) |
Java cleanup, rename folders and packages to make them match
Also fix some compile errors. I suspect this is dead code, but on the chance
that it might be useful.....
Change-Id: I0d56df88420ce484b72df626db4fadcebe04d777
Diffstat (limited to 'bridges')
-rw-r--r-- | bridges/test/java_remote/Bug107753_Test.java (renamed from bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug107753_Test.java) | 4 | ||||
-rw-r--r-- | bridges/test/java_remote/Bug108825_Test.java (renamed from bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug108825_Test.java) | 4 | ||||
-rw-r--r-- | bridges/test/java_remote/Bug110892_Test.java (renamed from bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug110892_Test.java) | 4 | ||||
-rw-r--r-- | bridges/test/java_remote/Bug111153_Test.java (renamed from bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug111153_Test.java) | 4 | ||||
-rw-r--r-- | bridges/test/java_remote/Bug114133_Test.java (renamed from bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug114133_Test.java) | 4 | ||||
-rw-r--r-- | bridges/test/java_remote/Bug51323_Test.java (renamed from bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug51323_Test.java) | 4 | ||||
-rw-r--r-- | bridges/test/java_remote/Bug92174_Test.java (renamed from bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug92174_Test.java) | 4 | ||||
-rw-r--r-- | bridges/test/java_remote/Bug97697_Test.java (renamed from bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug97697_Test.java) | 4 | ||||
-rw-r--r-- | bridges/test/java_remote/Bug98508_Test.idl (renamed from bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug98508_Test.idl) | 0 | ||||
-rw-r--r-- | bridges/test/java_remote/Bug98508_Test.java (renamed from bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug98508_Test.java) | 4 | ||||
-rw-r--r-- | bridges/test/java_remote/MethodIdTest.java (renamed from bridges/test/com/sun/star/lib/uno/bridges/java_remote/MethodIdTest.java) | 4 | ||||
-rw-r--r-- | bridges/test/java_remote/PolyStructTest.idl (renamed from bridges/test/com/sun/star/lib/uno/bridges/java_remote/PolyStructTest.idl) | 0 | ||||
-rw-r--r-- | bridges/test/java_remote/PolyStructTest.java (renamed from bridges/test/com/sun/star/lib/uno/bridges/java_remote/PolyStructTest.java) | 4 | ||||
-rw-r--r-- | bridges/test/java_remote/StopMessageDispatcherTest.java (renamed from bridges/test/com/sun/star/lib/uno/bridges/java_remote/StopMessageDispatcherTest.java) | 4 | ||||
-rw-r--r-- | bridges/test/java_remote/makefile.mk (renamed from bridges/test/com/sun/star/lib/uno/bridges/java_remote/makefile.mk) | 2 | ||||
-rw-r--r-- | bridges/test/java_uno/acquire/TestAcquire.java | 2 | ||||
-rw-r--r-- | bridges/test/java_uno/acquire/makefile.mk | 2 | ||||
-rw-r--r-- | bridges/test/java_uno/acquire/types.idl | 2 | ||||
-rw-r--r-- | bridges/test/java_uno/any/TestAny.java | 4 | ||||
-rw-r--r-- | bridges/test/java_uno/any/TestJni.java | 5 | ||||
-rw-r--r-- | bridges/test/java_uno/any/TestRemote.java | 7 | ||||
-rw-r--r-- | bridges/test/java_uno/any/makefile.mk | 2 | ||||
-rw-r--r-- | bridges/test/java_uno/equals/TestEquals.java | 2 | ||||
-rw-r--r-- | bridges/test/java_uno/nativethreadpool/Relay.java | 2 | ||||
-rw-r--r-- | bridges/test/java_uno/nativethreadpool/makefile.mk | 2 | ||||
-rw-r--r-- | bridges/test/java_uno/nativethreadpool/types.idl | 2 | ||||
-rw-r--r-- | bridges/test/lib/TestBed.java (renamed from bridges/test/com/sun/star/lib/TestBed.java) | 2 | ||||
-rw-r--r-- | bridges/test/lib/makefile.mk (renamed from bridges/test/com/sun/star/lib/makefile.mk) | 2 | ||||
-rw-r--r-- | bridges/test/makefile.mk | 2 | ||||
-rw-r--r-- | bridges/test/testclient.java | 4 |
30 files changed, 51 insertions, 41 deletions
diff --git a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug107753_Test.java b/bridges/test/java_remote/Bug107753_Test.java index ca04441590a1..59d8e08ca65f 100644 --- a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug107753_Test.java +++ b/bridges/test/java_remote/Bug107753_Test.java @@ -16,16 +16,16 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -package com.sun.star.lib.uno.bridges.java_remote; +package test.java_remote; import com.sun.star.bridge.XInstanceProvider; -import com.sun.star.lib.TestBed; import com.sun.star.lib.uno.typeinfo.MethodTypeInfo; import com.sun.star.lib.uno.typeinfo.TypeInfo; import com.sun.star.uno.UnoRuntime; import com.sun.star.uno.XComponentContext; import com.sun.star.uno.XInterface; import complexlib.ComplexTestCase; +import test.lib.TestBed; /** * Test case for bug #107753#. diff --git a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug108825_Test.java b/bridges/test/java_remote/Bug108825_Test.java index 291761de9b20..000270a80c85 100644 --- a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug108825_Test.java +++ b/bridges/test/java_remote/Bug108825_Test.java @@ -16,16 +16,16 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -package com.sun.star.lib.uno.bridges.java_remote; +package test.java_remote; import com.sun.star.bridge.XInstanceProvider; -import com.sun.star.lib.TestBed; import com.sun.star.lib.uno.typeinfo.MethodTypeInfo; import com.sun.star.lib.uno.typeinfo.TypeInfo; import com.sun.star.uno.UnoRuntime; import com.sun.star.uno.XComponentContext; import com.sun.star.uno.XInterface; import complexlib.ComplexTestCase; +import test.lib.TestBed; /** * Test case for bug #108825#. diff --git a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug110892_Test.java b/bridges/test/java_remote/Bug110892_Test.java index 06aee944df48..3216ea96ef26 100644 --- a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug110892_Test.java +++ b/bridges/test/java_remote/Bug110892_Test.java @@ -16,10 +16,9 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -package com.sun.star.lib.uno.bridges.java_remote; +package test.java_remote; import com.sun.star.bridge.XInstanceProvider; -import com.sun.star.lib.TestBed; import com.sun.star.lib.uno.typeinfo.MethodTypeInfo; import com.sun.star.lib.uno.typeinfo.TypeInfo; import com.sun.star.uno.UnoRuntime; @@ -27,6 +26,7 @@ import com.sun.star.uno.XComponentContext; import com.sun.star.uno.XInterface; import complexlib.ComplexTestCase; import util.WaitUnreachable; +import test.lib.TestBed; /** * Test case for bug #110892#. diff --git a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug111153_Test.java b/bridges/test/java_remote/Bug111153_Test.java index 4a601da04811..d8bfbfa02036 100644 --- a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug111153_Test.java +++ b/bridges/test/java_remote/Bug111153_Test.java @@ -16,16 +16,16 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -package com.sun.star.lib.uno.bridges.java_remote; +package test.java_remote; import com.sun.star.bridge.XInstanceProvider; -import com.sun.star.lib.TestBed; import com.sun.star.lib.uno.typeinfo.MethodTypeInfo; import com.sun.star.lib.uno.typeinfo.TypeInfo; import com.sun.star.uno.UnoRuntime; import com.sun.star.uno.XComponentContext; import com.sun.star.uno.XInterface; import complexlib.ComplexTestCase; +import test.lib.TestBed; /** * Test case for bug #111153#. diff --git a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug114133_Test.java b/bridges/test/java_remote/Bug114133_Test.java index d37921abcc9f..01a34dc5cb29 100644 --- a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug114133_Test.java +++ b/bridges/test/java_remote/Bug114133_Test.java @@ -16,14 +16,14 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -package com.sun.star.lib.uno.bridges.java_remote; +package test.java_remote; import com.sun.star.bridge.XInstanceProvider; -import com.sun.star.lib.TestBed; import com.sun.star.uno.XComponentContext; import com.sun.star.uno.XInterface; import complexlib.ComplexTestCase; import util.WaitUnreachable; +import test.lib.TestBed; /** * Test case for bug #114133#. diff --git a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug51323_Test.java b/bridges/test/java_remote/Bug51323_Test.java index a5cf25e10c4c..b3ea331f5047 100644 --- a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug51323_Test.java +++ b/bridges/test/java_remote/Bug51323_Test.java @@ -16,18 +16,18 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -package com.sun.star.lib.uno.bridges.java_remote; +package test.java_remote; import com.sun.star.bridge.XBridgeFactory; import com.sun.star.bridge.XInstanceProvider; import com.sun.star.connection.Connector; import com.sun.star.connection.XConnection; -import com.sun.star.lib.TestBed; import com.sun.star.uno.UnoRuntime; import com.sun.star.uno.XComponentContext; import com.sun.star.uno.XInterface; import complexlib.ComplexTestCase; import util.WaitUnreachable; +import test.lib.TestBed; /** * Test case for bug #i51323#. diff --git a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug92174_Test.java b/bridges/test/java_remote/Bug92174_Test.java index e6b38a978326..2e26ce14cc99 100644 --- a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug92174_Test.java +++ b/bridges/test/java_remote/Bug92174_Test.java @@ -16,16 +16,16 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -package com.sun.star.lib.uno.bridges.java_remote; +package test.java_remote; import com.sun.star.bridge.XInstanceProvider; -import com.sun.star.lib.TestBed; import com.sun.star.lib.uno.typeinfo.MethodTypeInfo; import com.sun.star.lib.uno.typeinfo.TypeInfo; import com.sun.star.uno.UnoRuntime; import com.sun.star.uno.XComponentContext; import com.sun.star.uno.XInterface; import complexlib.ComplexTestCase; +import test.lib.TestBed; public final class Bug92174_Test extends ComplexTestCase { public String[] getTestMethodNames() { diff --git a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug97697_Test.java b/bridges/test/java_remote/Bug97697_Test.java index b89d0f44bd0f..fc1173a5e189 100644 --- a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug97697_Test.java +++ b/bridges/test/java_remote/Bug97697_Test.java @@ -16,17 +16,17 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -package com.sun.star.lib.uno.bridges.java_remote; +package test.java_remote; import com.sun.star.bridge.XInstanceProvider; import com.sun.star.lang.DisposedException; -import com.sun.star.lib.TestBed; import com.sun.star.lib.uno.typeinfo.MethodTypeInfo; import com.sun.star.lib.uno.typeinfo.TypeInfo; import com.sun.star.uno.UnoRuntime; import com.sun.star.uno.XComponentContext; import com.sun.star.uno.XInterface; import complexlib.ComplexTestCase; +import test.lib.TestBed; /** * Test case for bug #97697#. diff --git a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug98508_Test.idl b/bridges/test/java_remote/Bug98508_Test.idl index f58864dd5d58..f58864dd5d58 100644 --- a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug98508_Test.idl +++ b/bridges/test/java_remote/Bug98508_Test.idl diff --git a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug98508_Test.java b/bridges/test/java_remote/Bug98508_Test.java index 34715662f408..0ad2d286d4f2 100644 --- a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/Bug98508_Test.java +++ b/bridges/test/java_remote/Bug98508_Test.java @@ -16,14 +16,14 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -package com.sun.star.lib.uno.bridges.java_remote; +package test.java_remote; import com.sun.star.bridge.XInstanceProvider; import com.sun.star.lang.DisposedException; -import com.sun.star.lib.TestBed; import com.sun.star.uno.UnoRuntime; import com.sun.star.uno.XComponentContext; import complexlib.ComplexTestCase; +import test.lib.TestBed; /** * Test case for bug #98508#. diff --git a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/MethodIdTest.java b/bridges/test/java_remote/MethodIdTest.java index 7c32a75025f4..537cb66965f1 100644 --- a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/MethodIdTest.java +++ b/bridges/test/java_remote/MethodIdTest.java @@ -16,16 +16,16 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -package com.sun.star.lib.uno.bridges.java_remote; +package test.java_remote; import com.sun.star.bridge.XInstanceProvider; -import com.sun.star.lib.TestBed; import com.sun.star.lib.uno.typeinfo.MethodTypeInfo; import com.sun.star.lib.uno.typeinfo.TypeInfo; import com.sun.star.uno.UnoRuntime; import com.sun.star.uno.XComponentContext; import com.sun.star.uno.XInterface; import complexlib.ComplexTestCase; +import test.lib.TestBed; /** * Test case for bug #111153#. diff --git a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/PolyStructTest.idl b/bridges/test/java_remote/PolyStructTest.idl index e163b0b88cae..e163b0b88cae 100644 --- a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/PolyStructTest.idl +++ b/bridges/test/java_remote/PolyStructTest.idl diff --git a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/PolyStructTest.java b/bridges/test/java_remote/PolyStructTest.java index f3b827d07ef1..2243c8642a8a 100644 --- a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/PolyStructTest.java +++ b/bridges/test/java_remote/PolyStructTest.java @@ -16,10 +16,9 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -package com.sun.star.lib.uno.bridges.java_remote; +package test.java_remote; import com.sun.star.bridge.XInstanceProvider; -import com.sun.star.lib.TestBed; import com.sun.star.lib.uno.typeinfo.MemberTypeInfo; import com.sun.star.lib.uno.typeinfo.MethodTypeInfo; import com.sun.star.lib.uno.typeinfo.ParameterTypeInfo; @@ -31,6 +30,7 @@ import com.sun.star.uno.UnoRuntime; import com.sun.star.uno.XComponentContext; import com.sun.star.uno.XInterface; import complexlib.ComplexTestCase; +import test.lib.TestBed; public final class PolyStructTest extends ComplexTestCase { public String[] getTestMethodNames() { diff --git a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/StopMessageDispatcherTest.java b/bridges/test/java_remote/StopMessageDispatcherTest.java index e9933c3a4c39..d1c6a3654a8b 100644 --- a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/StopMessageDispatcherTest.java +++ b/bridges/test/java_remote/StopMessageDispatcherTest.java @@ -16,17 +16,17 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -package com.sun.star.lib.uno.bridges.java_remote; +package test.java_remote; import com.sun.star.bridge.XInstanceProvider; import com.sun.star.lang.DisposedException; -import com.sun.star.lib.TestBed; import com.sun.star.lib.uno.typeinfo.MethodTypeInfo; import com.sun.star.lib.uno.typeinfo.TypeInfo; import com.sun.star.uno.UnoRuntime; import com.sun.star.uno.XComponentContext; import com.sun.star.uno.XInterface; import complexlib.ComplexTestCase; +import test.lib.TestBed; /* This test has to detect whether the spawned client process hangs, which can * not be done reliably. As an approximation, it waits for 10 sec and considers diff --git a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/makefile.mk b/bridges/test/java_remote/makefile.mk index 8ccde565bde6..dd418b488722 100644 --- a/bridges/test/com/sun/star/lib/uno/bridges/java_remote/makefile.mk +++ b/bridges/test/java_remote/makefile.mk @@ -20,7 +20,7 @@ PRJ := ..$/..$/..$/..$/..$/..$/..$/.. PRJNAME := bridges TARGET := test_com_sun_star_lib_uno_bridges_javaremote -PACKAGE := com$/sun$/star$/lib$/uno$/bridges$/javaremote +PACKAGE := test$/javaremote JAVATESTFILES := \ Bug51323_Test.java \ Bug92174_Test.java \ diff --git a/bridges/test/java_uno/acquire/TestAcquire.java b/bridges/test/java_uno/acquire/TestAcquire.java index 7a8701481dcd..33d3605e1827 100644 --- a/bridges/test/java_uno/acquire/TestAcquire.java +++ b/bridges/test/java_uno/acquire/TestAcquire.java @@ -16,7 +16,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -package test.javauno.acquire; +package test.java_uno.acquire; import com.sun.star.bridge.UnoUrlResolver; import com.sun.star.bridge.XBridgeFactory; diff --git a/bridges/test/java_uno/acquire/makefile.mk b/bridges/test/java_uno/acquire/makefile.mk index bdcf6d105178..d8c549d7f0e0 100644 --- a/bridges/test/java_uno/acquire/makefile.mk +++ b/bridges/test/java_uno/acquire/makefile.mk @@ -29,7 +29,7 @@ PRJ := ..$/..$/.. PRJNAME := bridges TARGET := test_javauno_acquire -PACKAGE := test$/javauno$/acquire +PACKAGE := test$/java_uno$/acquire ENABLE_EXCEPTIONS := TRUE diff --git a/bridges/test/java_uno/acquire/types.idl b/bridges/test/java_uno/acquire/types.idl index 0bc0fc10f541..b631c641a38a 100644 --- a/bridges/test/java_uno/acquire/types.idl +++ b/bridges/test/java_uno/acquire/types.idl @@ -18,7 +18,7 @@ #include <com/sun/star/uno/XInterface.idl> -module test { module javauno { module acquire { +module test { module java_uno { module acquire { interface XBase: com::sun::star::uno::XInterface {}; diff --git a/bridges/test/java_uno/any/TestAny.java b/bridges/test/java_uno/any/TestAny.java index 29093a59c972..956c07c171bb 100644 --- a/bridges/test/java_uno/any/TestAny.java +++ b/bridges/test/java_uno/any/TestAny.java @@ -16,7 +16,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -package test.java_uno.anytest; +package test.java_uno.any; import com.sun.star.uno.Any; import com.sun.star.uno.Enum; @@ -24,6 +24,8 @@ import com.sun.star.uno.Type; import com.sun.star.uno.TypeClass; import com.sun.star.uno.XInterface; import java.lang.reflect.Array; +// "any" is a reserved word in IDL, so we need to use a different packagename +import test.java_uno.anytest.*; final class TestAny { public static boolean test(XTransport transport, boolean createTypes) { diff --git a/bridges/test/java_uno/any/TestJni.java b/bridges/test/java_uno/any/TestJni.java index 41aba74cc973..93a69ad90966 100644 --- a/bridges/test/java_uno/any/TestJni.java +++ b/bridges/test/java_uno/any/TestJni.java @@ -16,7 +16,10 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -package test.java_uno.anytest; +package test.java_uno.any; + +//"any" is a reserved word in IDL, so we need to use a different packagename +import test.java_uno.anytest.*; public class TestJni { diff --git a/bridges/test/java_uno/any/TestRemote.java b/bridges/test/java_uno/any/TestRemote.java index 881e79495d32..9dd2aaa28d3b 100644 --- a/bridges/test/java_uno/any/TestRemote.java +++ b/bridges/test/java_uno/any/TestRemote.java @@ -16,12 +16,15 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -package test.java_uno.anytest; +package test.java_uno.any; import com.sun.star.bridge.XInstanceProvider; -import com.sun.star.lib.TestBed; import com.sun.star.uno.UnoRuntime; import com.sun.star.uno.XComponentContext; +import test.lib.TestBed; + +//"any" is a reserved word in IDL, so we need to use a different packagename +import test.java_uno.anytest.*; public final class TestRemote { public static void main(String[] args) throws Exception { diff --git a/bridges/test/java_uno/any/makefile.mk b/bridges/test/java_uno/any/makefile.mk index 15ef004f86d4..f29550a94e9c 100644 --- a/bridges/test/java_uno/any/makefile.mk +++ b/bridges/test/java_uno/any/makefile.mk @@ -20,7 +20,7 @@ PRJ = ..$/..$/.. PRJNAME = bridges TARGET = test_javauno_any -PACKAGE = test$/java_uno$/anytest +PACKAGE = test$/java_uno$/any ENABLE_EXCEPTIONS = TRUE diff --git a/bridges/test/java_uno/equals/TestEquals.java b/bridges/test/java_uno/equals/TestEquals.java index c2dc7b0cf5af..bc79835dc67c 100644 --- a/bridges/test/java_uno/equals/TestEquals.java +++ b/bridges/test/java_uno/equals/TestEquals.java @@ -27,7 +27,6 @@ import com.sun.star.connection.XAcceptor; import com.sun.star.connection.XConnection; import com.sun.star.lang.XMultiComponentFactory; import com.sun.star.lang.XSingleComponentFactory; -import com.sun.star.lib.TestBed; import com.sun.star.lib.uno.typeinfo.MethodTypeInfo; import com.sun.star.lib.uno.typeinfo.TypeInfo; import com.sun.star.loader.XImplementationLoader; @@ -38,6 +37,7 @@ import java.io.File; import java.net.MalformedURLException; import java.util.HashMap; import java.util.Hashtable; +import test.lib.TestBed; // In this test scenario, the Java server (see implementation of method // notifyAccepting) has a remote bridge to the Java client and a local JNI diff --git a/bridges/test/java_uno/nativethreadpool/Relay.java b/bridges/test/java_uno/nativethreadpool/Relay.java index bed6100e8189..2690e10e490b 100644 --- a/bridges/test/java_uno/nativethreadpool/Relay.java +++ b/bridges/test/java_uno/nativethreadpool/Relay.java @@ -16,7 +16,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -package test.javauno.nativethreadpool; +package test.java_uno.nativethreadpool; import com.sun.star.bridge.BridgeExistsException; import com.sun.star.bridge.XBridgeFactory; diff --git a/bridges/test/java_uno/nativethreadpool/makefile.mk b/bridges/test/java_uno/nativethreadpool/makefile.mk index 6e481b136b0f..0930aaa1d58d 100644 --- a/bridges/test/java_uno/nativethreadpool/makefile.mk +++ b/bridges/test/java_uno/nativethreadpool/makefile.mk @@ -29,7 +29,7 @@ PRJ := ..$/..$/.. PRJNAME := bridges TARGET := test_javauno_nativethreadpool -PACKAGE := test$/javauno$/nativethreadpool +PACKAGE := test$/java_uno$/nativethreadpool ENABLE_EXCEPTIONS := TRUE diff --git a/bridges/test/java_uno/nativethreadpool/types.idl b/bridges/test/java_uno/nativethreadpool/types.idl index e14657cd8379..0ec9336edcab 100644 --- a/bridges/test/java_uno/nativethreadpool/types.idl +++ b/bridges/test/java_uno/nativethreadpool/types.idl @@ -18,7 +18,7 @@ #include <com/sun/star/uno/XInterface.idl> -module test { module javauno { module nativethreadpool { +module test { module java_uno { module nativethreadpool { interface XSource: com::sun::star::uno::XInterface { long get(); diff --git a/bridges/test/com/sun/star/lib/TestBed.java b/bridges/test/lib/TestBed.java index 22bf15af9ead..6cf773db3fb8 100644 --- a/bridges/test/com/sun/star/lib/TestBed.java +++ b/bridges/test/lib/TestBed.java @@ -16,7 +16,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -package com.sun.star.lib; +package test.lib; import com.sun.star.bridge.XBridge; import com.sun.star.bridge.XBridgeFactory; diff --git a/bridges/test/com/sun/star/lib/makefile.mk b/bridges/test/lib/makefile.mk index 796a2ddd5ff6..629af7d3e02a 100644 --- a/bridges/test/com/sun/star/lib/makefile.mk +++ b/bridges/test/lib/makefile.mk @@ -20,7 +20,7 @@ PRJ := ..$/..$/..$/..$/.. PRJNAME := bridges TARGET := test_com_sun_star_lib -PACKAGE := com$/sun$/star$/lib +PACKAGE := test$/lib JAVAFILES := TestBed.java JARFILES := juh.jar jurt.jar ridl.jar diff --git a/bridges/test/makefile.mk b/bridges/test/makefile.mk index b819d081c8e5..d3bff979f4e4 100644 --- a/bridges/test/makefile.mk +++ b/bridges/test/makefile.mk @@ -39,7 +39,7 @@ UNOUCRRDB=$(SOLARBINDIR)$/udkapi.rdb $(BIN)$/test.rdb # output directory (one dir for each project) UNOUCROUT=$(OUT)$/inc -# adding to inludeoath +# adding to includepath INCPRE+=$(UNOUCROUT) CFLAGS += -I..$/source$/remote$/urp diff --git a/bridges/test/testclient.java b/bridges/test/testclient.java index 402485ccf8bf..075f6b322392 100644 --- a/bridges/test/testclient.java +++ b/bridges/test/testclient.java @@ -16,6 +16,8 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +package test; + import com.sun.star.uno.UnoRuntime; import com.sun.star.uno.IBridge; import com.sun.star.connection.XConnector; @@ -97,7 +99,7 @@ public class testclient com.sun.star.comp.servicemanager.ServiceManager smgr = new com.sun.star.comp.servicemanager.ServiceManager(); - smgr.addFactories( new String[] { "com.sun.star.comp.connections.Connector" }); + smgr.insert( "com.sun.star.comp.connections.Connector" ); Object x = smgr.createInstance("com.sun.star.connection.Connector"); if( x == null ) |