mirror of
https://github.com/Alfresco/SearchServices.git
synced 2026-09-16 18:12:56 +00:00
SEARCH-3022 Fix formatting
This commit is contained in:
+2
-2
@@ -93,13 +93,13 @@ public class CoreDescriptorDecorator
|
||||
{
|
||||
coreProperties.forEach(prop -> {
|
||||
String value = ConfigUtil.locateProperty(prop, null);
|
||||
if (value != null)
|
||||
if (value != null)
|
||||
{
|
||||
properties.put(prop, value);
|
||||
}
|
||||
});
|
||||
}
|
||||
catch(Exception e)
|
||||
catch (Exception e)
|
||||
{
|
||||
log.warn("Unable to locate alfresco host|port|baseUrl|ssl properties", e);
|
||||
}
|
||||
|
||||
+8
-5
@@ -84,14 +84,17 @@ public class ConfigUtilTest {
|
||||
@Test
|
||||
public void testMissingCoreProperty()
|
||||
{
|
||||
HashMap<String,String> coreProps = new HashMap<String,String>();
|
||||
Properties saved = (Properties)System.getProperties().clone();
|
||||
HashMap<String, String> coreProps = new HashMap<String, String>();
|
||||
Properties saved = (Properties) System.getProperties().clone();
|
||||
System.setProperty("alfresco.secureComms", "https");
|
||||
for (String key : CoreDescriptorDecorator.SUBSTITUTABLE_PROPERTIES_SECURE) {
|
||||
for (String key : CoreDescriptorDecorator.SUBSTITUTABLE_PROPERTIES_SECURE)
|
||||
{
|
||||
// Intentionally omit store provider settings
|
||||
if (!key.endsWith("store.provider")) {
|
||||
if (!key.endsWith("store.provider"))
|
||||
{
|
||||
// Set store type as system property
|
||||
if (key.endsWith("store.type")) {
|
||||
if (key.endsWith("store.type"))
|
||||
{
|
||||
System.setProperty(key, "JKS");
|
||||
}
|
||||
coreProps.put(key, "irrelevant");
|
||||
|
||||
Reference in New Issue
Block a user