Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Testing in JavaSever Faces and testing java persistance  RSS feed

 
michal stankiewicz
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd like to ask, how to program JavaServer Faces testing and java Persistance testing. If you have good tutorial you can give me link. What I'd like to do most are unit tests.

1) Let's say I will use Logger class to log, how do I test:
user can / cannot access to elements of application, lets say admin can go everywhere, and security can go to /security/*, but cannot go to /users/*
if I can access a page, I want to see / do not see some elemets, for example admin can see "delete" button, but normal user not
let's say we check, that there is menu item logout if I am logged and no menu item logout if I am not logged

?
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have several levels of testing.

For UI-level testing, my tool of choice for functionality is Selenium. I've used various performance tools such as JMeter as well.

For EJB unit testing, I use JUnit. Since I typically have Spring in the app, I may also swap out components (for example, using a dummy emailer). When things get more complex, I've used JMockit.

For Persistence component testing I use DBUnit. It has some warts, but it has saved me tons of time in keeping my SQL/JPQL statements honest.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!