I have written some test cases in Junit. Now while running these test cases I am getting an error because the values needed for some of the attributes are to be provided from a user session , like the user name. So how is it possible to create a user session while running the Junit test case and provide the session values for these attributes.
I have to enter these attributes into an Oracle database.
Thanks,
Nigel.
I have written some test cases in Junit. Now while running these test cases
Share
There are some mock implementations for HTTP testing – for example Spring has
org.springframework.mockpackage including classes likeMockHttpSession.Using mocks you can create a test instance and pre-populate it with test values so to your code it looks like a real session.