1 import {TestBed, getTestBed} from '@angular/core/testing';
3 HttpClientTestingModule,
4 } from '@angular/common/http/testing';
5 import {TypeNodeInformation} from "./typeNodeInformation.model";
7 describe('Available Models Tree Service', () => {
11 TestBed.configureTestingModule({
12 imports: [HttpClientTestingModule],
14 }).compileComponents();
16 injector = getTestBed();
20 test('TypeNodeInformation VNF', () => {
21 let type: TypeNodeInformation = new TypeNodeInformation(<any>{
26 expect(type.hierarchyName).toEqual('vnfs');
27 expect(type.existingMappingCounterName).toEqual('existingVNFCounterMap');
30 test('TypeNodeInformation VNF group', () => {
31 let type: TypeNodeInformation = new TypeNodeInformation(<any>{
36 expect(type.hierarchyName).toEqual('vnfGroups');
37 expect(type.existingMappingCounterName).toEqual('existingVnfGroupCounterMap');
40 test('TypeNodeInformation VL', () => {
41 let type: TypeNodeInformation = new TypeNodeInformation(<any>{
46 expect(type.hierarchyName).toEqual('networks');
47 expect(type.existingMappingCounterName).toEqual('existingNetworksCounterMap');
50 test('TypeNodeInformation Network', () => {
51 let type: TypeNodeInformation = new TypeNodeInformation(<any>{
56 expect(type.hierarchyName).toEqual('networks');
57 expect(type.existingMappingCounterName).toEqual('existingNetworksCounterMap');