bookmarks  3

  •  

    This article demonstrates a brand new open source library for unit testing, called Unitils. Unitils helps you in writing simple and maintainable unit tests with JUnit or TestNG . It glues together some widely used test libraries like DbUnit and EasyMock and offers integration with Spring and Hibernate . Unitils encourages applying good practices and unit testing guidelines. The ideas behind the code are based on the authors' concrete experience on enterprise projects. Unitils offers following features * Equality assertion through reflection, with options like ignoring Java default/null values and ignoring order of collections * Support for database testing involving test data management with DbUnit, automatic maintenance of unit test databases and automatic constraints disabling * Hibernate integration features such as session management and testing the mapping with the database * Integration with Spring, involving ApplicationContext management and injection of spring managed beans * Integration with EasyMock and injection of mocks into other objects
    16 years ago by @gresch
    (0)
     
     
  •  

    FEST-Assert is a Java library that provides a fluent interface for writing assertions. Its main goal is to improve test code readability and make maintenance of tests easier. FEST-Assert requires Java SE 5.0 or later and can be used with either JUnit or TestNG.
    17 years ago by @gresch
    (0)
     
     
  •  

    Unitils is an open source library aimed at making unit testing easy and maintainable. Unitils builds further on existing libraries like DBUnit and EasyMock and integrates with JUnit and TestNG. Unitils provides general asserion utilities, support for database testing, support for testing with mock objects and offers integration with Spring and Hibernate. It has been designed to offer these services to unit tests in a very configurable and loosely coupled way. As a result, services can be added and extended very easily. Currently Unitils offers following features: * General testing utilities o Equality assertion through reflection, with different options like ignoring Java default/null values and ignoring order of collections * Database testing utilities o Automatic maintenance and constraints disabling of unit test databases + Support for Oracle, Hsqldb, MySql, DB2, Postgresql and Derby o Simplify unit test database connection setup o Simplify insertion of test data with DBUnit o Simplify Hibernate session management for unit testing o Automatically test the mapping of Hibernate mapped objects with the database o Manage transactions during unit testing * Mock object utilities o Simplify EasyMock mock object creation o Simplify mock object injection o EasyMock argument matching using reflection equality * Spring integration o ApplicationContext configuration and easy injection of spring managed beans into a unit test o Support for using a Spring-configured Hibernate SessionFactory in unit tests. The project started begin 2006 from an Ordina J-Technologies discussion group on unit testing. The result was a list of guidelines and Unitils emerged in an attempt to write code to support these guidelines. Documentation
    17 years ago by @gresch
    (0)
     
     
  • ⟨⟨
  • 1
  • ⟩⟩

publications  

    No matching posts.
  • ⟨⟨
  • ⟩⟩