摘要:
环境 JDK 6 JUnit 4.13 Spring Tool Suite 4.6.2 Maven 3.6.3 main 方法运行测试 除了和 IDE 继承,右键运行之外,还可以通过 main 运行测试,并且得到运行的结果数据。 官网上将这种方式叫做基于控制台的 Runner(Console bas 阅读全文
摘要:
环境 JDK 6 JUnit 4.13 Spring Tool Suite 4.6.2 Maven 3.6.3 IDE 支持 在 IDE 中,比如 NetBeans, Eclipse and IntelliJ IDEA 都内置了图形化的 JUnit Runner 的支持,可以直接运行。 在当前版本, 阅读全文
摘要:
环境 JDK 6 JUnit 4.13 Spring Tool Suite 4.6.2 Maven 3.6.3 Test Fixture Test Fixture 是官方给出的一个概念,原文如下: A test fixture is a fixed state of a set of objects 阅读全文
摘要:
环境 JDK 6 JUnit 4.13 Spring Tool Suite 4.6.2 Maven 3.6.3 什么是 JUnit 以下是来自官网的一段话: What is JUnit? JUnit is a simple, open source framework to write and ru 阅读全文
摘要:
以下内容参考 stackoverflow 先说结论,通过 HttpServletResponse 得到的 PrintWriter 和 ServletOutputStream 不需要手动关闭。 回答 Normally you should not close the stream. The servl 阅读全文