|
|
|
@ -156,7 +156,8 @@ class HazelcastAutoConfigurationServerTests { |
|
|
|
return (context) -> { |
|
|
|
return (context) -> { |
|
|
|
Config config = context.getBean(HazelcastInstance.class).getConfig(); |
|
|
|
Config config = context.getBean(HazelcastInstance.class).getConfig(); |
|
|
|
String configurationLocation = (config.getConfigurationUrl() != null) |
|
|
|
String configurationLocation = (config.getConfigurationUrl() != null) |
|
|
|
? config.getConfigurationUrl().toString() : config.getConfigurationFile().getAbsolutePath(); |
|
|
|
? config.getConfigurationUrl().toString() |
|
|
|
|
|
|
|
: config.getConfigurationFile().toURI().toURL().toString(); |
|
|
|
assertThat(configurationLocation).endsWith(location); |
|
|
|
assertThat(configurationLocation).endsWith(location); |
|
|
|
}; |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|
|