Search in sources :

Example 1 with TestLicenseToolModule

use of org.eclipse.dash.licenses.tests.util.TestLicenseToolModule in project dash-licenses by eclipse.

the class ClearlyDefinedSupportTests method setup.

@BeforeEach
void setup() {
    Injector injector = Guice.createInjector(new TestLicenseToolModule());
    clearlyDefined = injector.getInstance(ClearlyDefinedSupport.class);
}
Also used : ClearlyDefinedSupport(org.eclipse.dash.licenses.clearlydefined.ClearlyDefinedSupport) Injector(com.google.inject.Injector) TestLicenseToolModule(org.eclipse.dash.licenses.tests.util.TestLicenseToolModule) BeforeEach(org.junit.jupiter.api.BeforeEach)

Example 2 with TestLicenseToolModule

use of org.eclipse.dash.licenses.tests.util.TestLicenseToolModule in project dash-licenses by eclipse.

the class ExtendedContentDataServiceTests method setup.

@BeforeEach
void setup() {
    Injector injector = Guice.createInjector(new TestLicenseToolModule());
    dataService = injector.getInstance(ExtendedContentDataService.class);
}
Also used : ExtendedContentDataService(org.eclipse.dash.licenses.extended.ExtendedContentDataService) Injector(com.google.inject.Injector) TestLicenseToolModule(org.eclipse.dash.licenses.tests.util.TestLicenseToolModule) BeforeEach(org.junit.jupiter.api.BeforeEach)

Example 3 with TestLicenseToolModule

use of org.eclipse.dash.licenses.tests.util.TestLicenseToolModule in project dash-licenses by eclipse.

the class LicenseCheckerTests method setup.

@BeforeEach
void setup() {
    Injector injector = Guice.createInjector(new TestLicenseToolModule());
    licenseChecker = injector.getInstance(LicenseChecker.class);
}
Also used : Injector(com.google.inject.Injector) LicenseChecker(org.eclipse.dash.licenses.LicenseChecker) TestLicenseToolModule(org.eclipse.dash.licenses.tests.util.TestLicenseToolModule) BeforeEach(org.junit.jupiter.api.BeforeEach)

Example 4 with TestLicenseToolModule

use of org.eclipse.dash.licenses.tests.util.TestLicenseToolModule in project dash-licenses by eclipse.

the class LicenseSupportTests method setup.

@BeforeEach
void setup() {
    Injector injector = Guice.createInjector(new TestLicenseToolModule());
    licenseSupport = injector.getInstance(LicenseSupport.class);
}
Also used : Injector(com.google.inject.Injector) TestLicenseToolModule(org.eclipse.dash.licenses.tests.util.TestLicenseToolModule) LicenseSupport(org.eclipse.dash.licenses.LicenseSupport) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

Injector (com.google.inject.Injector)4 TestLicenseToolModule (org.eclipse.dash.licenses.tests.util.TestLicenseToolModule)4 BeforeEach (org.junit.jupiter.api.BeforeEach)4 LicenseChecker (org.eclipse.dash.licenses.LicenseChecker)1 LicenseSupport (org.eclipse.dash.licenses.LicenseSupport)1 ClearlyDefinedSupport (org.eclipse.dash.licenses.clearlydefined.ClearlyDefinedSupport)1 ExtendedContentDataService (org.eclipse.dash.licenses.extended.ExtendedContentDataService)1