Skip to content

Commit 2dfd69b

Browse files
committed
Stop using deprecated junit.framework.Assert class
1 parent 8b35c3f commit 2dfd69b

2 files changed

Lines changed: 8 additions & 14 deletions

File tree

‎spring-messaging/src/test/java/org/springframework/messaging/core/GenericMessagingTemplateTests.java‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2013 the original author or authors.
2+
* Copyright 2002-2014 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -32,10 +32,7 @@
3232
import org.springframework.messaging.support.GenericMessage;
3333
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
3434

35-
import static junit.framework.Assert.assertNull;
36-
import static org.junit.Assert.assertEquals;
37-
import static org.junit.Assert.assertTrue;
38-
import static org.junit.Assert.fail;
35+
import static org.junit.Assert.*;
3936

4037
/**
4138
* Unit tests for {@link GenericMessagingTemplate}.

‎spring-messaging/src/test/java/org/springframework/messaging/core/MessageSendingTemplateTests.java‎

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2013 the original author or authors.
2+
* Copyright 2002-2014 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -16,17 +16,16 @@
1616

1717
package org.springframework.messaging.core;
1818

19+
import java.util.Collections;
20+
import java.util.Map;
21+
1922
import org.junit.Before;
2023
import org.junit.Test;
24+
2125
import org.springframework.messaging.Message;
2226
import org.springframework.messaging.support.GenericMessage;
2327

24-
import java.util.Collections;
25-
import java.util.Map;
26-
27-
import static junit.framework.Assert.assertNotNull;
28-
import static org.junit.Assert.assertEquals;
29-
import static org.junit.Assert.assertSame;
28+
import static org.junit.Assert.*;
3029

3130
/**
3231
* Unit tests for {@link AbstractMessageSendingTemplate}.
@@ -49,7 +48,6 @@ public void setup() {
4948
this.headers = Collections.<String, Object>singletonMap("key", "value");
5049
}
5150

52-
5351
@Test
5452
public void send() {
5553
Message<?> message = new GenericMessage<Object>("payload");
@@ -119,7 +117,6 @@ public void convertAndSendPayloadAndHeadersToDestination() {
119117
assertEquals("payload", this.template.message.getPayload());
120118
}
121119

122-
123120
@Test
124121
public void convertAndSendPayloadWithPostProcessor() {
125122
this.template.setDefaultDestination("home");

0 commit comments

Comments
 (0)