Im using the servletunit to test most of my servlets, and its runs great. But I wonder one thing with the getHeaderNames() method. This method always returns NULL.
The javadoc explains it by "Some servlet containers do not allow do not allow servlets to access headers using this method, in which case this method returns null."
Is this going to change in any future upgrades? Which servlet containers return null, and is it still necessary to always return null?
Its sad that some (badly implemented) servlet containers must limit all other servlet implementations (as long as you would like to do unittesting).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Im using the servletunit to test most of my servlets, and its runs great. But I wonder one thing with the getHeaderNames() method. This method always returns NULL.
The javadoc explains it by "Some servlet containers do not allow do not allow servlets to access headers using this method, in which case this method returns null."
Is this going to change in any future upgrades? Which servlet containers return null, and is it still necessary to always return null?
Its sad that some (badly implemented) servlet containers must limit all other servlet implementations (as long as you would like to do unittesting).
As it happens, I recently received a contribution which implemented this method. The code is in cvs. Let me know if you need a build.
Ok, great!
And no I dont need any implementation right now, but thanks anyway.