Skip to content

NickCharsley/CRUDyCucumber

Repository files navigation

CRUDyCucumber

This Project is to help me ensure that Cucumber Jelly (https://github.com/NickCharsley/CucumberJelly) is able to help test Netbeans Projects.

To some extent I'm following Geertjan Wielenga's instructions for Loosely Coupled Reloadable Capabilities for CRUD Applications https://dzone.com/articles/loosely-coupled-reloadable-capabilities , although On occasions I think he does jump some simple steps that I think are critical, but hopefully if you compare this to the articles there then you will get some of the pointers I could have done with.

Currently this has:

  1. The compleat First Step (Tagged Reloadable), from https://dzone.com/articles/loosely-coupled-reloadable-capabilities.
  2. The compleat Second Step (Tagged Savable), from https://dzone.com/articles/loosely-coupled-saveable-capabilities.
  3. The compleat Third Step (Tagged Creatable), from https://dzone.com/articles/loosely-coupled-creatable-capabilities.
  4. The compleat Fourth Step (Tagged Deletable), from https://dzone.com/articles/loosely-coupled-deletable-capabilities
  5. The essence of the Fifth Step (Tagged OMG), from https://dzone.com/articles/loosely-coupled-data-layers
  6. Some Feature Files and Step Files to test the above.

The fifth and final step had some really wicked refactoring, un-exporting various packages, and here the cucumber testing really shone, at each step it was possible to quickly check it wasn't broken.

The final addition wass to create the 'text' query and ensure it returned enough data to pass the cucumber test, and with all the Cucumber tests in place again this was reasonably simple to do!

As part of this we also refactored the creation of test data. This involved making use of the loosely coupled data layer, and expanding it with the missing entity collections.

N.B. In the articles between the Second and Third Steps Geertjan switches from the Derby Sample Database due to issues with saving. A later comment appears to indicate how to avoid this issue, so this is Continued with the customer database.

About

This is a version of the CRUD Tutorial that I'm using to help with the development of Cucumber Jelly

Resources

Stars

Watchers

Forks

Packages

No packages published