com.crio.warmup.stock.ModuleOneTest.mainReadFile() test case failed

com.crio.warmup.stock.ModuleOneTest.mainReadFile() com.crio.warmup.stock.PortfolioManagerApplicationTest.mainReadFile()
i got these test cases failed while the gradle build got success and remaining two test cases also passed there nothing in unittesting.log file pls help

I hope you didn’t hard code anything. There are hidden test cases.

Just make sure you are not harcoding any data…and using command line args

Inshort: you are using the filename directly, make use of command line argument instead.

i haven’t hard coding i used args to get file name only .
and i am getting mainReadFileEdgecase() passed while above mentioned two are only failed

what if there are more than 3 symbols in a file. Have you considered such cases? (i think this will be covered in mainReadFileEdgecase() and hardcoding data in the other, though am not sure)

put breakpoints and debug

bro i am not getting any error with edge cases

Anyone pls help don’t know what is wrong and what i have to do

ACtually i was hardcoding the path from the debugvalues instead of the resolveFileFromResources() method . my mistake now i got it
thanks @AmoghaKS

yep thatz cool :metal:

1 Like