/* * !!! These test depends on files in test resources !!! */ @Test public void testLastDeployedProcessPropertiesCanBeRetrieveFromAFile() throws Exception { SecurityProperties processProperties = SecurityProperties.getInstance(1, new ProcessIdentifier("process3", "2.9")); assertFalse(processProperties.allowAutoLogin()); assertEquals("aUserNameForSecondDeployement", processProperties.getAutoLoginUserName()); assertEquals("aPasswordForSecondDeployement", processProperties.getAutoLoginPassword()); }
private boolean checkTenantProperties(SecurityProperties properties) { return properties.allowAutoLogin() && "aUserNameForTenant".equals(properties.getAutoLoginUserName()) && "aPasswordForTenant".equals(properties.getAutoLoginPassword()); }