mfirry
mfirry

Reputation: 3692

SAP Java Connector (JCo) mocking/testing JCoFunction and/or JCoParameterList

I need to test a module without actually calling our SAP provider via executing a "real" JCoFunction.

How do I instantiate a "formally correct" JCoFunction?

I can even just deal with a JCoParameterList but just can't figure out how to instantiate it or even mock it.

Upvotes: 3

Views: 2787

Answers (2)

Thiago Kronig
Thiago Kronig

Reputation: 176

The SAP Java Connector (SAP JCo) is a toolkit that allows a Java application to communicate with any SAP System.

These guys here tried to do the same, using the 3.0 version of the SAP JCo: Can a JCo server simulate a SAP remote function?

My experience from last week is that it is not possible to create a mock SAP server to act like a JCoDestination.

Upvotes: 1

thejh
thejh

Reputation: 45568

Why not this?

new JCO.ParameterList()

Upvotes: 0

Related Questions