コード例 #1
0
  /*
   * !!! 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());
  }
コード例 #2
0
 private boolean checkTenantProperties(SecurityProperties properties) {
   return properties.allowAutoLogin()
       && "aUserNameForTenant".equals(properties.getAutoLoginUserName())
       && "aPasswordForTenant".equals(properties.getAutoLoginPassword());
 }