mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-17 01:31:01 +00:00
use background task executor to refresh wind estimation track cache
Change-Id: I6fa08dadde0893ddddbac7f09a1d86e98a8299c7
This commit is contained in:
1 parent
dbd0aa490d
commit
1e90300183
3 files changed
+18
-18
No files matched your search
@@ -6,4 +6,4 @@ Bundle-Version: 1.0.0.qualifier
|
||||
Bundle-Vendor: SAP
|
||||
Fragment-Host: com.sap.sse
|
||||
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
|
||||
Require-Bundle: org.junit4
|
||||
Require-Bundle: org.junit4;bundle-version="4.8.2"
|
||||
@@ -15,6 +15,11 @@ public class AbortingTaskScheduledAtFixedRateTest {
|
||||
private static final int RATE_IN_MILLIS = 100;
|
||||
private static final Logger logger = Logger.getLogger(AbortingTaskScheduledAtFixedRateTest.class.getName());
|
||||
|
||||
/**
|
||||
* Asserts that calling {@link ScheduledFuture#cancel(boolean)} on an object returned by
|
||||
* {@link ScheduledExecutorService#scheduleAtFixedRate(Runnable, long, long, TimeUnit)} keeps the
|
||||
* task from executing again.
|
||||
*/
|
||||
@Test
|
||||
public void testAbortTaskScheduledAtFixedRate() throws InterruptedException {
|
||||
final int[] executions = new int[1];
|
||||
|
||||
Reference in new issue
Block a user