Monday, April 02, 2007

Testing and AJAX

Two completely unrelated areas of interest.

The first is Unitils which automates a number of testing tasks. It includes:
* 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

The cookbook offer concrete examples to do things like mock object injection and the like.

The second is Slingshot: Desktop Apps via Rails, "Slingshot looks like it wraps up a Rails app and packages it in such a way that the user is opening up a Site Specific Browser that accesses your world". It's seen as an alternative to the Firefox 3 or Apollo.

1 comment:

Tom Adams said...

The injection of mock fields & marking of the test subject is similar to the auto mocking we do here, as well as what I'm currently working on in Instinct. The syntax is a bit messy though. The inheritance is a bit yuck also, especially as JUnit4 and TestNG both avoid it by design. It'd be hard to do such a thing without it though, as the existing frameworks don't allow extension in a nicer manner (one advantage of writing your own framework!).