Renamed unit tests
This commit is contained in:
parent
e8979a4033
commit
d7c207145a
|
@ -17,7 +17,7 @@ import com.baeldung.spring.cloud.stream.rabbit.processor.MyProcessor;
|
||||||
@RunWith(SpringJUnit4ClassRunner.class)
|
@RunWith(SpringJUnit4ClassRunner.class)
|
||||||
@ContextConfiguration(classes = MultipleOutputsServiceApplication.class)
|
@ContextConfiguration(classes = MultipleOutputsServiceApplication.class)
|
||||||
@DirtiesContext
|
@DirtiesContext
|
||||||
public class MultipleOutputsServiceApplicationTests {
|
public class MultipleOutputsServiceApplicationUnitTest {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private MyProcessor pipe;
|
private MyProcessor pipe;
|
|
@ -17,7 +17,7 @@ import com.baeldung.spring.cloud.stream.rabbit.processor.MyProcessor;
|
||||||
@RunWith(SpringJUnit4ClassRunner.class)
|
@RunWith(SpringJUnit4ClassRunner.class)
|
||||||
@ContextConfiguration(classes = MultipleOutputsWithConditionsServiceApplication.class)
|
@ContextConfiguration(classes = MultipleOutputsWithConditionsServiceApplication.class)
|
||||||
@DirtiesContext
|
@DirtiesContext
|
||||||
public class MultipleOutputsWithConditionsServiceApplicationTests {
|
public class MultipleOutputsWithConditionsServiceUnitTest {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private MyProcessor pipe;
|
private MyProcessor pipe;
|
||||||
|
@ -28,7 +28,7 @@ public class MultipleOutputsWithConditionsServiceApplicationTests {
|
||||||
@Test
|
@Test
|
||||||
public void whenSendMessage_thenResponseIsInAOutput() {
|
public void whenSendMessage_thenResponseIsInAOutput() {
|
||||||
whenSendMessage(1);
|
whenSendMessage(1);
|
||||||
thenPayloadInChannelIs(pipe.anotherOutput(), 1);
|
thenPayloadInChannelIs(pipe.anOutput(), 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
|
@ -17,7 +17,7 @@ import com.baeldung.spring.cloud.stream.rabbit.model.LogMessage;
|
||||||
@RunWith(SpringJUnit4ClassRunner.class)
|
@RunWith(SpringJUnit4ClassRunner.class)
|
||||||
@ContextConfiguration(classes = MyLoggerServiceApplication.class)
|
@ContextConfiguration(classes = MyLoggerServiceApplication.class)
|
||||||
@DirtiesContext
|
@DirtiesContext
|
||||||
public class MyLoggerApplicationTests {
|
public class MyLoggerApplicationUnitTest {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private Processor pipe;
|
private Processor pipe;
|
Loading…
Reference in New Issue