X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=E2Manager%2Fhandlers%2Frmrmsghandlers%2Fran_lost_connection_handler_test.go;h=ff431364fdf7698ae639c134e98241a431c26e12;hb=0313963fab35090fcdc7655182ad77c63497d5cb;hp=176d901ab0514897d413c00ba47173b8b546f99f;hpb=ffd085dd7f0654b84b163a7bfedd3fa89e7b8a71;p=ric-plt%2Fe2mgr.git diff --git a/E2Manager/handlers/rmrmsghandlers/ran_lost_connection_handler_test.go b/E2Manager/handlers/rmrmsghandlers/ran_lost_connection_handler_test.go index 176d901..ff43136 100644 --- a/E2Manager/handlers/rmrmsghandlers/ran_lost_connection_handler_test.go +++ b/E2Manager/handlers/rmrmsghandlers/ran_lost_connection_handler_test.go @@ -1,4 +1,3 @@ -//// //// Copyright 2019 AT&T Intellectual Property //// Copyright 2019 Nokia //// @@ -13,6 +12,10 @@ //// 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 @@ -30,8 +33,8 @@ func TestLostConnectionHandlerSuccess(t *testing.T) { 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) } @@ -41,7 +44,7 @@ func TestLostConnectionHandlerFailure(t *testing.T) { 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 +}