-
Notifications
You must be signed in to change notification settings - Fork 290
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(concurrency): Refactor test suites
- Loading branch information
1 parent
05629d9
commit 91385b2
Showing
24 changed files
with
68 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
...RecursiveThreadPoolPropagationTest.groovy → ...RecursiveThreadPoolPropagationTest.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
.../test/groovy/RejectedExecutionTest.groovy → ...ovy/executor/RejectedExecutionTest.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
...a-agent/instrumentation/java-concurrent/src/test/groovy/executor/ToBeIgnoredExecutor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package executor; | ||
|
||
import java.util.concurrent.ArrayBlockingQueue; | ||
import java.util.concurrent.ThreadPoolExecutor; | ||
import java.util.concurrent.TimeUnit; | ||
|
||
public class ToBeIgnoredExecutor extends ThreadPoolExecutor { | ||
public ToBeIgnoredExecutor() { | ||
super(1, 1, 0, TimeUnit.MILLISECONDS, new ArrayBlockingQueue<>(10)); | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
...groovy/ForkJoinPoolPropagationTest.groovy → ...rkjoin/ForkJoinPoolPropagationTest.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
package forkjoin | ||
|
||
import datadog.trace.agent.test.AgentTestRunner | ||
import datadog.trace.core.DDSpan | ||
|
||
|
3 changes: 2 additions & 1 deletion
3
.../groovy/FutureTaskContinuationTest.groovy → ...unnable/FutureTaskContinuationTest.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
...rc/test/groovy/ModuleInjectionTest.groovy → ...roovy/runnable/ModuleInjectionTest.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
package runnable | ||
|
||
import datadog.trace.agent.test.AgentTestRunner | ||
|
||
import javax.swing.* | ||
|
2 changes: 2 additions & 0 deletions
2
...t/groovy/TimerTaskContinuationTest.groovy → ...vy/timer/TimerTaskContinuationTest.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
...c/test/java/CustomThreadPoolExecutor.java → ...va/executor/CustomThreadPoolExecutor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
...est/java/TypeAwareThreadPoolExecutor.java → ...executor/TypeAwareThreadPoolExecutor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
...st/java/RecursiveThreadPoolExecution.java → ...cursive/RecursiveThreadPoolExecution.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
...hreadPoolMixedSubmissionAndExecution.java → ...hreadPoolMixedSubmissionAndExecution.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
...t/java/RecursiveThreadPoolSubmission.java → ...ursive/RecursiveThreadPoolSubmission.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
...va/ExecutingRejectedExecutionHandler.java → ...er/ExecutingRejectedExecutionHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
...a/SwallowingRejectedExecutionHandler.java → ...r/SwallowingRejectedExecutionHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
...-concurrent/src/test/java/LinearTask.java → ...nt/src/test/java/forkjoin/LinearTask.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
...oncurrent/src/test/java/PeriodicTask.java → .../src/test/java/forkjoin/PeriodicTask.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
package forkjoin; | ||
|
||
import datadog.trace.api.Trace; | ||
|
||
public class PeriodicTask implements Runnable { | ||
|
2 changes: 2 additions & 0 deletions
2
...current/src/test/java/CheckpointTask.java → ...rc/test/java/runnable/CheckpointTask.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
...t/src/test/java/ComparableAsyncChild.java → ...t/java/runnable/ComparableAsyncChild.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
...-concurrent/src/test/java/Descendant.java → ...nt/src/test/java/runnable/Descendant.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
...current/src/test/java/JavaAsyncChild.java → ...rc/test/java/runnable/JavaAsyncChild.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
...current/src/test/java/SettableFuture.java → ...rc/test/java/runnable/SettableFuture.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
package runnable; | ||
|
||
import java.util.concurrent.Callable; | ||
import java.util.concurrent.FutureTask; | ||
|
||
|