@@ -75,9 +75,11 @@ func (s *UCEVCCSuite) Test_evConfigurationDataUpdate() {
75
75
Entity : s .mockRemoteEntity ,
76
76
}
77
77
s .sut .evConfigurationDataUpdate (payload )
78
+ assert .False (s .T (), s .eventCBInvoked )
78
79
79
80
payload .Entity = s .evEntity
80
81
s .sut .evConfigurationDataUpdate (payload )
82
+ assert .False (s .T (), s .eventCBInvoked )
81
83
82
84
descData := & model.DeviceConfigurationKeyValueDescriptionListDataType {
83
85
DeviceConfigurationKeyValueDescriptionData : []model.DeviceConfigurationKeyValueDescriptionDataType {
@@ -97,6 +99,7 @@ func (s *UCEVCCSuite) Test_evConfigurationDataUpdate() {
97
99
assert .Nil (s .T (), fErr )
98
100
99
101
s .sut .evConfigurationDataUpdate (payload )
102
+ assert .False (s .T (), s .eventCBInvoked )
100
103
101
104
data := & model.DeviceConfigurationKeyValueListDataType {
102
105
DeviceConfigurationKeyValueData : []model.DeviceConfigurationKeyValueDataType {
@@ -119,6 +122,7 @@ func (s *UCEVCCSuite) Test_evConfigurationDataUpdate() {
119
122
assert .Nil (s .T (), fErr )
120
123
121
124
s .sut .evConfigurationDataUpdate (payload )
125
+ assert .True (s .T (), s .eventCBInvoked )
122
126
}
123
127
124
128
func (s * UCEVCCSuite ) Test_evOperatingStateDataUpdate () {
@@ -128,9 +132,11 @@ func (s *UCEVCCSuite) Test_evOperatingStateDataUpdate() {
128
132
Entity : s .mockRemoteEntity ,
129
133
}
130
134
s .sut .evOperatingStateDataUpdate (payload )
135
+ assert .False (s .T (), s .eventCBInvoked )
131
136
132
137
payload .Entity = s .evEntity
133
138
s .sut .evOperatingStateDataUpdate (payload )
139
+ assert .False (s .T (), s .eventCBInvoked )
134
140
135
141
data := & model.DeviceDiagnosisStateDataType {
136
142
OperatingState : eebusutil .Ptr (model .DeviceDiagnosisOperatingStateTypeNormalOperation ),
@@ -141,6 +147,7 @@ func (s *UCEVCCSuite) Test_evOperatingStateDataUpdate() {
141
147
assert .Nil (s .T (), fErr )
142
148
143
149
s .sut .evOperatingStateDataUpdate (payload )
150
+ assert .True (s .T (), s .eventCBInvoked )
144
151
}
145
152
146
153
func (s * UCEVCCSuite ) Test_evIdentificationDataUpdate () {
@@ -150,9 +157,11 @@ func (s *UCEVCCSuite) Test_evIdentificationDataUpdate() {
150
157
Entity : s .mockRemoteEntity ,
151
158
}
152
159
s .sut .evIdentificationDataUpdate (payload )
160
+ assert .False (s .T (), s .eventCBInvoked )
153
161
154
162
payload .Entity = s .evEntity
155
163
s .sut .evIdentificationDataUpdate (payload )
164
+ assert .False (s .T (), s .eventCBInvoked )
156
165
157
166
data := & model.IdentificationListDataType {
158
167
IdentificationData : []model.IdentificationDataType {
@@ -173,6 +182,7 @@ func (s *UCEVCCSuite) Test_evIdentificationDataUpdate() {
173
182
assert .Nil (s .T (), fErr )
174
183
175
184
s .sut .evIdentificationDataUpdate (payload )
185
+ assert .True (s .T (), s .eventCBInvoked )
176
186
}
177
187
178
188
func (s * UCEVCCSuite ) Test_evManufacturerDataUpdate () {
@@ -182,9 +192,11 @@ func (s *UCEVCCSuite) Test_evManufacturerDataUpdate() {
182
192
Entity : s .mockRemoteEntity ,
183
193
}
184
194
s .sut .evManufacturerDataUpdate (payload )
195
+ assert .False (s .T (), s .eventCBInvoked )
185
196
186
197
payload .Entity = s .evEntity
187
198
s .sut .evManufacturerDataUpdate (payload )
199
+ assert .False (s .T (), s .eventCBInvoked )
188
200
189
201
data := & model.DeviceClassificationManufacturerDataType {
190
202
BrandName : eebusutil .Ptr (model .DeviceClassificationStringType ("test" )),
@@ -195,6 +207,7 @@ func (s *UCEVCCSuite) Test_evManufacturerDataUpdate() {
195
207
assert .Nil (s .T (), fErr )
196
208
197
209
s .sut .evManufacturerDataUpdate (payload )
210
+ assert .True (s .T (), s .eventCBInvoked )
198
211
}
199
212
200
213
func (s * UCEVCCSuite ) Test_evElectricalPermittedValuesUpdate () {
@@ -204,9 +217,11 @@ func (s *UCEVCCSuite) Test_evElectricalPermittedValuesUpdate() {
204
217
Entity : s .mockRemoteEntity ,
205
218
}
206
219
s .sut .evElectricalPermittedValuesUpdate (payload )
220
+ assert .False (s .T (), s .eventCBInvoked )
207
221
208
222
payload .Entity = s .evEntity
209
223
s .sut .evElectricalPermittedValuesUpdate (payload )
224
+ assert .False (s .T (), s .eventCBInvoked )
210
225
211
226
paramData := & model.ElectricalConnectionParameterDescriptionListDataType {
212
227
ElectricalConnectionParameterDescriptionData : []model.ElectricalConnectionParameterDescriptionDataType {
@@ -223,6 +238,7 @@ func (s *UCEVCCSuite) Test_evElectricalPermittedValuesUpdate() {
223
238
assert .Nil (s .T (), fErr )
224
239
225
240
s .sut .evElectricalPermittedValuesUpdate (payload )
241
+ assert .False (s .T (), s .eventCBInvoked )
226
242
227
243
permData := & model.ElectricalConnectionPermittedValueSetListDataType {
228
244
ElectricalConnectionPermittedValueSetData : []model.ElectricalConnectionPermittedValueSetDataType {
@@ -237,4 +253,5 @@ func (s *UCEVCCSuite) Test_evElectricalPermittedValuesUpdate() {
237
253
assert .Nil (s .T (), fErr )
238
254
239
255
s .sut .evElectricalPermittedValuesUpdate (payload )
256
+ assert .True (s .T (), s .eventCBInvoked )
240
257
}
0 commit comments