update BAEL-1565 test method names (#3943)

This commit is contained in:
aietcn 2018-04-06 23:19:15 +08:00 committed by Grzegorz Piwowarek
parent 2f5d74ad37
commit ca53793bb0
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ public class BaeldungReaderMockDelegationTest {
EasyMockSupport easyMockSupport = new EasyMockSupport(); EasyMockSupport easyMockSupport = new EasyMockSupport();
@Test @Test
public void givenBaeldungReader_whenReadAndWrite_thenOperationSupported() { public void givenBaeldungReader_whenReadAndWriteSequencially_thenWorks() {
ArticleReader mockArticleReader = easyMockSupport.createMock(ArticleReader.class); ArticleReader mockArticleReader = easyMockSupport.createMock(ArticleReader.class);
IArticleWriter mockArticleWriter = easyMockSupport.createMock(IArticleWriter.class); IArticleWriter mockArticleWriter = easyMockSupport.createMock(IArticleWriter.class);
BaeldungReader baeldungReader = new BaeldungReader(mockArticleReader, mockArticleWriter); BaeldungReader baeldungReader = new BaeldungReader(mockArticleReader, mockArticleWriter);

View File

@ -17,7 +17,7 @@ public class BaeldungReaderMockSupportTest extends EasyMockSupport {
@Mock IArticleWriter mockArticleWriter; @Mock IArticleWriter mockArticleWriter;
@Test @Test
public void givenBaeldungReader_whenReadAndWrite_thenOperationSupported() { public void givenBaeldungReader_whenReadAndWriteSequencially_thenWorks() {
expect(mockArticleReader.next()) expect(mockArticleReader.next())
.andReturn(null) .andReturn(null)
.times(2) .times(2)