NamingTableConfigurationFactoryTest.java revision 01f7f939eba03e95a87e8e4a6883d2591336a5ec
/*
* The contents of this file are subject to the terms of the Common Development and
* Distribution License (the License). You may not use this file except in compliance with the
* License.
*
* You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the
* specific language governing permission and limitations under the License.
*
* When distributing Covered Software, include this CDDL Header Notice in each file and include
* the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL
* Header, with the fields enclosed by brackets [] replaced by your own identifying
* information: "Portions copyright [year] [name of copyright owner]".
*
* Copyright 2016 ForgeRock AS.
*/
public class NamingTableConfigurationFactoryTest {
/**
* serverIDMapping for a server URL should return only the serverID
* and not any other ID like siteID. The local server id should be 01.
*/
@Test
public void testServerIDMappingMapsURLOnlytoServerID_0() throws Exception {
// Case 0: Normal standalone server
// Should pass
}
@Test
public void testServerIDMappingMapsURLOnlytoServerID_1() throws Exception {
// Case 1: Site and serverURL setup to be same
// serverURL is part of the SITE
// Given serverID = "01" & siteID = "02"
}
@Test
public void testServerIDMappingMapsURLOnlytoServerID_2() throws Exception {
// Case 2: serverURL setup and a site with same URL is setup
// with same URL. However the SITE is not used.
// Given serverID = "01" & siteID = "02"
}
// When
// Then
// The serverURL shoud be the main serverID and not the siteID.
}
/**
* Get a NamingTable hashmap from a configuration file
*
* @param propfile Namingtable property file
*
* @return Non null Hashtable of NamingTable
*/
}
}
}
}