21 Commits
Author SHA1 Message Date
Manish b7e6e0f150 tdf#146150 Use dispatch command instead of numerical ID for the UNO commands
Change-Id: Ia50b51bbb12faabf9c7418530209e48c96425fb2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183563
Tested-by: Jenkins
Reviewed-by: Hossein   <hossein@libreoffice.org>
2025-04-07 07:27:37 +02:00
Samuel Mehrbrodt 065ef005e9 Make createDesktop return XDesktop, not Object
and adjust/cleanup calling instances

Change-Id: I6b7be34fe6fce0a6fdbf2227f3e565b2f434c88c
Reviewed-on: https://gerrit.libreoffice.org/29221
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-09-23 12:25:52 +00:00
Noel Grandin 3bd57cc2c0 java:remove more unnecessary catch/re-throw
Change-Id: Id9a13c7f4ae0fd53c95c551544e60af44bb3fb95
Reviewed-on: https://gerrit.libreoffice.org/16203
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-06-11 12:52:06 +00:00
Noel Grandin 754ade38dd speed up Java unit tests by removing sleeps
and replacing them with a call to XToolkitExperimental::
processEventsToIdle

Change-Id: I9fd6cb8af43d902587186310aebe78b5a5ee6932
Reviewed-on: https://gerrit.libreoffice.org/16201
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-06-11 06:47:23 +00:00
Noel Grandin cc190ef25f there is no need to synchronize createTestEnvironment
the only caller of these methods is already synchronized

Change-Id: Icea587d71acba1eca2a97ae0138a69fa98063f50
2015-06-09 13:10:42 +02:00
Noel Grandin 2a0dda3dfb remove some unnecessary exception wrapping in the Java tests
Modify createTestEnvironment so that it throws Exception. This
is appropriate for unit testing.
The wrapping adds no value and the calling method already has
a catch(Exception) to handle anything.

Change-Id: I430a414f63d2cbfc3b65ecfde0285509265e5192
2015-06-09 11:34:31 +02:00
Noel Grandin 09330056a0 java: simplify sleeping and waiting in tests
- remove the SHORT_WAIT test parameter, no-one is using it
- inline the various independent shortWait() methods
- use the util.utils.shortWait() utility method everywhere

Change-Id: I93cd4a2580172a1441d2ff3d390f52b9505e2721
2015-01-12 08:36:17 +02:00
Noel Grandin 5cba8d44ca java: when rethrowing, store the original exception
Change-Id: Idfca83a2a646acab90886c0ef9c30dd7d2fc8b53
2014-10-16 12:27:13 +02:00
Noel Grandin 83636d2c09 java: when rethrowing exceptions, store the original cause
so that we get a nice complete stacktrace when it hits the final
handler

Change-Id: Iec4fcc15a2a25c55f591b5e069dce3d010197a90
2014-09-25 13:47:25 +02:00
Noel Grandin 0477e6c39b java: add @Override annotation to overriding methods
Change-Id: I086964c6f6ce52c60c52b6dbc445d3c21d22c80a
2014-08-12 09:41:28 +02:00
Noel Grandin f493555623 java: remove some casting in lib.TestParameters#getMSF
where the return value is always cast to XMultiServiceFactory,
so just do the cast in the method and avoid noise at the call sites.

Change-Id: I3a2e06ac6edb3c6021eda6442032db57aaa22e13
2014-08-04 13:38:30 +02:00
Noel Grandin 38d0e9014b Java update - clean up some more @see and @link tags
Change-Id: Ib6f3af37906583af376687962b758d348431585f
2012-08-20 12:55:13 +01:00
Noel Grandin 360f566cf9 Java update - fix a bunch of javadoc warnings in @param tags
Change-Id: Ibaccfd0312ab6697d8c9887367ea664163767587
2012-08-20 12:55:03 +01:00
Noel Grandin 8cd0fc50aa Java - remove dead equals() methods
Change-Id: Ib687f314272f6a8f0d6c609a1fd06e4061fd0f39
2012-06-29 22:03:01 +02:00
Noel Grandin 453d7edc42 Java5 update - convert more code to use generics:wq
Change-Id: I7ea32cad40a6657e4e5886d04af008cb6d67ac6e
2012-06-29 22:03:01 +02:00
Noel Grandin b65017a2a7 Java5 update - usage generics where possible
Change-Id: I12f8c448961919e153047e28fee2a0acf3af1002
2012-06-29 22:03:01 +02:00
Michael Meeks b6db3e3acc re-base on ALv2 code.
Change-Id: Ice06e639213aeb6f7f23cbf4634947dd25613db1
2012-06-21 13:11:06 +01:00
Jens-Heiner Rechtien 7d8d20ca7e changefileheader2: #i109125#: change source file copyright notice from Sun Microsystems to Oracle; remove CVS style keywords (RCSfile, Revision) 2010-02-12 15:01:35 +01:00
Vladimir Glazounov 122adddbef CWS-TOOLING: integrate CWS qadev33 2008-09-30 07:44:27 +00:00
Rüdiger Timm e702ca48bb INTEGRATION: CWS changefileheader (1.2.46); FILE MERGED
2008/03/31 16:50:39 rt 1.2.46.1: #i87441# Change license header to LPGL v3.
2008-04-10 17:37:46 +00:00
Vladimir Glazounov 590fd333b0 INTEGRATION: CWS qadev26 (1.1.2); FILE ADDED
2006/04/11 12:29:27 cn 1.1.2.2: #i64282# insert more then one drawpage
2006/02/09 21:22:56 cn 1.1.2.1: #i61872# new since cws 'viewswitch'
2006-05-17 12:36:50 +00:00