more logging

This commit is contained in:
peter
2012-07-03 14:12:28 +02:00
parent 0a05070c9b
commit d44455c849
@@ -30,6 +30,9 @@ import com.intellij.openapi.vfs.VirtualFile
import com.intellij.psi.PsiFile
import com.intellij.testFramework.TestLoggerFactory
import junit.framework.AssertionFailedError
import com.intellij.openapi.vfs.VirtualFileManager
import com.intellij.openapi.vfs.newvfs.BulkFileListener
import com.intellij.openapi.vfs.newvfs.events.VFileEvent
/**
* @author peter
@@ -244,9 +247,21 @@ public abstract class GroovyCompilerTest extends GroovyCompilerTestCase {
public void testMakeInTests() throws Throwable {
setupTestSources();
myFixture.project.messageBus.connect(testRootDisposable).subscribe(VirtualFileManager.VFS_CHANGES, new BulkFileListener() {
@Override
void before(List<? extends VFileEvent> events) {
}
@Override
void after(List<? extends VFileEvent> events) {
println events
}
})
myFixture.addFileToProject("tests/Super.groovy", "class Super {}");
assertEmpty(make());
println 'after first make'
def sub = myFixture.addFileToProject("tests/Sub.groovy", "class Sub {\n" +
" Super xxx() {}\n" +
" static void main(String[] args) {" +