16
16
*/
17
17
package org .apache .felix .http .jetty .it ;
18
18
19
+ import static java .nio .charset .StandardCharsets .ISO_8859_1 ;
19
20
import static java .nio .charset .StandardCharsets .UTF_8 ;
20
21
import static org .junit .Assert .assertTrue ;
21
22
import static org .ops4j .pax .exam .cm .ConfigurationAdminOptions .newConfiguration ;
22
23
23
24
import java .io .File ;
24
25
import java .io .IOException ;
26
+ import java .nio .charset .StandardCharsets ;
25
27
import java .nio .file .Files ;
26
28
import java .nio .file .Path ;
27
29
import java .nio .file .Paths ;
@@ -68,7 +70,7 @@ public void testMissingDepencencyWarningLogs() throws Exception {
68
70
Awaitility .await ("waitForLogs" )
69
71
.atMost (Duration .ofSeconds (50 ))
70
72
.pollDelay (Duration .ofMillis (200 ))
71
- .until (() -> containsString (logFile , "Failed to initialize jetty EE10 specific websocket support" )
73
+ .until (() -> containsString (logFile , "Failed to initialize jetty EE10 specific websocket support" )
72
74
&& containsString (logFile , "Failed to initialize jakarta EE10 standard websocket support" ));
73
75
}
74
76
@@ -80,7 +82,7 @@ public void testMissingDepencencyWarningLogs() throws Exception {
80
82
* @return true if the text was found, false otherwise
81
83
*/
82
84
private boolean containsString (Path file , String expected ) throws IOException {
83
- String content = Files .readString (file , UTF_8 );
85
+ String content = Files .readString (file , ISO_8859_1 );
84
86
return content .toLowerCase ().contains (expected .toLowerCase ());
85
87
}
86
88
0 commit comments