File tree 10 files changed +63
-40
lines changed
src/test/java/org/reactivestreams/tck
src/test/java/org/reactivestreams/tck/flow
10 files changed +63
-40
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ before_install:
14
14
15
15
matrix :
16
16
include :
17
- - jdk : openjdk7
17
+ # JDK 7 no longer supported by Gradle 6+
18
+ # - jdk: openjdk7
18
19
- jdk : oraclejdk8 # JDK 1.8.0_131-b11
19
20
- jdk : oraclejdk9
20
21
Original file line number Diff line number Diff line change @@ -19,7 +19,13 @@ sourceSets {
19
19
}
20
20
21
21
jar {
22
- manifest {
23
- attributes(' Automatic-Module-Name' : ' org.reactivestreams' )
24
- }
22
+ bnd (' Bundle-Name' : ' reactive-streams-jvm' ,
23
+ ' Bundle-Vendor' : ' Reactive Streams SIG' ,
24
+ ' Bundle-Description' : ' Reactive Streams API' ,
25
+ ' Bundle-DocURL' : ' http://reactive-streams.org' ,
26
+ ' Bundle-Version' : project. version,
27
+ ' Export-Package' : ' org.reactivestreams.*' ,
28
+ ' Automatic-Module-Name' : ' org.reactivestreams'
29
+ )
25
30
}
31
+
Original file line number Diff line number Diff line change
1
+ buildscript {
2
+ repositories {
3
+ jcenter()
4
+ mavenCentral()
5
+ maven {
6
+ url " https://plugins.gradle.org/m2/"
7
+ }
8
+ }
9
+ dependencies {
10
+ classpath " biz.aQute.bnd:biz.aQute.bnd.gradle:4.3.1"
11
+ }
12
+ }
13
+
1
14
subprojects {
2
- apply plugin : " java"
3
- apply plugin : " osgi "
15
+ apply plugin : " java-library "
16
+ apply plugin : ' biz.aQute.bnd.builder '
4
17
5
18
group = " org.reactivestreams"
6
19
version = " 1.0.3"
@@ -36,16 +49,6 @@ subprojects {
36
49
mavenCentral()
37
50
}
38
51
39
-
40
- jar {
41
- manifest {
42
- instructionReplace " Bundle-Vendor" , " Reactive Streams SIG"
43
- instructionReplace " Bundle-Description" , " Reactive Streams API"
44
- instructionReplace " Bundle-DocURL" , " http://reactive-streams.org"
45
- instructionReplace " Bundle-Version" , " 1.0.3"
46
- }
47
- }
48
-
49
52
if (name in [" reactive-streams" ,
50
53
" reactive-streams-tck" ,
51
54
" reactive-streams-tck-flow" ,
Original file line number Diff line number Diff line change 1
1
description = ' reactive-streams-examples'
2
2
dependencies {
3
- compile project(' :reactive-streams' )
4
- testCompile project(' :reactive-streams-tck' )
3
+ implementation project(' :reactive-streams' )
4
+ testImplementation project(' :reactive-streams-tck' )
5
5
}
6
6
7
7
jar {
8
- manifest {
9
- attributes(' Automatic-Module-Name' : ' org.reactivestreams.examples' )
10
- }
8
+ bnd (' Bundle-Name' : ' reactive-streams-jvm' ,
9
+ ' Bundle-Vendor' : ' Reactive Streams SIG' ,
10
+ ' Bundle-Description' : ' Reactive Streams Examples' ,
11
+ ' Bundle-DocURL' : ' http://reactive-streams.org' ,
12
+ ' Bundle-Version' : project. version,
13
+ ' Export-Package' : ' org.reactivestreams.example.*' ,
14
+ ' Automatic-Module-Name' : ' org.reactivestreams.examples'
15
+ )
11
16
}
12
17
13
18
test. useTestNG()
Original file line number Diff line number Diff line change 1
1
distributionBase =GRADLE_USER_HOME
2
2
distributionPath =wrapper/dists
3
+ distributionUrl =https\://services.gradle.org/distributions/gradle-6.0.1-bin.zip
3
4
zipStoreBase =GRADLE_USER_HOME
4
5
zipStorePath =wrapper/dists
5
- distributionUrl =https\://services.gradle.org/distributions/gradle-4.10.3-bin.zip
Original file line number Diff line number Diff line change 1
1
description = ' reactive-streams-tck-flow'
2
2
dependencies {
3
- compile group : ' org.testng ' , name : ' testng ' , version : ' 5.14.10 '
4
- compile project(' :reactive-streams-tck ' )
3
+ api project( ' :reactive-streams-tck ' )
4
+ implementation project(' :reactive-streams-examples ' )
5
5
}
6
6
7
7
jar {
8
- manifest {
9
- attributes(' Automatic-Module-Name' : ' org.reactivestreams.tckflow' )
10
- }
8
+ bnd (' Bundle-Name' : ' reactive-streams-jvm' ,
9
+ ' Bundle-Vendor' : ' Reactive Streams SIG' ,
10
+ ' Bundle-Description' : ' Reactive Streams TCK Flow' ,
11
+ ' Bundle-DocURL' : ' http://reactive-streams.org' ,
12
+ ' Bundle-Version' : project. version,
13
+ ' Export-Package' : ' org.reactivestreams.tck.flow.*' ,
14
+ ' Automatic-Module-Name' : ' org.reactivestreams.tckflow'
15
+ )
11
16
}
12
17
13
18
test. useTestNG()
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ public SyncTriggeredDemandSubscriberTest() {
33
33
super (new TestEnvironment ());
34
34
}
35
35
36
+ @ Test (enabled = false )
36
37
@ Override
37
38
public void triggerFlowRequest (Flow .Subscriber <? super Integer > subscriber ) {
38
39
((SyncTriggeredDemandFlowSubscriber <? super Integer >) subscriber ).triggerDemand (1 );
Original file line number Diff line number Diff line change 1
1
description = ' reactive-streams-tck'
2
2
dependencies {
3
- compile group : ' org.testng' , name : ' testng' , version :' 5.14.10 '
4
- compile project(' :reactive-streams' )
5
- compile project(' :reactive-streams-examples' )
3
+ api group : ' org.testng' , name : ' testng' , version :' 7.0.0 '
4
+ api project(' :reactive-streams' )
5
+ implementation project(' :reactive-streams-examples' )
6
6
}
7
7
8
8
jar {
9
- manifest {
10
- attributes(' Automatic-Module-Name' : ' org.reactivestreams.tck' )
11
- }
9
+ bnd (' Bundle-Name' : ' reactive-streams-jvm' ,
10
+ ' Bundle-Vendor' : ' Reactive Streams SIG' ,
11
+ ' Bundle-Description' : ' Reactive Streams TCK' ,
12
+ ' Bundle-DocURL' : ' http://reactive-streams.org' ,
13
+ ' Bundle-Version' : project. version,
14
+ ' Export-Package' : ' org.reactivestreams.tck.*' ,
15
+ ' Automatic-Module-Name' : ' org.reactivestreams.tck'
16
+ )
12
17
}
13
18
14
19
test. useTestNG()
Original file line number Diff line number Diff line change 11
11
12
12
package org .reactivestreams .tck ;
13
13
14
- import org .reactivestreams .Subscriber ;
15
- import org .testng .annotations .AfterClass ;
16
- import org .testng .annotations .BeforeClass ;
17
- import org .testng .annotations .Test ;
14
+ import java .util .concurrent .*;
18
15
16
+ import org .reactivestreams .Subscriber ;
19
17
import org .reactivestreams .tck .flow .support .SyncTriggeredDemandSubscriber ;
20
-
21
- import java .util .concurrent .ExecutorService ;
22
- import java .util .concurrent .Executors ;
18
+ import org .testng .annotations .*;
23
19
24
20
@ Test // Must be here for TestNG to find and run this, do not remove
25
21
public class SyncTriggeredDemandSubscriberTest extends SubscriberBlackboxVerification <Integer > {
@@ -32,6 +28,7 @@ public SyncTriggeredDemandSubscriberTest() {
32
28
super (new TestEnvironment ());
33
29
}
34
30
31
+ @ Test (enabled = false ) // TestNG tries to inject here but this is a helper method
35
32
@ Override public void triggerRequest (final Subscriber <? super Integer > subscriber ) {
36
33
((SyncTriggeredDemandSubscriber <? super Integer >)subscriber ).triggerDemand (1 );
37
34
}
You can’t perform that action at this time.
0 commit comments