use of org.kie.workbench.common.screens.datamodeller.client.validation.ValidatorService in project kie-wb-common by kiegroup.
the class DomainEditorBaseTest method initTest.
@Before
public void initTest() {
List<DomainHandler> domainHandlers = new ArrayList<>();
domainHandlers.add(jpaDomainHandler);
when(jpaDomainHandler.getName()).thenReturn("JPA");
when(jpaDomainHandler.isDataObjectAuditEnabled()).thenReturn(false);
when(handlerRegistry.getDomainHandlers()).thenReturn(domainHandlers);
when(handlerRegistry.getDomainHandlers(anyList())).thenReturn(domainHandlers);
when(handlerRegistry.getDomainHandlers(anyString())).thenReturn(domainHandlers);
changeNotifier = new DataModelChangeNotifier(dataModelerEvent);
commandBuilder = new DataModelCommandBuilder(changeNotifier);
modelerServiceCaller = new CallerMock<DataModelerService>(modelerService);
validationServiceCallerMock = new CallerMock<ValidationService>(validationService);
validatorService = new ValidatorService(validationServiceCallerMock);
context = createContext();
}
use of org.kie.workbench.common.screens.datamodeller.client.validation.ValidatorService in project kie-wb-common by kiegroup.
the class NewPackagePopupTest method initTest.
@Before
public void initTest() {
validationServiceCallerMock = new CallerMock<ValidationService>(validationService);
validatorService = new ValidatorService(validationServiceCallerMock);
}
Aggregations