Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using testcontainers-redis-junit-jupiter depends on org.junit.rules.TestRule #6

Open
eduyayo opened this issue Aug 24, 2023 · 2 comments

Comments

@eduyayo
Copy link

eduyayo commented Aug 24, 2023

running pure jupiter application (excluding junit) generates this error:
java: cannot access org.junit.rules.TestRule class file for org.junit.rules.TestRule not found

when having this code

@Container private static final RedisContainer REDIS_CONTAINER = new RedisContainer(DockerImageName.parse("redis:5.0.3-alpine")).withExposedPorts(6379);

@taos-thiagoaos
Copy link

@eduyayo how can you fix this?

@eduyayo
Copy link
Author

eduyayo commented Sep 26, 2023

Jupiter uses extensions instead of rules

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants