Searched refs:singletonRunner (Results 1 – 1 of 1) sorted by relevance
39 SingletonRunner<Integer> singletonRunner = in testShouldRunTask() local45 singletonRunner.runSingleInstance().get(); in testShouldRunTask()53 … SingletonRunner<Integer> singletonRunner = new SingletonRunner<>("Test task", testTaskRunner); in testShouldReturnSameFutureIfTaskIsNotCompleted() local54 assertThat(singletonRunner.runSingleInstance()) in testShouldReturnSameFutureIfTaskIsNotCompleted()55 .isSameInstanceAs(singletonRunner.runSingleInstance()); in testShouldReturnSameFutureIfTaskIsNotCompleted()62 … SingletonRunner<Integer> singletonRunner = new SingletonRunner<>("Test task", testTaskRunner); in testShouldReturnDifferentFuturesIfTaskIsCompleted() local63 FluentFuture<Integer> firstCall = singletonRunner.runSingleInstance(); in testShouldReturnDifferentFuturesIfTaskIsCompleted()68 assertThat(firstCall).isNotSameInstanceAs(singletonRunner.runSingleInstance()); in testShouldReturnDifferentFuturesIfTaskIsCompleted()75 … SingletonRunner<Integer> singletonRunner = new SingletonRunner<>("Test task", testTaskRunner); in testShouldRunOnce() local76 FluentFuture<Integer> firstRunResult = singletonRunner.runSingleInstance(); in testShouldRunOnce()[all …]