-////
//// Copyright 2019 AT&T Intellectual Property
//// Copyright 2019 Nokia
////
//// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//// See the License for the specific language governing permissions and
//// limitations under the License.
-////
+
+// This source code is part of the near-RT RIC (RAN Intelligent Controller)
+// platform project (RICP).
+
package rmrmsghandlers
import (
notificationRequest := models.NotificationRequest{RanName: ranName}
ranReconnectionManagerMock := &mocks.RanReconnectionManagerMock{}
ranReconnectionManagerMock.On("ReconnectRan", ranName).Return(nil)
- handler := NewRanLostConnectionHandler(ranReconnectionManagerMock)
- handler.Handle(logger, ¬ificationRequest, nil)
+ handler := NewRanLostConnectionHandler(logger, ranReconnectionManagerMock)
+ handler.Handle(¬ificationRequest)
ranReconnectionManagerMock.AssertCalled(t, "ReconnectRan", ranName)
}
notificationRequest := models.NotificationRequest{RanName: ranName}
ranReconnectionManagerMock := &mocks.RanReconnectionManagerMock{}
ranReconnectionManagerMock.On("ReconnectRan", ranName).Return(errors.New("error"))
- handler := NewRanLostConnectionHandler(ranReconnectionManagerMock)
- handler.Handle(logger, ¬ificationRequest, nil)
+ handler := NewRanLostConnectionHandler(logger, ranReconnectionManagerMock)
+ handler.Handle(¬ificationRequest)
ranReconnectionManagerMock.AssertCalled(t, "ReconnectRan", ranName)
-}
\ No newline at end of file
+}