-
- All Implemented Interfaces:
public abstract class BooksTest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBooksTest.Book
-
Constructor Summary
Constructors Constructor Description BooksTest(ServerPort adapter)
-
Method Summary
Modifier and Type Method Description final ServergetServer()final Unitinitialize()final Unitshutdown()final UnitCreate book returns 201 and new book ID()final UnitList books contains all books IDs()final UnitGet book returns all book's fields()final UnitUpdate book overrides existing book data()final UnitDelete book returns the deleted record ID()final UnitBook not found returns a 404()final UnitInvalid method returns 405()-
-
Constructor Detail
-
BooksTest
BooksTest(ServerPort adapter)
-
-
Method Detail
-
initialize
final Unit initialize()
-
Create book returns 201 and new book ID
final Unit Create book returns 201 and new book ID()
-
List books contains all books IDs
final Unit List books contains all books IDs()
-
Get book returns all book's fields
final Unit Get book returns all book's fields()
-
Update book overrides existing book data
final Unit Update book overrides existing book data()
-
Delete book returns the deleted record ID
final Unit Delete book returns the deleted record ID()
-
Book not found returns a 404
final Unit Book not found returns a 404()
-
Invalid method returns 405
final Unit Invalid method returns 405()
-
-
-
-