47 lines
1.9 KiB
JavaScript
47 lines
1.9 KiB
JavaScript
/**
|
|
* Created by mkumar1 on 11-05-2017.
|
|
*/
|
|
|
|
describe('Testing Problem VO', function () {
|
|
|
|
var problemVo;
|
|
|
|
it(' should create object and test properties ', function () {
|
|
|
|
problemVo = new ProblemVO();
|
|
|
|
expect(problemVo.type).toEqual(EntityVO.TYPE_PROBLEM);
|
|
expect(problemVo.impact).toEqual('');
|
|
expect(problemVo.urgency).toEqual('');
|
|
expect(problemVo.crossLaunchURL).toEqual('');
|
|
expect(problemVo.icon).toEqual('PBI');
|
|
expect(problemVo.label).toEqual('Problem');
|
|
expect(problemVo.investigationDriver).toEqual('');
|
|
expect(problemVo.rootCause).toEqual('');
|
|
expect(problemVo.workaround).toEqual('');
|
|
expect(problemVo.resolution).toEqual('');
|
|
expect(problemVo.location).toEqual(null);
|
|
expect(problemVo.impactedAreas).toEqual(null);
|
|
expect(problemVo.impactedService).toEqual(null);
|
|
expect(problemVo.causalCI).toEqual(null);
|
|
expect(problemVo.targetDate).toEqual(null);
|
|
expect(problemVo.coordinator).toEqual(null);
|
|
expect(problemVo.coordinatorGroup).toEqual(null);
|
|
expect(problemVo.brokerVendorName).toEqual('');
|
|
|
|
});
|
|
|
|
it(' should test the inheritance ', function () {
|
|
expect(problemVo instanceof TicketVO).toBeTruthy();
|
|
});
|
|
|
|
it(' should verify all the properties ', function () {
|
|
|
|
var returnVal = problemVo.getProps();
|
|
expect(returnVal).toEqual(['id', 'createDate', 'displayId', 'modifiedDate', 'summary', 'priority', 'desc', 'numAttachments', 'status', 'assignee', 'supportGroup', 'serviceTargets', 'customer',
|
|
'contact', 'categorizations', 'customFields', 'dynamicFields', 'following', 'accessMappings', 'company', 'locationCompany', 'ownerGroup', 'completedDate', 'type', 'impact', 'urgency',
|
|
'crossLaunchURL', 'investigationDriver', 'location', 'rootCause', 'workaround', 'resolution', 'impactedAreas', 'impactedService', 'causalCI', 'targetDate', 'coordinator',
|
|
'coordinatorGroup', 'brokerVendorName']);
|
|
});
|
|
|
|
}); |