mirror of
https://gitee.com/dcren/initializr.git
synced 2025-09-18 09:44:47 +08:00
Fix compatiblity with Microsoft Windows
Closes gh-879
This commit is contained in:
@@ -243,8 +243,8 @@ public abstract class AbstractInitializrIntegrationTests {
|
||||
protected JSONObject readJsonFrom(String path) {
|
||||
try {
|
||||
ClassPathResource resource = new ClassPathResource(path);
|
||||
try (InputStream stream = resource.getInputStream()) {
|
||||
String json = StreamUtils.copyToString(stream, Charset.forName("UTF-8"));
|
||||
try (InputStream in = resource.getInputStream()) {
|
||||
String json = StreamUtils.copyToString(in, Charset.forName("UTF-8"));
|
||||
String placeholder = "";
|
||||
if (this instanceof AbstractInitializrControllerIntegrationTests) {
|
||||
placeholder = ((AbstractInitializrControllerIntegrationTests) this).host;
|
||||
|
Reference in New Issue
Block a user