posted 7 years ago
Yes. I am more than a little stuck, and whilst I'm happy to just ignore any kind of testing whilst trying to learn some of the EE technologies, it's something I really need to get to grips with. I'm making a small little app where a user can register, login and keep track of the costs involved in buying, selling and moving from an old to a new house. I want to test that I can create a user, here's what I have so far:
User.java
UserBeanLocal.java
UserBean.java
UserBeanTest.java
Whilst I have some code in 2 of the methods and I know they work because I used a singleton bean to test them, it's not really in the spirit of unit testing or TDD. As mentioned right at the top, I'm a little perplexed as to how to continue. Any chance of a leg up?
"Twenty years from now you will be more disappointed by the things you didn't do than by the ones you did do. So throw off the bowlines. Sail away from the safe harbor. Catch the trade winds in your sails. Explore. Dream. Discover." - Mark Twain