@@ -27,7 +27,7 @@ public class AbstractDirectTaskTest extends RxJavaTest {
27
27
28
28
@ Test
29
29
public void cancelSetFuture () {
30
- AbstractDirectTask task = new AbstractDirectTask (Functions .EMPTY_RUNNABLE ) {
30
+ AbstractDirectTask task = new AbstractDirectTask (Functions .EMPTY_RUNNABLE , true ) {
31
31
private static final long serialVersionUID = 208585707945686116L ;
32
32
};
33
33
final Boolean [] interrupted = { null };
@@ -58,7 +58,7 @@ public boolean cancel(boolean mayInterruptIfRunning) {
58
58
59
59
@ Test
60
60
public void cancelSetFutureCurrentThread () {
61
- AbstractDirectTask task = new AbstractDirectTask (Functions .EMPTY_RUNNABLE ) {
61
+ AbstractDirectTask task = new AbstractDirectTask (Functions .EMPTY_RUNNABLE , true ) {
62
62
private static final long serialVersionUID = 208585707945686116L ;
63
63
};
64
64
final Boolean [] interrupted = { null };
@@ -91,7 +91,7 @@ public boolean cancel(boolean mayInterruptIfRunning) {
91
91
92
92
@ Test
93
93
public void setFutureCancel () {
94
- AbstractDirectTask task = new AbstractDirectTask (Functions .EMPTY_RUNNABLE ) {
94
+ AbstractDirectTask task = new AbstractDirectTask (Functions .EMPTY_RUNNABLE , true ) {
95
95
private static final long serialVersionUID = 208585707945686116L ;
96
96
};
97
97
final Boolean [] interrupted = { null };
@@ -119,7 +119,7 @@ public boolean cancel(boolean mayInterruptIfRunning) {
119
119
120
120
@ Test
121
121
public void setFutureCancelSameThread () {
122
- AbstractDirectTask task = new AbstractDirectTask (Functions .EMPTY_RUNNABLE ) {
122
+ AbstractDirectTask task = new AbstractDirectTask (Functions .EMPTY_RUNNABLE , true ) {
123
123
private static final long serialVersionUID = 208585707945686116L ;
124
124
};
125
125
final Boolean [] interrupted = { null };
@@ -148,7 +148,7 @@ public boolean cancel(boolean mayInterruptIfRunning) {
148
148
149
149
@ Test
150
150
public void finished () {
151
- AbstractDirectTask task = new AbstractDirectTask (Functions .EMPTY_RUNNABLE ) {
151
+ AbstractDirectTask task = new AbstractDirectTask (Functions .EMPTY_RUNNABLE , true ) {
152
152
private static final long serialVersionUID = 208585707945686116L ;
153
153
};
154
154
final Boolean [] interrupted = { null };
@@ -177,7 +177,7 @@ public boolean cancel(boolean mayInterruptIfRunning) {
177
177
178
178
@ Test
179
179
public void finishedCancel () {
180
- AbstractDirectTask task = new AbstractDirectTask (Functions .EMPTY_RUNNABLE ) {
180
+ AbstractDirectTask task = new AbstractDirectTask (Functions .EMPTY_RUNNABLE , true ) {
181
181
private static final long serialVersionUID = 208585707945686116L ;
182
182
};
183
183
final Boolean [] interrupted = { null };
@@ -211,7 +211,7 @@ public boolean cancel(boolean mayInterruptIfRunning) {
211
211
@ Test
212
212
public void disposeSetFutureRace () {
213
213
for (int i = 0 ; i < TestHelper .RACE_DEFAULT_LOOPS ; i ++) {
214
- final AbstractDirectTask task = new AbstractDirectTask (Functions .EMPTY_RUNNABLE ) {
214
+ final AbstractDirectTask task = new AbstractDirectTask (Functions .EMPTY_RUNNABLE , true ) {
215
215
private static final long serialVersionUID = 208585707945686116L ;
216
216
};
217
217
@@ -246,7 +246,7 @@ static class TestDirectTask extends AbstractDirectTask {
246
246
private static final long serialVersionUID = 587679821055711738L ;
247
247
248
248
TestDirectTask () {
249
- super (Functions .EMPTY_RUNNABLE );
249
+ super (Functions .EMPTY_RUNNABLE , true );
250
250
}
251
251
}
252
252
0 commit comments