Skip to content

pic sure api wildfly

Bria Morgan edited this page Sep 24, 2018 · 3 revisions

This runs a wildfly instance of PICSURE-2.0 for testing purposes. UserTestInitializer and ResourceTestInitializer insert users and resources into the test database. Integration tests should be included here.

Writing an Integration Test

When possible, integration tests should not call the actual resource, as this will require the publishing of tokens to github. Instead, the tests should mock the resource responses as closely as possible.

The BaseIT class

This class hold fields and methods used in multiple integration tests.