/*******************************************************************************\r
* Copyright © 2017-2018 AT&T Intellectual Property.\r
+ * Modifications Copyright © 2018 IBM.\r
* \r
* Licensed under the Apache License, Version 2.0 (the "License");\r
* you may not use this file except in compliance with the License.\r
\r
package org.onap.ccsdk.apps.ms.vlantagapi.core.service;\r
\r
+import static org.junit.Assert.assertEquals;\r
import static org.mockito.ArgumentMatchers.any;\r
import java.util.ArrayList;\r
import java.util.List;\r
Mockito.doReturn(peResponses).when(policyEngineSpy).getConfigUsingPost(any());\r
}\r
\r
+ @Test\r
+ public void testAssignVlanTagForNullRequest() throws Exception\r
+ {\r
+ AssignVlanTagResponse response = service.assignVlanTag(null);\r
+ Integer expectedErrorCode=500;\r
+ assertEquals(expectedErrorCode, response.getErrorCode());\r
+ }\r
+ \r
+ @Test\r
+ public void testUnAssignVlanTagForNullRequest() throws Exception\r
+ {\r
+ UnassignVlanTagResponse response = service.unassignVlanTag(null);\r
+ Integer expectedErrorCode=500;\r
+ assertEquals(expectedErrorCode, response.getErrorCode());\r
+ }\r
+ \r
@Test(expected = Test.None.class /* no exception expected */)\r
public void test_assign_sucess_001() throws Exception {\r
\r