Skip to content

CDI - Injectable DataSet Executors #4

Closed
@rmpestano

Description

@rmpestano

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions