blob: 5d61180156b2b6d7b6d37298656d84567c9c385b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
package org.onap.sdnc.northbound;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.runners.MockitoJUnitRunner;
import org.opendaylight.yang.gen.v1.org.onap.sdnc.northbound.generic.resource.rev170824.GenericConfigurationNotificationInput;
import org.opendaylight.yang.gen.v1.org.onap.sdnc.northbound.generic.resource.rev170824.GenericConfigurationNotificationOutput;
import org.opendaylight.yangtools.yang.common.RpcResult;
import org.opendaylight.yang.gen.v1.org.onap.sdnc.northbound.generic.resource.rev170824.service.information.ServiceInformationBuilder;
import static org.junit.Assert.assertNull;
import static org.onap.sdnc.northbound.util.MDSALUtil.*;
@RunWith(MockitoJUnitRunner.class)
public class GenericConfigurationNotificationRPCTest extends GenericResourceApiProviderTest {
private static final String SVC_OPERATION = "generic-configuration-notification";
@Before
public void setUp() throws Exception {
super.setUp();
svcClient.setScvOperation(SVC_OPERATION);
}
@Test
public void should_complete_with_success_when_no_errors() throws Exception {
GenericConfigurationNotificationInput input = build(GenericConfigurationNotificationInput()
.setServiceInformation(new ServiceInformationBuilder().setServiceInstanceId("serviceInstanceId").build()));
GenericConfigurationNotificationOutput output =
exec(genericResourceApiProvider::genericConfigurationNotification, input, RpcResult::getResult);
assertNull(output);
}
}
|