Copy latest code to master
[ric-plt/resource-status-manager.git] / RSM / mocks / rsm_writer_mock.go
similarity index 71%
rename from RSM/mocks/unpacker_mock.go
rename to RSM/mocks/rsm_writer_mock.go
index 717a18d..aec981c 100644 (file)
@@ -2,7 +2,7 @@
 // Copyright 2019 AT&T Intellectual Property
 // Copyright 2019 Nokia
 //
-// Licensed under the Apache License, Version 2.0 (the "License");
+// Licensed under the Apache License, Version 2.0 (the "License")
 // you may not use this file except in compliance with the License.
 // You may obtain a copy of the License at
 //
 //  This source code is part of the near-RT RIC (RAN Intelligent Controller)
 //  platform project (RICP).
 
-
 package mocks
 
 import (
        "github.com/stretchr/testify/mock"
+       "rsm/models"
 )
 
-type Asn1PduUnpackerMock struct {
+type RsmWriterMock struct {
        mock.Mock
 }
 
-func (m *Asn1PduUnpackerMock)UnpackX2apPduAsString(packedBufferSize int, packedBuf []byte, maxMessageBufferSize int) (string, error){
-       args := m.Called(packedBufferSize, packedBuf, maxMessageBufferSize)
-       return args.Get(0).(string), args.Error(1)
+func (m *RsmWriterMock) SaveRsmRanInfo(rsmRanInfo *models.RsmRanInfo) error {
+       args := m.Called(rsmRanInfo)
+       return args.Error(0)
 }
 
-
+func (m *RsmWriterMock) SaveRsmGeneralConfiguration(cfg *models.RsmGeneralConfiguration) error {
+       args := m.Called(cfg)
+       return args.Error(0)
+}