精华内容
参与话题
问答
  • Testing

    2019-06-06 13:28:36
    Testing The adoption of the test-driven-development (TDD) approach to software development is certainly advocated by the Spring team, and so coverage of Spring’s support for integration testing is ...

    原文地址:http://www.xueyuewang.cn/look_book_detail?book_id=73

    Testing

    Spring 团队肯定提倡采用测试驱动开发(TDD)方法进行软件开发,因此涵盖了 Spring 对集成测试的支持(以及单元测试的最佳实践)。Spring 团队发现正确使用 IoC 肯定会使单元和集成测试更容易(因为类的 setter 方法和适当的构造函数的存在使得它们更容易在测试中连接在一起,而无需设置服务定位器注册表 等等……)专门用于测试的章节也希望能让你相信这一点。

    1. Spring测试介绍

    测试是企业软件开发不可或缺的一部分。本章重点介绍 IoC 原理对单元测试的增值以及 Spring Framework 对集成测试支持的好处。(对企业中的测试进行全面处理超出了本参考手册的范围。)

    2. 单元测试

    与传统的 Java EE 开发相比,依赖注入应该使您的代码对容器的依赖性降低。构成应用程序的 POJO 应该可以在 JUnit 或 TestNG 测试中测试,对象只需使用 new 运算符实例化,不需要 Spring 或任何其他容器。你可以使用模拟对象(与其他有价值的测试技术结合使用)来单独测试代码。如果您遵循 Spring 的体系结构建议,那么代码库的干净分层和组件化将有助于更轻松地进行单元测试。例如,您可以通过存根或模拟 DAO 或 Repository 接口来测试服务层对象,而无需在运行单元测试时访问持久数据。
    真正的单元测试通常运行得非常快,因为没有要设置的运行时基础结构。强调真正的单元测试作为开发方法的一部分将提高您的工作效率。您可能不需要测试章节的这一部分来帮助您为基于 IoC 的应用程序编写有效的单元测试。但是,对于某些单元测试场景,Spring Framework 提供了以下模拟对象和测试支持类。

    3.3. JDBC 测试支持

    org.springframework.test.jdbc 包中包含 JdbcTestUtils,它是 JDBC 相关实用程序函数的集合,旨在简化标准数据库测试方案。具体来说,JdbcTestUtils 提供以下静态实用程序方法。1

    展开全文
  • testing

    2008-01-18 09:46:00
    this is my first blog just for testing bug of csdn 
    this is my first blog just for testing bug of csdn 
    展开全文
  • testing

    2007-12-03 16:21:22
    hello, This is a testing for my blog :)
    hello, This is a testing for my blog :)
    展开全文
  • Software Testing

    热门讨论 2007-04-22 15:57:03
    Software Testing By Ron Patton ............................................... Publisher: Sams Publishing Pub Date: July 26, 2005 ISBN: 0-672-32798-8 Pages: 408 ...
  • testing java microservices

    2018-11-30 08:51:19
    Testing Java Microservices teaches you to implement unit and integration tests for microservice systems running on the JVM. You'll work with a microservice environment built using Java EE, WildFly ...
  • Fundamental testing methodologies applied to the popular Python languageTesting Python; Applying Unit Testing, TDD, BDD and Acceptance Testing is the most comprehensive book available on testing for ...
  • Kali Linux is a Linux-based penetration testing platform that provides a broad array of testing tools, many of which can be used to execute web penetration testing. Kali Linux Web Penetration ...
  • The answer is: By seamlessly combining development and testing. On such teams, the developers write testable code that enables them to verify it using various types of automated tests. This approach ...
  • Extensively class-tested, this textbook takes an innovative approach to software testing: it defines testing as the process of applying a few well-defined, general-purpose test criteria to a structure...
  • Create testing documentation

    2020-11-28 15:36:57
    s wiki page: comments and patches requested to extend this to describe the range of testing we do to WiredTiger, included automated / continuous integration testing, regression testing, performance ...
  • This updated and reorganized fourth edition of Software Testing: A Craftsman's Approach applies the strong mathematics content of previous editions to a coherent treatment of Model-Based Testing for ...
  • Penetration Testing

    2018-04-30 09:49:51
    Penetration testing A Hands-On Introduction to Hacking
  • This book is intended for software quality assurance/testing professionals, software project managers, or software developers with prior experience in using Selenium and Java to test web-based ...
  • testing.M在golang中恢复

    2015-04-15 14:08:46
    <pre><code>func TestSomeTest(t *testing.T) { defer func() { r := recover() fmt.Println("recovery") fmt.Println(r) }() panic("panic here") } </code></pre> <p>But this does not: <pre><code>func ...
  • Beautiful Testing

    2014-09-13 01:15:23
    Beautiful Testing
  • Designing with Data: Improving the User Experience with A/B Testing by Rochelle King English | 29 Mar. 2017 | ASIN: B06XY9TTN8 | 370 Pages | AZW3 | 4.61 MB On the surface, design practices and data ...

空空如也

1 2 3 4 5 ... 20
收藏数 93,277
精华内容 37,310
关键字:

testing