What to do to pass TiingoServiceTest?

I am not getting what to do or what to not do to pass this tingo service test. Most of the people telling using String class in getForObject(). I am using the same but still this test not passed. Every Help is appreciable.

Thank you

You need to create getStockQuote function. So that it can map your response and give the list of candles :slight_smile:

Please refer me a proper link because i am not able to map in Candle by using string.

In order to pass TiingoServiceTest just reuse the logic you wrote to get Stock quotes in the previous module(Module 3) in the file TiingoService.java.
You can also debug the the getStockQuote function if you getting assertion fail error.

It fails on line no. 85

I cannot see your code but try googling the error it shows.
If when debugging execution does stop at breakpoint it means error is occuring before the breakpoint is reached, therefore try with multiple breakpoint

I got error in this line no.85 when is use debugger

Why have you added a breakpoint in the test file?
Also one more thing, while referreing to your code, I found out that you are making 2 API calls to the Tiingo provider for the same symbol, may I know why?
Refer to this FAQ, you can get your answer from this

Test case want’s string but I am not able to map data with string so I have used TiingoCandle[].Class. And make two calls. Now What to do.

Hey, you don’t have to make 2 API calls, you can just map the API call response to a String and then use Jackson to map it to Tiingo[] using Jackson, can you try this?

@Rahul-Crio.do Sir, It seems impossible because date is in incorrect format how mapping can map this kind of date in to data type LocalDate

Date from the response was always like that, you didn’t notice it before?

I have used different approach before but now it’s restricted to string.

@Jitenderi need the exact error to help you better…
Is it something like cannot construct object ?

Can you check now?
These were the tests which failed as far as i can see

Still Having these errors sir. I really don’t know how other guyz have done this.

Refer to this FAQ,
And this FAQ for null pointer Exception

I think you shouldn’t have a problem now right?

Sir I am having issue only in the 3rd error. Rest of the errors i can solve still i have to implement alpha service.

For the 3rd test, there;s an FAQ as well
Did you go through this?