Results 1 to 5 of 5
  1. #1
    AviLevak is offline Member
    Join Date
    Mar 2017
    Posts
    5
    Rep Power
    0

    Default Mocking in IntelliJ?

    Help please! we need to make a decision based on latest IDEA version .

    We need to use Mocks inIntelliJ - is there a way to do that? I saw TestNG is supported in IDEA, and it has mockito support from some version.

    I switched ALL our developers in my company to IntelliJ from Eclipse while ago. it took some time and lots of convincing. I raved about jetbrains and everything they do in any platform. 2 months later now I found this hopefully un-updated post from 2 years ago..
    We do not provide a recommended approach to mocking. We have a few tests in our codebase that use JMock, but in general we find it difficult to mock all of the interactions with IntelliJ Platform components that your plugin class will need to have, and we recommend working with real components instead.
    PLEASE tell me that intelliJ has forsaken this ridiculous philosophy of no mocking. You cant TDD with no Mocks. and we definitely don't have the time to create Mocks ourselves. I'm pretty shocked and disappointed, especially after the endless war of switching everyone from eclipse to IDEA,
    I cant even find the JMock plugin mentioned above.

    Assistance please! is there anyone with concurrent answer on this subject.

    Thanks in advance

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    13,541
    Rep Power
    26

    Default Re: Mocking in IntelliJ?

    What sort of mocking are you talking about?
    For what testing framework, and what sort of tests?
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  3. #3
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    1,989
    Rep Power
    8

    Default Re: Mocking in IntelliJ?

    JetBrains thread including answer here: https://intellij-support.jetbrains.c...g-in-IntelliJ-
    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2 2013

  4. #4
    AviLevak is offline Member
    Join Date
    Mar 2017
    Posts
    5
    Rep Power
    0

    Default Re: Mocking in IntelliJ?

    Thx!:) This is relaxing. I actually went rouge and tried to use mockito and succeeded. powermock is next for the statics.
    Thank you

  5. #5
    AviLevak is offline Member
    Join Date
    Mar 2017
    Posts
    5
    Rep Power
    0

    Default Re: Mocking in IntelliJ?

    java, junit 4.x+mockito+powermock(dont know the required versions , will be grateful for tips) , TDD implementation requires that I mock any class not currently tested. so I need it. I actually went rouge and tried to use mockito and succeeded. powermock is next for the statics and constructors.

    Any further recommendation will be helpful.

    Thanks for your time guys!

Similar Threads

  1. Mocking of the Hibernate getSession() object
    By rikirikardo in forum Advanced Java
    Replies: 0
    Last Post: 09-30-2011, 06:08 PM
  2. Mocking a hospital database - OOP.
    By Nanomech in forum New To Java
    Replies: 15
    Last Post: 09-07-2011, 05:18 PM
  3. Problem in mocking a class
    By nonhocapito in forum New To Java
    Replies: 0
    Last Post: 10-05-2010, 08:01 AM
  4. Mocking a class for Testing
    By hotinlavacoolinjava in forum New To Java
    Replies: 4
    Last Post: 09-22-2009, 10:23 AM
  5. Mocking static methods of class
    By Kat in forum New To Java
    Replies: 3
    Last Post: 11-08-2007, 12:24 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •