office-gobmx/ridljar
Noel Grandin ee118a5e69 fix dodgy unit test
Testing a field which is being modified inside a synchronized block,
outside of such a block, is going to lead to weird ordering issues when
running a highly parallel test like this, so test the flag inside a
synchronized block.

Failure manifested as:

JUnit version 4.13.2
........E...........
Time: 17,27
There was 1 failure:
1)
testStaticThreadExecutesAsyncs(com.sun.star.lib.uno.environments.remote.JobQueue_Test)
java.lang.AssertionError: expected:<35> but was:<34>
	at org.junit.Assert.fail(Assert.java:89)
	at org.junit.Assert.failNotEquals(Assert.java:835)
	at org.junit.Assert.assertEquals(Assert.java:647)
	at org.junit.Assert.assertEquals(Assert.java:633)
	at
com.sun.star.lib.uno.environments.remote.TestWorkAt.passedAsyncTest(TestWorkAt.java:75)
	at
com.sun.star.lib.uno.environments.remote.JobQueue_Test.testAsyncJobQueue(JobQueue_Test.java:180)
	at
com.sun.star.lib.uno.environments.remote.JobQueue_Test.testStaticThreadExecutesAsyncs(JobQueue_Test.java:121)

FAILURES!!!
Tests run: 19,  Failures: 1

Change-Id: Iad980aea1245bfd8ee89887b175eb9dc17643778
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163727
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-02-22 17:48:23 +01:00
..
com/sun/star
source
test/com/sun/star
util
BUCK
CustomTarget_javamaker.mk
CustomTarget_test_urp.mk
InternalUnoApi_test_urp.mk
Jar_libreoffice.mk
Jar_ridl.mk
Jar_unoloader.mk
JunitTest_bridgefactory.mk
JunitTest_connections.mk
JunitTest_java.mk
JunitTest_java_remote.mk
JunitTest_remote.mk
JunitTest_typedesc.mk
JunitTest_uno.mk
JunitTest_urp.mk
JunitTest_util.mk
Makefile
Module_ridljar.mk
pom.libreoffice.xml
pom.ridl.xml
pom.unoloader.xml
README.md

Java UNO Types Generator

Implements types for the Java UNO typesystem.