Fix test failure due to wait timeout 85/55785/3
authorliamfallon <liam.fallon@ericsson.com>
Wed, 4 Jul 2018 07:50:48 +0000 (08:50 +0100)
committerliamfallon <liam.fallon@ericsson.com>
Wed, 4 Jul 2018 11:42:40 +0000 (12:42 +0100)
commit84f1e1ffa656b384338019a2c7052c8872b0e1c1
tree35cfcc82b161936c35431dc97f1fc32b66cb3daa
parentdd6627d723a23bada5721d5d7bd7121ebd0c3245
Fix test failure due to wait timeout

THe Avro and Java context integration tests waited for one second for APEX
to produce the output event to file before stopping APEX. This timeout is
usually fine. However, occasionally in the ONAP Jenkins build jobs, the
test ocassionally times out.

The tests are amended to wait for the file to exist and have content or for 10
seconds, whichever comes sooner.

Also consolidated two test classes into a single class and improved
temporary file handling.

Issue-ID: POLICY-905
Change-Id: I5e370353d2b627203e270cb6efeb560af7dc2acf
Signed-off-by: liamfallon <liam.fallon@ericsson.com>
testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/apps/uservice/test/context/AvroEventAlbumContextTest.java [deleted file]
testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/apps/uservice/test/context/EventAlbumContextTest.java [new file with mode: 0644]
testsuites/integration/integration-uservice-test/src/test/java/org/onap/policy/apex/apps/uservice/test/context/JavaEventAlbumContextTest.java [deleted file]