Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bartoszmajsak/rhs-notes-migration-showcase
Spring and Java EE REST app with Arquillian tests.
https://github.com/bartoszmajsak/rhs-notes-migration-showcase
Last synced: 26 days ago
JSON representation
Spring and Java EE REST app with Arquillian tests.
- Host: GitHub
- URL: https://github.com/bartoszmajsak/rhs-notes-migration-showcase
- Owner: bartoszmajsak
- Created: 2014-04-09T21:43:03.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-04-12T19:01:17.000Z (over 10 years ago)
- Last Synced: 2023-03-14T04:25:22.510Z (over 1 year ago)
- Language: Java
- Size: 148 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Simple REST endpoint for taking notes
### What is this?
This tiny little project has been created for [Red Hat Summit presentation](redhat.com/summit/) and consists of a REST resource for adding notes (in uber simplistic form - plain content ;). The goal is to demonstrate differences between Spring 3.x ([tag](../../tree/spring)) and Java EE ([tag](../../tree/javaee)) approaches when implementing REST oriented applications. On top of that it's showcasing how [Arquillian](http://arquillian.org) perfectly fits for both worlds and hence can greatly simplify migration effort through automated verification of selected components. No more *shabang!* deployments and snowball effect.
The Arquillian test itself comes in two flavours:
* Client-side (black-box) tests covering `POST` and `GET` operation (written in brilliant [REST Assured](http://rest-assured.googlecode.com)). In this case Arquillian is used purely as deployment engine and container controller (you can think of it as more powerful brother of [Cargo](http://cargo.codehaus.org/))
* [Arquillian Warp](http://arquillian.org/modules/warp-extension/) grey-box test for `DELETE` operation, where REST resource is still excercised through [REST Assured](http://rest-assured.googlecode.com), but verification of the underlying persistence storage is done on the server side.