intellij not picking up inherited class annotation using spring

I have BaseUnitTest, it looks like this

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {"/applicationContext-test.xml"})
@Transactional
public abstract class BaseInitUser {

My actual test classes extend this and everything works fine. Except intellij is highlighting an error on bean injection, even though it actually works :

But when I add the annoation specifying context config to subclass the error disapears :

@ContextConfiguration(locations = {"/applicationContext-test.xml"})
public class RegistrationControllerTest extends BaseInitUser {

Answers


Looks like a known bug. Star/vote in YouTrack to receive notifications on progress.


Need Your Help

Javascript object not working when i changes

javascript jquery html

I have made a program for highlight all words in a page that searched.

How to ensure that an inner div is inside of its parent container?

css css3

I'm losing my mind trying to get this simple thing working - I have a div that's 80px high - inside of which I have other divs that should take up the height of the 80px div, and just fill in the s...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.