question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DBUnitInterceptorImpl seems to be relying on junit4 being transitively provided by dbunit

See original GitHub issue

Hi @rmpestano thanks again for the great tool! I’m trying to workaround the https://sourceforge.net/p/dbunit/bugs/437/ (basically building a custom version of rider-cdi using custom version of dbunit) and i’ve noticed, that in the master of dbunit JUnit 4 is marked optional in pom.xml. Does it make sense from your point of view to rely on JUnit 4 being provided for rider-cdi by dbunit? It’s not given, that each project using rider-cdi is also using JUnit 4, in fact we’re using JUnit 5 in our project 😉 Would it be better to maybe remove https://github.com/database-rider/database-rider/blob/1c2ba2aaa9ee1b4cc1f1ba101c619c480052ee7b/rider-cdi/src/main/java/com/github/database/rider/cdi/DBUnitInterceptorImpl.java#L41-44 from DBUnitInterceptorImpl and maybe provide this functionality in a separate @Interceptor with a higher @Priority? Possibly related: #207 to make it consistent with JUnit 5

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
coiouhkccommented, Jan 26, 2021

Perfect! Thanks for handling it so quickly.

0reactions
rmpestanocommented, Jan 26, 2021

Thanks for the feedback.

For now, I don’t think we need to make it configurable mainly because it’s cdi module specific config and I don’t think it would be nice to have it in global config.

Also, creating an annotation only for that would add a bit of complexity we may not need.

Let’s start with this constant set of annotations which I think will cover most of the cases and then if users have issues we can think of something else.

Sounds good?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Database Rider Documentation
JUnit4 integrates with DBUnit through a JUnit rule called DBUnitRule ... DBUnit rule don't depend on EntityManagerProvider, it only needs a JDBC connection....
Read more >
Frequently Asked Questions - DBUnit
This error occurs when no schema is specified and that DbUnit detect that it is getting columns information from multiple tables having the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found