@@ -126,7 +126,7 @@ public void handleMessageToClientWithSimpConnectAck() {
126
126
127
127
StompHeaderAccessor accessor = StompHeaderAccessor .create (StompCommand .CONNECT );
128
128
accessor .setHeartbeat (10000 , 10000 );
129
- accessor .setAcceptVersion ("1.0,1.1" );
129
+ accessor .setAcceptVersion ("1.0,1.1,1.2 " );
130
130
Message <?> connectMessage = MessageBuilder .createMessage (EMPTY_PAYLOAD , accessor .getMessageHeaders ());
131
131
132
132
SimpMessageHeaderAccessor ackAccessor = SimpMessageHeaderAccessor .create (SimpMessageType .CONNECT_ACK );
@@ -137,7 +137,7 @@ public void handleMessageToClientWithSimpConnectAck() {
137
137
138
138
assertEquals (1 , this .session .getSentMessages ().size ());
139
139
TextMessage actual = (TextMessage ) this .session .getSentMessages ().get (0 );
140
- assertEquals ("CONNECTED\n " + "version:1.1 \n " + "heart-beat:15000,15000\n " +
140
+ assertEquals ("CONNECTED\n " + "version:1.2 \n " + "heart-beat:15000,15000\n " +
141
141
"user-name:joe\n " + "\n " + "\u0000 " , actual .getPayload ());
142
142
}
143
143
@@ -146,7 +146,7 @@ public void handleMessageToClientWithSimpConnectAckDefaultHeartBeat() {
146
146
147
147
StompHeaderAccessor accessor = StompHeaderAccessor .create (StompCommand .CONNECT );
148
148
accessor .setHeartbeat (10000 , 10000 );
149
- accessor .setAcceptVersion ("1.0,1.1 " );
149
+ accessor .setAcceptVersion ("1.0" );
150
150
Message <?> connectMessage = MessageBuilder .createMessage (EMPTY_PAYLOAD , accessor .getMessageHeaders ());
151
151
152
152
SimpMessageHeaderAccessor ackAccessor = SimpMessageHeaderAccessor .create (SimpMessageType .CONNECT_ACK );
@@ -156,7 +156,7 @@ public void handleMessageToClientWithSimpConnectAckDefaultHeartBeat() {
156
156
157
157
assertEquals (1 , this .session .getSentMessages ().size ());
158
158
TextMessage actual = (TextMessage ) this .session .getSentMessages ().get (0 );
159
- assertEquals ("CONNECTED\n " + "version:1.1 \n " + "heart-beat:0,0\n " +
159
+ assertEquals ("CONNECTED\n " + "version:1.0 \n " + "heart-beat:0,0\n " +
160
160
"user-name:joe\n " + "\n " + "\u0000 " , actual .getPayload ());
161
161
}
162
162
0 commit comments