TODAY
TODAY 框架文档 5.0-Draft.2-SNAPSHOT
    • 概述
    • 开发您的第一个 Web 应用程序
    • 核心技术
      • 控制反转 IoC 容器
        • IoC 容器和 Bean 简介
        • 容器概述
        • Bean Overview
        • 依赖
          • Dependency Injection
          • Dependencies and Configuration in Detail
          • Using depends-on
          • Lazy-initialized Beans
          • Autowiring Collaborators
          • Method Injection
        • Bean Scopes
        • Customizing the Nature of a Bean
        • Bean 定义继承
        • Container Extension Points
        • 基于注解的容器配置
          • Using @Autowired
          • Fine-tuning Annotation-based Autowiring with @Primary or @Fallback
          • Fine-tuning Annotation-based Autowiring with Qualifiers
          • Using Generics as Autowiring Qualifiers
          • Using CustomAutowireConfigurer
          • Injection with @Resource
          • Using @Value
          • Using @PostConstruct and @PreDestroy
        • 类路径扫描和管理的组件
        • Using JSR 330 Standard Annotations
        • 基于 Java 的容器配置
          • Basic Concepts: @Bean and @Configuration
          • Instantiating the Infra Container by Using AnnotationConfigApplicationContext
          • Using the @Bean Annotation
          • Using the @Configuration annotation
          • Composing Java-based Configurations
        • Environment 接口
        • 注册 LoadTimeWeaver
        • ApplicationContext 的附加功能
        • BeanFactory API
      • 资源抽象(Resources)
      • 验证、数据绑定和类型转换
        • Validation by Using Infra Validator Interface
        • Data Binding
        • Resolving Codes to Error Messages
        • Infra Type Conversion
        • Infra Field Formatting
        • Configuring a Global Date and Time Format
        • Java Bean Validation
      • SpEL 表达式
        • Evaluation
        • Expressions in Bean Definitions
        • Language Reference
          • Literal Expressions
          • Properties, Arrays, Lists, Maps, and Indexers
          • Inline Lists
          • Inline Maps
          • Array Construction
          • Methods
          • Operators
          • Types
          • Constructors
          • Variables
          • Functions
          • Bean References
          • Ternary Operator (If-Then-Else)
          • The Elvis Operator
          • Safe Navigation Operator
          • Collection Selection
          • Collection Projection
          • Expression Templating
        • Classes Used in the Examples
      • 面向切面编程
        • AOP Concepts
        • Infra AOP Capabilities and Goals
        • AOP Proxies
        • @AspectJ support
          • Enabling @AspectJ Support
          • Declaring an Aspect
          • Declaring a Pointcut
          • Declaring Advice
          • Introductions
          • Aspect Instantiation Models
          • An AOP Example
        • Schema-based AOP Support
        • Choosing which AOP Declaration Style to Use
        • Mixing Aspect Types
        • Proxying Mechanisms
        • Programmatic Creation of @AspectJ Proxies
        • Using AspectJ with Infra Applications
        • Further Resources
      • AOP APIs
        • Pointcut API in Infra
        • Advice API in Infra
        • The Advisor API in Infra-
        • Using the ProxyFactoryBean to Create AOP Proxies
        • Concise Proxy Definitions
        • Creating AOP Proxies Programmatically with the ProxyFactory
        • Manipulating Advised Objects
        • Using the "auto-proxy" facility
        • Using TargetSource Implementations
        • Defining New Advice Types
      • Null-safety
      • 数据缓冲区和编解码器
      • Logging
      • Ahead of Time Optimizations
      • Appendix
        • XML Schemas
        • XML Schema Authoring
    • 测试
      • Introduction to Infra Testing
      • Unit Testing
      • Integration Testing
      • JDBC Testing Support
      • Infra TestContext Framework
        • Key Abstractions
        • Bootstrapping the TestContext Framework
        • TestExecutionListener Configuration
        • Application Events
        • Test Execution Events
        • Context Management
          • Context Configuration with XML resources
          • Context Configuration with Groovy Scripts
          • Context Configuration with Component Classes
          • Mixing XML, Groovy Scripts, and Component Classes
          • Configuration Configuration with Context Customizers
          • Context Configuration with Context Initializers
          • Context Configuration Inheritance
          • Context Configuration with Environment Profiles
          • Context Configuration with Test Property Sources
          • Context Configuration with Dynamic Property Sources
          • Loading a WebApplicationContext
          • Working with Web Mocks
          • Context Caching
          • Context Failure Threshold
          • Context Hierarchies
        • Dependency Injection of Test Fixtures
        • Testing Request- and Session-scoped Beans
        • Transaction Management
        • Executing SQL Scripts
        • Parallel Test Execution
        • TestContext Framework Support Classes
        • Ahead of Time Support for Tests
      • WebTestClient
      • MockMvc
        • Overview
        • Static Imports
        • Setup Choices
        • Setup Features
        • Performing Requests
        • Defining Expectations
        • Async Requests
        • Streaming Responses
        • Filter Registrations
        • MockMvc vs End-to-End Tests
        • Further Examples
        • HtmlUnit Integration
          • Why HtmlUnit Integration?
          • MockMvc and HtmlUnit
          • MockMvc and WebDriver
          • MockMvc and Geb
      • Testing Client Applications
      • Appendix
        • Annotations
          • Standard Annotation Support
          • Infra Testing Annotations
            • @BootstrapWith
            • @ContextConfiguration
            • @WebAppConfiguration
            • @ContextHierarchy
            • @ContextCustomizerFactories
            • @ActiveProfiles
            • @TestPropertySource
            • @DynamicPropertySource
            • @DirtiesContext
            • @TestExecutionListeners
            • @RecordApplicationEvents
            • @Commit
            • @Rollback
            • @BeforeTransaction
            • @AfterTransaction
            • @Sql
            • @SqlConfig
            • @SqlMergeMode
            • @SqlGroup
            • @DisabledInAotMode
            • Bean Overriding in Tests
          • Infra JUnit 4 Testing Annotations
          • Infra JUnit Jupiter Testing Annotations
          • Meta-Annotation Support for Testing
        • Further Resources
    • 数据访问
      • Transaction Management
        • Advantages of the TODAY Framework’s Transaction Support Model
        • Understanding the TODAY Framework Transaction Abstraction
        • Synchronizing Resources with Transactions
        • Declarative Transaction Management
          • Understanding the TODAY Framework’s Declarative Transaction Implementation
          • Example of Declarative Transaction Implementation
          • Rolling Back a Declarative Transaction
          • Configuring Different Transactional Semantics for Different Beans
          • <tx:advice/> Settings
          • Using @Transactional
          • Transaction Propagation
          • Advising Transactional Operations
          • Using @Transactional with AspectJ
        • Programmatic Transaction Management
        • Choosing Between Programmatic and Declarative Transaction Management
        • Transaction-bound Events
        • Application server-specific integration
        • Solutions to Common Problems
        • Further Resources
      • DAO 支持
      • Data Access with JDBC
        • Choosing an Approach for JDBC Database Access
        • Package Hierarchy
        • Using the JDBC Core Classes to Control Basic JDBC Processing and Error Handling
        • Controlling Database Connections
        • JDBC Batch Operations
        • Simplifying JDBC Operations with the SimpleJdbc Classes
        • Modeling JDBC Operations as Java Objects
        • Common Problems with Parameter and Data Value Handling
        • Embedded Database Support
        • Initializing a DataSource
      • Object Relational Mapping (ORM) Data Access
        • Introduction to ORM with Infra
        • General ORM Integration Considerations
        • Hibernate
        • JPA
      • Marshalling XML by Using Object-XML Mappers
      • Appendix
    • Web 框架
      • Web MVC
        • DispatcherHandler
          • Context Hierarchy
          • 特殊 Bean 类型
          • Web MVC 配置
          • Servlet Config
          • Processing
          • Path Matching
          • Interception
          • Exceptions
          • View Resolution
          • Locale
          • Themes
          • Multipart Resolver
          • Logging
        • 注解控制器
          • 声明
          • 请求映射
          • 注解处理器
            • Method Arguments
            • Return Values
            • 类型转换
            • Matrix Variables
            • @RequestParam
            • @RequestHeader
            • @CookieValue
            • @ModelAttribute
            • @SessionAttribute
            • @RequestAttribute
            • Redirect Attributes
            • Flash Attributes
            • Multipart
            • @RequestBody
            • HttpEntity
            • @ResponseBody
            • ResponseEntity
            • Jackson JSON
          • Model
          • @InitBinder
          • 验证
          • 异常处理
          • Controller Advice
        • Functional Endpoints
        • URI Links
        • 异步请求
        • CORS
        • 错误响应
        • HTTP 缓存
        • View 技术
          • FreeMarker
          • Groovy Markup
          • Script Views
          • RSS and Atom
          • PDF and Excel
          • Jackson
          • XML Marshalling
          • XSLT Views
        • MVC 配置
          • 启用 MVC 配置
          • MVC 配置 API
          • 类型转换
          • 验证
          • 拦截器
          • Body 类型 (Content Types)
          • 消息转换器
          • 视图控制器
          • 视图解析器
          • 静态资源
          • 路径匹配
          • Java 配置
        • HTTP/2
      • Web 会话
      • REST 客户端
      • 测试
      • WebSockets
        • WebSocket API
        • Fallback
    • 集成
      • REST Clients
      • JMX
        • Exporting Your Beans to JMX
        • Controlling the Management Interface of Your Beans
        • Controlling ObjectName Instances for Your Beans
        • Using JSR-160 Connectors
        • Accessing MBeans through Proxies
        • Notifications
        • Further Resources
      • Email
      • Task Execution and Scheduling
      • Cache Abstraction
        • Understanding the Cache Abstraction
        • Declarative Annotation-based Caching
        • JCache (JSR-107) Annotations
        • Declarative XML-based Caching
        • Configuring the Cache Storage
        • Plugging-in Different Back-end Caches
        • How can I Set the TTL/TTI/Eviction policy/XXX feature?
      • JVM Checkpoint Restore
      • CDS
      • Appendix
    • 语言支持
      • Apache Groovy
      • Dynamic Language Support
    • 附录
    • Wiki
    • Java APIs
编辑此页 GitHub Stack Overflow
  • TODAY 框架文档
  • 测试
  • Introduction to Infra Testing

Introduction to Infra Testing

Testing is an integral part of enterprise software development. This chapter focuses on the value added by the IoC principle to unit testing and on the benefits of the TODAY Framework’s support for integration testing. (A thorough treatment of testing in the enterprise is beyond the scope of this reference manual.)

测试 Unit Testing
  • TODAY 框架文档
    • 5.0-Draft.2-SNAPSHOTcurrent
  • 相关文档
  • 所有文档...

蜀ICP备17031147号-3

Copyright © TODAY & 2017 - All Rights Reserved.