Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Need some assistance with J2EE and Testing/Mocking

  • 19-02-2016 09:13PM
    #1
    Registered Users, Registered Users 2 Posts: 2,238 ✭✭✭


    Hi Guys,

    I have an interview on Monday and have been pointed towards a simple J2EE example project where I need to mock a few beans and test new custom enhancements.

    To put it short, I have no clue where to start with the EE stuff.

    I'm really caught on where to add my custom code and also how to wire up the tests and mocks.

    For starters, I have added Junit and Mockito and created a simple test using a mock but that's all. I'm afraid of doing anything else for fear of looking like a complete noob.

    Would anybody care to help please?

    Thanks in advance..


Comments

  • Registered Users, Registered Users 2 Posts: 679 ✭✭✭Johnny Jukebox


    The problem with J2EE (and any other container based technology) is that the container gets in the way of testing - so you need a test framework that can accommodate the container in a flexible and performant manner.

    Check out;

    http://arquillian.org/

    for a best of breed solution for J2EE testing.


Advertisement