App Connect

App Connect

Join this online user group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only

Junit for test Compute database

  • 1.  Junit for test Compute database

    Posted Tue November 15, 2022 05:28 AM

    I create test case from node Compute (connect oracle use datasource ODBC) but when I run debug test junit always get error connect ODBC at line :

    // Call the message flow node with the Message Assembly
    nodeSpy.evaluate(inputMessageAssembly, true, "in");

    although running through the Bar file is normal.

    How can I mock database output to compare expected json output?
    Can i ignore this code "nodeSpy.evaluate(inputMessageAssembly, true, "in");" ?

    Thank you!



    ------------------------------
    Chuan Luu Huu
    ------------------------------