//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: @Override public void setUp() throws Exception public override void setUp() { ProcessEngineConfigurationImpl config = (ProcessEngineConfigurationImpl)ProcessEngine.ProcessEngineConfiguration; optimizeService = config.OptimizeService; base.setUp(); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Before public void setUpRuntimeData() public virtual void setUpRuntimeData() { mockedOptimizeService = mock(typeof(OptimizeService)); ProcessEngineConfigurationImpl mockedConfig = mock(typeof(ProcessEngineConfigurationImpl)); namedProcessEngine = getProcessEngine(MockProvider.EXAMPLE_PROCESS_ENGINE_NAME); when(namedProcessEngine.ProcessEngineConfiguration).thenReturn(mockedConfig); when(mockedConfig.OptimizeService).thenReturn(mockedOptimizeService); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Before public void init() public virtual void init() { ProcessEngineConfigurationImpl config = engineRule.ProcessEngineConfiguration; optimizeService = config.OptimizeService; identityService = engineRule.IdentityService; runtimeService = engineRule.RuntimeService; authorizationService = engineRule.AuthorizationService; createUser(userId); }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: @Override public void setUp() throws Exception public override void setUp() { ProcessEngineConfigurationImpl config = (ProcessEngineConfigurationImpl)ProcessEngine.ProcessEngineConfiguration; optimizeService = config.OptimizeService; DeploymentBuilder deploymentbuilder = repositoryService.createDeployment(); BpmnModelInstance defaultModel = Bpmn.createExecutableProcess("process").startEvent().endEvent().done(); deploymentId = deployment(deploymentbuilder, defaultModel); base.setUp(); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Before public void setUpRuntimeData() public virtual void setUpRuntimeData() { historicUpdateBuilder = MockProvider.mockHistoricVariableUpdate(); historicUpdateMock = historicUpdateBuilder.build(); mockedOptimizeService = mock(typeof(OptimizeService)); ProcessEngineConfigurationImpl mockedConfig = mock(typeof(ProcessEngineConfigurationImpl)); when(mockedOptimizeService.getHistoricVariableUpdates(any(typeof(DateTime)), any(typeof(DateTime)), anyInt())).thenReturn(Arrays.asList(historicUpdateMock)); namedProcessEngine = getProcessEngine(MockProvider.EXAMPLE_PROCESS_ENGINE_NAME); when(namedProcessEngine.ProcessEngineConfiguration).thenReturn(mockedConfig); when(mockedConfig.OptimizeService).thenReturn(mockedOptimizeService); }