Consistent use of StringUtils.toStringArray
(cherry picked from commit 6d11b40)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2015 the original author or authors.
|
||||
* Copyright 2002-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -22,6 +22,7 @@ import org.springframework.messaging.MessageChannel;
|
||||
import org.springframework.messaging.StubMessageChannel;
|
||||
import org.springframework.messaging.SubscribableChannel;
|
||||
import org.springframework.messaging.simp.stomp.StompBrokerRelayMessageHandler;
|
||||
import org.springframework.util.StringUtils;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
@@ -33,7 +34,6 @@ import static org.junit.Assert.*;
|
||||
*/
|
||||
public class StompBrokerRelayRegistrationTests {
|
||||
|
||||
|
||||
@Test
|
||||
public void test() {
|
||||
|
||||
@@ -52,7 +52,7 @@ public class StompBrokerRelayRegistrationTests {
|
||||
|
||||
StompBrokerRelayMessageHandler handler = registration.getMessageHandler(new StubMessageChannel());
|
||||
|
||||
assertArrayEquals(prefixes, handler.getDestinationPrefixes().toArray(new String[2]));
|
||||
assertArrayEquals(prefixes, StringUtils.toStringArray(handler.getDestinationPrefixes()));
|
||||
assertEquals("clientlogin", handler.getClientLogin());
|
||||
assertEquals("clientpasscode", handler.getClientPasscode());
|
||||
assertEquals("syslogin", handler.getSystemLogin());
|
||||
|
||||
Reference in New Issue
Block a user