2  * ============LICENSE_START=======================================================
 
   4  * ================================================================================
 
   5  * Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.
 
   6  * =============================================================================
 
   7  * Licensed under the Apache License, Version 2.0 (the "License");
 
   8  * you may not use this file except in compliance with the License.
 
   9  * You may obtain a copy of the License at
 
  11  *      http://www.apache.org/licenses/LICENSE-2.0
 
  13  * Unless required by applicable law or agreed to in writing, software
 
  14  * distributed under the License is distributed on an "AS IS" BASIS,
 
  15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
  16  * See the License for the specific language governing permissions and
 
  17  * limitations under the License.
 
  18  * ============LICENSE_END=========================================================
 
  21 package org.onap.appc.adapter.ssh;
 
  23 import static org.junit.Assert.assertEquals;
 
  24 import java.lang.reflect.Constructor;
 
  25 import org.junit.Test;
 
  27 public class ConstantsTest {
 
  31         String payLoad = Constants.PAYLOAD;
 
  32         assertEquals(payLoad, "payload");
 
  34         assertEquals(Constants.NETCONF_SCHEMA, "sdnctl");
 
  35         assertEquals(Constants.SDNCTL_SCHEMA, "sdnctl" );
 
  36         assertEquals(Constants.DEVICE_AUTHENTICATION_TABLE_NAME, "DEVICE_AUTHENTICATION" );
 
  37         assertEquals(Constants.CONFIGFILES_TABLE_NAME, "CONFIGFILES" );
 
  38         assertEquals(Constants.DEVICE_INTERFACE_LOG_TABLE_NAME, "DEVICE_INTERFACE_LOG" );
 
  39         assertEquals(Constants.FILE_CONTENT_TABLE_FIELD_NAME, "FILE_CONTENT" );
 
  40         assertEquals(Constants.FILE_NAME_TABLE_FIELD_NAME, "FILE_NAME" );
 
  42         assertEquals(Constants.VM_NAMES[0], "fe1");
 
  43         assertEquals(Constants.VM_NAMES[1], "fe2");
 
  44         assertEquals(Constants.VM_NAMES[2], "be1");
 
  45         assertEquals(Constants.VM_NAMES[3], "be2");
 
  46         assertEquals(Constants.VM_NAMES[4], "be3");
 
  47         assertEquals(Constants.VM_NAMES[5], "be4");
 
  48         assertEquals(Constants.VM_NAMES[6], "be5");
 
  49         assertEquals(Constants.VM_NAMES[7], "smp1");
 
  50         assertEquals(Constants.VM_NAMES[8], "smp2");
 
  52         assertEquals(Constants.DG_ERROR_FIELD_NAME, "org.openecom.appc.dg.error");
 
  56     public void testValidatesThatClassConstantsIsNotInstantiable() throws Exception {
 
  57         Constructor<Constants> c = Constants.class.getDeclaredConstructor();
 
  58         c.setAccessible(true);