@@ -380,7 +380,7 @@ var _ = Describe("Consumer stream test", func() {
380380 Expect (dc .Message ()).NotTo (BeNil ())
381381 Expect (string (dc .Message ().GetData ())).To (Equal (fmt .Sprintf ("Message_id:%d_label:%s" , i , label )))
382382
383- Expect (dc .message .ApplicationProperties ).To (HaveKeyWithValue (key , value ))
383+ Expect (dc .Message () .ApplicationProperties ).To (HaveKeyWithValue (key , value ))
384384 Expect (dc .Accept (context .Background ())).To (BeNil ())
385385 }
386386 Expect (consumer .Close (context .Background ())).To (BeNil ())
@@ -495,51 +495,51 @@ var _ = Describe("Consumer stream test", func() {
495495 // we test one by one because of the date time fields
496496 // It is not possible to compare the whole structure due of the time
497497 // It is not perfect but it is enough for the test
498- if dc .message .Properties .MessageID != nil {
499- Expect (dc .message .Properties .MessageID ).To (Equal (properties .MessageID ))
498+ if dc .Message () .Properties .MessageID != nil {
499+ Expect (dc .Message () .Properties .MessageID ).To (Equal (properties .MessageID ))
500500 }
501- if dc .message .Properties .Subject != nil {
502- Expect (dc .message .Properties .Subject ).To (Equal (properties .Subject ))
501+ if dc .Message () .Properties .Subject != nil {
502+ Expect (dc .Message () .Properties .Subject ).To (Equal (properties .Subject ))
503503 }
504- if dc .message .Properties .ReplyTo != nil {
505- Expect (dc .message .Properties .ReplyTo ).To (Equal (properties .ReplyTo ))
504+ if dc .Message () .Properties .ReplyTo != nil {
505+ Expect (dc .Message () .Properties .ReplyTo ).To (Equal (properties .ReplyTo ))
506506 }
507- if dc .message .Properties .ContentType != nil {
508- Expect (dc .message .Properties .ContentType ).To (Equal (properties .ContentType ))
507+ if dc .Message () .Properties .ContentType != nil {
508+ Expect (dc .Message () .Properties .ContentType ).To (Equal (properties .ContentType ))
509509 }
510- if dc .message .Properties .ContentEncoding != nil {
511- Expect (dc .message .Properties .ContentEncoding ).To (Equal (properties .ContentEncoding ))
510+ if dc .Message () .Properties .ContentEncoding != nil {
511+ Expect (dc .Message () .Properties .ContentEncoding ).To (Equal (properties .ContentEncoding ))
512512 }
513- if dc .message .Properties .GroupID != nil {
514- Expect (dc .message .Properties .GroupID ).To (Equal (properties .GroupID ))
513+ if dc .Message () .Properties .GroupID != nil {
514+ Expect (dc .Message () .Properties .GroupID ).To (Equal (properties .GroupID ))
515515 }
516- if dc .message .Properties .ReplyToGroupID != nil {
517- Expect (dc .message .Properties .ReplyToGroupID ).To (Equal (properties .ReplyToGroupID ))
516+ if dc .Message () .Properties .ReplyToGroupID != nil {
517+ Expect (dc .Message () .Properties .ReplyToGroupID ).To (Equal (properties .ReplyToGroupID ))
518518 }
519- if dc .message .Properties .GroupSequence != nil {
520- Expect (dc .message .Properties .GroupSequence ).To (Equal (properties .GroupSequence ))
519+ if dc .Message () .Properties .GroupSequence != nil {
520+ Expect (dc .Message () .Properties .GroupSequence ).To (Equal (properties .GroupSequence ))
521521 }
522522
523- if dc .message .Properties .ReplyToGroupID != nil {
524- Expect (dc .message .Properties .ReplyToGroupID ).To (Equal (properties .ReplyToGroupID ))
523+ if dc .Message () .Properties .ReplyToGroupID != nil {
524+ Expect (dc .Message () .Properties .ReplyToGroupID ).To (Equal (properties .ReplyToGroupID ))
525525 }
526526
527527 // here we compare only the year, month and day
528528 // it is not perfect but it is enough for the test
529- if dc .message .Properties .CreationTime != nil {
530- Expect (dc .message .Properties .CreationTime .Year ()).To (Equal (properties .CreationTime .Year ()))
531- Expect (dc .message .Properties .CreationTime .Month ()).To (Equal (properties .CreationTime .Month ()))
532- Expect (dc .message .Properties .CreationTime .Day ()).To (Equal (properties .CreationTime .Day ()))
529+ if dc .Message () .Properties .CreationTime != nil {
530+ Expect (dc .Message () .Properties .CreationTime .Year ()).To (Equal (properties .CreationTime .Year ()))
531+ Expect (dc .Message () .Properties .CreationTime .Month ()).To (Equal (properties .CreationTime .Month ()))
532+ Expect (dc .Message () .Properties .CreationTime .Day ()).To (Equal (properties .CreationTime .Day ()))
533533 }
534534
535- if dc .message .Properties .AbsoluteExpiryTime != nil {
536- Expect (dc .message .Properties .AbsoluteExpiryTime .Year ()).To (Equal (properties .AbsoluteExpiryTime .Year ()))
537- Expect (dc .message .Properties .AbsoluteExpiryTime .Month ()).To (Equal (properties .AbsoluteExpiryTime .Month ()))
538- Expect (dc .message .Properties .AbsoluteExpiryTime .Day ()).To (Equal (properties .AbsoluteExpiryTime .Day ()))
535+ if dc .Message () .Properties .AbsoluteExpiryTime != nil {
536+ Expect (dc .Message () .Properties .AbsoluteExpiryTime .Year ()).To (Equal (properties .AbsoluteExpiryTime .Year ()))
537+ Expect (dc .Message () .Properties .AbsoluteExpiryTime .Month ()).To (Equal (properties .AbsoluteExpiryTime .Month ()))
538+ Expect (dc .Message () .Properties .AbsoluteExpiryTime .Day ()).To (Equal (properties .AbsoluteExpiryTime .Day ()))
539539 }
540540
541- if dc .message .Properties .CorrelationID != nil {
542- Expect (dc .message .Properties .CorrelationID ).To (Equal (properties .CorrelationID ))
541+ if dc .Message () .Properties .CorrelationID != nil {
542+ Expect (dc .Message () .Properties .CorrelationID ).To (Equal (properties .CorrelationID ))
543543 }
544544
545545 Expect (dc .Accept (context .Background ())).To (BeNil ())
0 commit comments