Esempio n. 1
0
//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();
        }
Esempio n. 2
0
//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);
        }
Esempio n. 3
0
//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);
        }
Esempio n. 4
0
//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();
        }
Esempio n. 5
0
//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);
        }