This is a base class for JUnit integration tests of XL Release. Inheritors of this class
can define
Autowired XL Release services in fields and use them to setup a test
environment and assert conditions.
A typical test would look like this:
public class MyIntegrationTest extends XLReleaseIntegrationTest {
@Autowired
private RepositoryService repositoryService;
@Test
public void should_create_release_in_repository() {
Release release = ReleaseBuilder.newRelease().withId(TestIds.RELEASE1).build();
repositoryService.create(release);
assertThat(repositoryService.read(TestIds.RELEASE1)).isNotNull();
}
}
Note: A test instance of XL Release is setup in a temporary folder and
has some services mocked up for speed and easier testing. So you cannot test initializers or
upgraders, for example.