* ============LICENSE_START=======================================================
* ONAP PAP
* ================================================================================
- * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2019-2020 AT&T Intellectual Property. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertSame;
import static org.junit.Assert.assertTrue;
-import static org.mockito.Matchers.any;
+import static org.mockito.ArgumentMatchers.any;
import static org.mockito.Mockito.never;
import static org.mockito.Mockito.verify;
}
@Test
- public void isSameContent() {
+ public void testIsSameContent() {
PdpUpdate msg2 = new PdpUpdate(update);
msg2.setName("world");
assertTrue(data.isSameContent(msg2));
}
@Test
- public void isSameContent_BothGroupNamesNull() {
+ public void testIsSameContent_BothGroupNamesNull() {
PdpUpdate msg2 = new PdpUpdate(update);
msg2.setPdpGroup(null);
update.setPdpGroup(null);
}
@Test
- public void isSameContent_BothSubGroupNamesNull() {
+ public void testIsSameContent_BothSubGroupNamesNull() {
PdpUpdate msg2 = new PdpUpdate(update);
msg2.setPdpSubgroup(null);
update.setPdpSubgroup(null);
}
@Test
- public void isSameContent_DiffGroup() {
+ public void testIsSameContent_DiffGroup() {
PdpUpdate msg2 = new PdpUpdate(update);
msg2.setPdpGroup(null);
assertFalse(data.isSameContent(msg2));
}
@Test
- public void isSameContent_DiffSubGroup() {
+ public void testIsSameContent_DiffSubGroup() {
PdpUpdate msg2 = new PdpUpdate(update);
msg2.setPdpSubgroup(null);
assertFalse(data.isSameContent(msg2));
}
@Test
- public void isSameContent_DiffPolicies() {
+ public void testIsSameContent_DiffPolicies() {
PdpUpdate msg2 = new PdpUpdate(update);
ArrayList<ToscaPolicy> policies = new ArrayList<>(update.getPolicies());
}
@Test
- public void isSameContent_DiffPolicies_NotNull_Null() {
+ public void testIsSameContent_DiffPolicies_NotNull_Null() {
PdpUpdate msg2 = new PdpUpdate(update);
msg2.setPolicies(null);
}
@Test
- public void isSameContent_DiffPolicies_Null_NotNull() {
+ public void testIsSameContent_DiffPolicies_Null_NotNull() {
PdpUpdate msg2 = new PdpUpdate(update);
update.setPolicies(null);