()
| 570 | } |
| 571 | |
| 572 | @Test |
| 573 | public void fixedContextExecutor() { |
| 574 | Context base = Context.current().withValue(PET, "cat"); |
| 575 | QueuedExecutor queuedExecutor = new QueuedExecutor(); |
| 576 | base.fixedContextExecutor(queuedExecutor).execute(runner); |
| 577 | assertEquals(1, queuedExecutor.runnables.size()); |
| 578 | queuedExecutor.runnables.remove().run(); |
| 579 | assertSame(base, observed); |
| 580 | } |
| 581 | |
| 582 | @Test |
| 583 | public void typicalTryFinallyHandling() { |
nothing calls this directly
no test coverage detected