Exemple #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void changeSuspendedState() throws Throwable
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void ChangeSuspendedState()
        {
            ToSuspendedStateConflict.set(_lifeCycle);
            assertEquals(ShouldEndInState, _lifeCycle.status);
        }
Exemple #2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Before public void setUpServer() throws Throwable
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void SetUpServer()
        {
            _lifeCycle = new StateAwareSuspendableLifeCycle(NullLogProvider.Instance.getLog("log"));
            setInitialState(_lifeCycle, FromState);
            FromSuspendedState.set(_lifeCycle);
        }
Exemple #3
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Before public void setUpServer() throws Throwable
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void SetUpServer()
        {
            _lifeCycle = new StateAwareSuspendableLifeCycle((new AssertableLogProvider(false)).getLog("log"));
            setInitialState(_lifeCycle, FromState);
            FromSuspendedState.set(_lifeCycle);
        }