File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed
test/functional/grpc-proxy-tck/src/main/java/grpc/proxy/ai Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 207
207
</plugin >
208
208
</plugins >
209
209
</build >
210
+
211
+ <profiles >
212
+ <!-- We do not run tests if the JVM is not 21 or higher -->
213
+ <profile >
214
+ <id >NotJava21</id >
215
+ <activation >
216
+ <jdk >(,20]</jdk >
217
+ </activation >
218
+ <properties >
219
+ <is .not.java.21>true</is .not.java.21>
220
+ <skipTests >true</skipTests >
221
+ </properties >
222
+ </profile >
223
+ </profiles >
210
224
</project >
Original file line number Diff line number Diff line change 37
37
38
38
import com .oracle .coherence .grpc .proxy .common .NamedCacheService ;
39
39
40
+ import com .oracle .coherence .testing .CheckJDK ;
40
41
import com .tangosol .io .ReadBuffer ;
41
42
import com .tangosol .io .Serializer ;
42
43
52
53
53
54
import io .grpc .stub .StreamObserver ;
54
55
56
+ import org .junit .jupiter .api .Assumptions ;
57
+ import org .junit .jupiter .api .BeforeAll ;
55
58
import org .junit .jupiter .api .BeforeEach ;
56
59
import org .junit .jupiter .api .Test ;
57
60
import org .junit .jupiter .api .TestInfo ;
75
78
public class VectorServiceIT
76
79
extends BaseGrpcIT
77
80
{
81
+ @ BeforeAll
82
+ static void checkJavaVersion ()
83
+ {
84
+ Assumptions .assumeTrue (CheckJDK .computeVersion (System .getProperty ("java.version" )) >= 21 ,
85
+ "Test skipped as the Java version is less than 21" );
86
+ }
87
+
78
88
@ BeforeEach
79
89
void setupTestInfo (TestInfo info )
80
90
{
You can’t perform that action at this time.
0 commit comments