File tree 3 files changed +34
-7
lines changed
webrtc/src/test/java/dev/onvoid/webrtc
3 files changed +34
-7
lines changed Original file line number Diff line number Diff line change 77
77
<plugin >
78
78
<groupId >org.apache.maven.plugins</groupId >
79
79
<artifactId >maven-compiler-plugin</artifactId >
80
- <version >3.8.1</version >
80
+ <version >3.10.1</version >
81
+ <executions >
82
+ <execution >
83
+ <id >default-compile</id >
84
+ <configuration >
85
+ <release >9</release >
86
+ <!-- No excludes: compile everything to ensure module-info contains right entries -->
87
+ </configuration >
88
+ </execution >
89
+ <execution >
90
+ <id >base-compile</id >
91
+ <goals >
92
+ <goal >compile</goal >
93
+ </goals >
94
+ <configuration >
95
+ <!-- Recompile everything for target VM except the module-info.java -->
96
+ <excludes >
97
+ <exclude >module-info.java</exclude >
98
+ </excludes >
99
+ </configuration >
100
+ </execution >
101
+ </executions >
102
+ <!-- Defaults for compile and testCompile -->
81
103
<configuration >
82
- <release >11</release >
104
+ <release >8</release ><!-- compatibility expectations -->
105
+ <!-- Only required when haven't configured the maven-toolchains-plugin -->
106
+ <jdkToolchain >
107
+ <version >9</version >
108
+ </jdkToolchain >
83
109
<showDeprecation >true</showDeprecation >
84
110
<showWarnings >true</showWarnings >
85
111
<fork >true</fork >
Original file line number Diff line number Diff line change 18
18
19
19
import static org .junit .jupiter .api .Assertions .assertEquals ;
20
20
21
- import java .util .List ;
21
+ import java .util .Arrays ;
22
22
23
23
import org .junit .jupiter .api .Test ;
24
24
@@ -43,8 +43,8 @@ void textMessage() throws Exception {
43
43
44
44
Thread .sleep (500 );
45
45
46
- assertEquals (List . of ("Hello world" ), callee .getReceivedTexts ());
47
- assertEquals (List . of ("Hi :)" ), caller .getReceivedTexts ());
46
+ assertEquals (Arrays . asList ("Hello world" ), callee .getReceivedTexts ());
47
+ assertEquals (Arrays . asList ("Hi :)" ), caller .getReceivedTexts ());
48
48
49
49
caller .close ();
50
50
callee .close ();
Original file line number Diff line number Diff line change 19
19
import static org .junit .jupiter .api .Assertions .*;
20
20
21
21
import dev .onvoid .webrtc .media .audio .AudioDevice ;
22
+ import dev .onvoid .webrtc .media .video .VideoCaptureCapability ;
22
23
import dev .onvoid .webrtc .media .video .VideoDevice ;
23
24
24
25
import java .util .List ;
@@ -42,8 +43,8 @@ void getVideoDevices() {
42
43
43
44
assertNotNull (captureDevices );
44
45
45
- for (var device : captureDevices ) {
46
- var capabilities = MediaDevices .getVideoCaptureCapabilities (device );
46
+ for (VideoDevice device : captureDevices ) {
47
+ List < VideoCaptureCapability > capabilities = MediaDevices .getVideoCaptureCapabilities (device );
47
48
48
49
assertNotNull (capabilities );
49
50
}
You can’t perform that action at this time.
0 commit comments