Re: java sample not building test cases

Solved! Go to solution
spiking_acacia
Regular Visitor

java sample not building test cases

am building funds_transfer_api jar file using neatbeans ide whereby when building the test cases it always fails . this line in Config.java file 'configFile.load(this.getClass().getClassLoader().
getResourceAsStream("config.cng"));' seems to ask for a file config.cng. Where do i get this file since it doesn't come with the api?

3 REPLIES 3
API_Products
Visa Developer Support Specialist

Re: java sample not building test cases

Hey @spiking_acacia,

 

I'm happy to help. I'll take a look and get back to you soon. 




Thanks,

Tee



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.

API_Products
Visa Developer Support Specialist

Re: java sample not building test cases

Hey @spiking_acacia,

 

I've logged INC9808186 for the engineering team to investigate. We're working to resolve your issue and someone will get back to you soon. Please let us know if you have other questions and someone will be happy to help.

 




Thanks,

Tee



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.

API_Products
Visa Developer Support Specialist

Re: java sample not building test cases

Hey @spiking_acacia,

 

Based on the sample code, it seems as if the documentation doesn't provide enough information. The config file in question is tied to the file FundsTransferApiTest.java. You can see inside that constructor, that you are simply using that file to load up some properties.

 

To get around this, the customer (you/the developer) should create any file (and change the name as they see fit, or keep it as config.cng) and have the following properties inside the file:

 

userName=
password=
keyStorePath=
keyStorePassword=
proxyHostName=
proxyPortNumber=

 

 




Thanks,

Tee



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.