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.

configuration on base class not working anymore

See original GitHub issue

Until version 1.2.9 (including) the configuration worked when having a test class with a base class containing the @DBUnit annotation. Version 1.2.10 introduced a new class AnnotationUtils for resolving such annotations. Unfortunately, it contains a bug for this specific case. Thus, the configuration is not used at all.

@DBUnit(caseSensitiveTableNames = true)
public abstract class MyBase {
}
public class MyTest extends MyBase {
    @Dataset("mydata.yml")
    @Test
    public void myTest() {
    }
}

I will provide a pull request with the fix shortly.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
aklempcommented, Jan 9, 2019

I’ve just tried the 1.5.1-SNAPSHOT and this bug is fixed.

0reactions
rmpestanocommented, Jan 9, 2019

v1.5.1 was just released, thank you for reporting.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tailwind CSS classes is not working in my project?
I think I've found the answer to the problem of Tailwind not building classes. Besides the config of tailwind.config content sources, ...
Read more >
Private @Before* methods aren't called when defined in a ...
Actual behavior. Private @Before* methods aren't called when defined in a base class, but work when defined in the same class.
Read more >
How to inherit properties from a base class entity using @ ...
If the BaseEntity were not annotated with @MappedSuperclass , the @Id or @Version properties would not be inherited by the classes extending ...
Read more >
The Designer could not be shown for this file because ...
App compiles and runs fine, but opening any form in the designer throws a "The base class 'System.Windows.Forms.Form' could not be loaded.
Read more >
Chapter 5. Modularizing configurations
Partitioning bean definitions across multiple @Configuration classes ... would be inaccessible (parent contexts have no access to child context beans).
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