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>
3 files changed
tree: 35cfcc82b161936c35431dc97f1fc32b66cb3daa
  1. auth/
  2. context/
  3. core/
  4. model/
  5. packages/
  6. plugins/
  7. services/
  8. testsuites/
  9. .gitignore
  10. .gitreview
  11. INFO.yaml
  12. LICENSE.txt
  13. pom.xml
  14. README.md
  15. version.properties
README.md

Copyright (C) 2016-2018 Ericsson. All rights reserved. This file is licensed under the CREATIVE COMMONS ATTRIBUTION 4.0 INTERNATIONAL LICENSE Full license text at https://creativecommons.org/licenses/by/4.0/legalcode

This source repository contains the ONAP Policy APEX PDP Engine code. The settings file only needs to support the standard Maven repositories (e.g. central = http://repo1.maven.org/maven2/), and any proxy settings needed in your environment.

To build it using Maven 3, run: mvn clean install