摘要:
package lesson16; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.InOrder; import org.mockito.runners.MockitoJUnitRunner; i 阅读全文
摘要:
package lesson15; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; import org.mockito.runners.MockitoJUnitRunner; impo 阅读全文
摘要:
@InjectMocks修饰的对象,会创建一个真实对象,会调用真实方法(若方法中再调用对象中的其他方法时,也是调用真实方法) package lesson13_14; import org.junit.Test; import org.junit.runner.RunWith; import org 阅读全文
摘要:
package lesson12; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; import org.mockito.runners.MockitoJUnitRunner; impo 阅读全文
摘要:
package lesson11; import org.junit.After; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; import org.mockito.runners. 阅读全文
摘要:
package lesson10; import org.junit.Test; import static org.hamcrest.CoreMatchers.both; import static org.junit.Assert.assertThat; public class SimpleT 阅读全文
摘要:
package lesson9; import org.junit.Test; import java.util.stream.Stream; import static org.hamcrest.CoreMatchers.*; import static org.junit.Assert.asse 阅读全文
摘要:
package lesson8; import org.junit.After; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; imp 阅读全文
摘要:
package lesson7; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mockito; import org.mockito.runne 阅读全文
摘要:
package lesson6; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.runners.MockitoJUnitRunner; import java.util.ArrayList; im 阅读全文
摘要:
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 阅读全文
摘要:
package lesson3; import common.Account; import common.AccountDao; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mockito; 阅读全文