I had some troubling code JUnit test method:
that even after clean rebuilds –with STS not Maven – couldn't find the roo-provided (via ITD-files) entityManager method. All other AspectJ code was found properly.Code:Long countDODRows = (Long)Task.entityManager().createQuery("select count(t) from Task AS t " + "where t.description like 'description%' and " + "t.completed = 0").getSingleResult();
I clicked the left field and choose the option "open in AspectJ editor" (or it said something close to that). Nothing visible seemed to have transpired, but the problem instantly went away and the test code ran.
Just exactly does the option "open in AspectJ editor" do? I would have expected an AspectJ editor to open, but that seems to have been the wrong assumption. I'm glad my problem went away but would be even happier if I understood what actually happened.
Please enlighten me so I can say 'duh!'.![]()


Reply With Quote
