blob: d80fbda8f63492c32df9814b50cfd4d2bb711dcc [file] [log] [blame]
package org.eclipse.openk.portal.common;
import org.junit.Test;
import org.powermock.reflect.Whitebox;
public class InitBackendConfigTest {
private InitBackendConfig initBackendConfig = new InitBackendConfig();
@Test
public void testSetConfigFiles() throws Exception {
Whitebox.invokeMethod(initBackendConfig, "setConfigFiles", "DevLocal");
}
private void testGeneric(String environment ) throws Exception {
Whitebox.invokeMethod(initBackendConfig, "setConfigFiles", environment);
}
@Test
public void testCombinations() throws Exception {
testGeneric("DevLocal");
testGeneric("DevLocal");
testGeneric("DevServer");
testGeneric("DevServer");
testGeneric("Custom");
testGeneric("Custom");
testGeneric(null);
testGeneric(null);
testGeneric("");
testGeneric("");
}
}