public class ApplicationControllerClient {
- public static final String DEFAULT_CONTROLLER_TYPE = "appc";
+ public static final String DEFAULT_CONTROLLER_TYPE = "SDNC";
private static final String CLIENT_NAME = "MSO";
if (controllerType == null) {
controllerType = DEFAULT_CONTROLLER_TYPE;
}
- this.controllerType = controllerType;
+ this.controllerType = controllerType.toUpperCase();
appCSupport = new ApplicationControllerSupport();
}
if (controllerType == null) {
controllerType = DEFAULT_CONTROLLER_TYPE;
}
+ controllerType = controllerType.toUpperCase();
return AppcClientServiceFactoryProvider.getFactory(AppcLifeCycleManagerServiceFactory.class)
.createLifeCycleManagerStateful(new ApplicationContext(), getLCMProperties(controllerType));
} catch (AppcClientException e) {
@Test\r
public void testClientCreation() {\r
ApplicationControllerClient client = new ApplicationControllerClient("appc");\r
- assertEquals(client.getControllerType(), "appc");\r
+ assertEquals(client.getControllerType(), "APPC");\r
assertNotNull(client.getAppCClient());\r
}\r
\r
@Test\r
public void createRequest_CheckLock_RequestBuilt() {\r
- ApplicationControllerClient client = new ApplicationControllerClient("appc");\r
+ ApplicationControllerClient client = new ApplicationControllerClient("APPC");\r
ActionIdentifiers actionIdentifiers = new ActionIdentifiers();\r
actionIdentifiers.setVnfId("vnfId");\r
CheckLockInput checkLockInput = (CheckLockInput) client.createRequest(Action.CheckLock, actionIdentifiers, null,\r
\r
@Test\r
public void test_getLCMPropertiesHelper() {\r
- ApplicationControllerClient client = new ApplicationControllerClient("appc");\r
+ ApplicationControllerClient client = new ApplicationControllerClient();\r
Properties properties = client.getLCMProperties();\r
assertEquals(properties.get("topic.read"), "APPC-TEST-AMDOCS2");\r
assertEquals(properties.get("topic.write"), "APPC-TEST-AMDOCS1-DEV3");\r