摘要: package lesson16; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.InOrder; import org.mockito.runners.MockitoJUnitRunner; i 阅读全文
posted @ 2020-11-23 17:25 氯雷他定 阅读(376) 评论(0) 推荐(0) 编辑
摘要: package lesson15; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; import org.mockito.runners.MockitoJUnitRunner; impo 阅读全文
posted @ 2020-11-23 17:24 氯雷他定 阅读(223) 评论(0) 推荐(0) 编辑
摘要: @InjectMocks修饰的对象,会创建一个真实对象,会调用真实方法(若方法中再调用对象中的其他方法时,也是调用真实方法) package lesson13_14; import org.junit.Test; import org.junit.runner.RunWith; import org 阅读全文
posted @ 2020-11-23 17:22 氯雷他定 阅读(198) 评论(0) 推荐(0) 编辑
摘要: package lesson12; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; import org.mockito.runners.MockitoJUnitRunner; impo 阅读全文
posted @ 2020-11-23 16:46 氯雷他定 阅读(321) 评论(0) 推荐(0) 编辑
摘要: package lesson11; import org.junit.After; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; import org.mockito.runners. 阅读全文
posted @ 2020-11-23 16:37 氯雷他定 阅读(477) 评论(0) 推荐(0) 编辑
摘要: package lesson10; import org.junit.Test; import static org.hamcrest.CoreMatchers.both; import static org.junit.Assert.assertThat; public class SimpleT 阅读全文
posted @ 2020-11-23 16:31 氯雷他定 阅读(176) 评论(0) 推荐(0) 编辑
摘要: package lesson9; import org.junit.Test; import java.util.stream.Stream; import static org.hamcrest.CoreMatchers.*; import static org.junit.Assert.asse 阅读全文
posted @ 2020-11-23 16:29 氯雷他定 阅读(318) 评论(0) 推荐(0) 编辑
摘要: package lesson8; import org.junit.After; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; imp 阅读全文
posted @ 2020-11-23 16:23 氯雷他定 阅读(256) 评论(0) 推荐(0) 编辑
摘要: package lesson7; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mockito; import org.mockito.runne 阅读全文
posted @ 2020-11-23 16:17 氯雷他定 阅读(221) 评论(0) 推荐(0) 编辑
摘要: package lesson6; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.runners.MockitoJUnitRunner; import java.util.ArrayList; im 阅读全文
posted @ 2020-11-23 16:09 氯雷他定 阅读(80) 评论(0) 推荐(0) 编辑
摘要: package lesson4_5; import org.junit.After; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; i 阅读全文
posted @ 2020-11-23 16:06 氯雷他定 阅读(208) 评论(0) 推荐(0) 编辑
摘要: package lesson3; import common.Account; import common.AccountDao; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mockito; 阅读全文
posted @ 2020-11-23 15:58 氯雷他定 阅读(411) 评论(0) 推荐(0) 编辑