dtu.library.app
Class TestReturnBook

java.lang.Object
  extended by dtu.library.app.SampleDataSetup
      extended by dtu.library.app.TestReturnBook

public class TestReturnBook
extends SampleDataSetup


Constructor Summary
TestReturnBook()
           
 
Method Summary
 void testReturnBook()
          Tests that the user can return a book he has borrowed.
 
Methods inherited from class dtu.library.app.SampleDataSetup
setUp
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestReturnBook

public TestReturnBook()
Method Detail

testReturnBook

public void testReturnBook()
                    throws java.lang.Exception
Tests that the user can return a book he has borrowed.
  1. First get the user by its CPR number and the book by its signature
  2. The user borrows the book
  3. Check that the user has borrowed the book
  4. The user returns the book
  5. Check that the user returned the book

Throws:
java.lang.Exception