Skip to content

Commit d0a885e

Browse files
Cover exchange.declare
1 parent a3ee0f4 commit d0a885e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/test/java/com/rabbitmq/client/test/functional/ExchangeDeclare.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,21 @@ public void testExchangeNoArgsEquivalence() throws IOException {
3636
verifyEquivalent(NAME, TYPE, false, false, null);
3737
}
3838

39+
public void testSingleLineFeedStrippedFromExchangeName() throws IOException {
40+
channel.exchangeDeclare("exchange_test\n", TYPE, false, false, null);
41+
verifyEquivalent(NAME, TYPE, false, false, null);
42+
}
43+
44+
public void testMultipleLineFeedsStrippedFromExchangeName() throws IOException {
45+
channel.exchangeDeclare("exchange\n_test\n", TYPE, false, false, null);
46+
verifyEquivalent(NAME, TYPE, false, false, null);
47+
}
48+
49+
public void testMultipleLineFeedAndCarriageReturnsStrippedFromExchangeName() throws IOException {
50+
channel.exchangeDeclare("e\nxc\rhange\n\r_test\n\r", TYPE, false, false, null);
51+
verifyEquivalent(NAME, TYPE, false, false, null);
52+
}
53+
3954
public void testExchangeNonsenseArgsEquivalent() throws IOException {
4055
channel.exchangeDeclare(NAME, TYPE, false, false, null);
4156
Map<String, Object> args = new HashMap<String, Object>();

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy