//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void mustNotRescheduleDelayedTasks() throws Exception //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#: public virtual void MustNotRescheduleDelayedTasks() { JobHandle handle = _scheduler.submit(Group.STORAGE_MAINTENANCE, _counter.incrementAndGet, 100, 0); _clock.forward(100, TimeUnit.NANOSECONDS); _scheduler.tick(); handle.WaitTermination(); assertThat(_counter.get(), @is(1)); _clock.forward(100, TimeUnit.NANOSECONDS); _scheduler.tick(); handle.WaitTermination(); _pools.getThreadPool(Group.STORAGE_MAINTENANCE).shutDown(); assertThat(_counter.get(), @is(1)); }
public override ThreadFactory ThreadFactory(Group group) { return(_pools.getThreadPool(group).ThreadFactory); }