Skip to content
Discussion options

You must be logged in to vote

I figured it out. It was a coding error on my part in the test (even seasoned devs like me have fat finger syndrome!).

I was doing the following:

        when(redisServiceMock.getAllValues()).thenReturn(new ArrayList<>(testData.getKeys()));

but I should have done:

        when(redisServiceMock.getAllValues()).thenReturn(new ArrayList<>(testData.values()));

For others who are getting started with Quarkus and Redis, here is a proof of concept app I was testing with:

https://github.com/johnmanko/quarkus-redis-service-example

I hope someone can find it useful.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@geoand
Comment options

geoand May 20, 2024
Collaborator

@johnmanko
Comment options

Answer selected by johnmanko
@geoand
Comment options

geoand May 20, 2024
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants