Closed
Description
Provide a way to inject dataSet executors, exe:
@RunWith(CdiTestRunner.class)
public class DeltaspikeIt {
@Inject
@JPADataSet(value = "datasets/contacts.yml",unitName = "customerDB")
JPADataSetExecutor dataSetExecutor;
@Test
public void shouldQueryAllCompaniesUsingInjectedExecutor() {
dataSetExecutor.createDataSet();
assertNotNull(contactService);
assertThat(contactService.findCompanies()).hasSize(4);
}
}
Metadata
Metadata
Assignees
Labels
No labels