More logging for the faulty test
This commit is contained in:
@@ -28,6 +28,8 @@ import org.apache.commons.io.FileUtils;
|
||||
import org.eclipse.lsp4j.SymbolInformation;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.ide.vscode.boot.java.Annotations;
|
||||
import org.springframework.ide.vscode.boot.java.BootJavaLanguageServerComponents;
|
||||
import org.springframework.ide.vscode.boot.java.handlers.SymbolProvider;
|
||||
@@ -39,10 +41,15 @@ import org.springframework.ide.vscode.languageserver.testharness.LanguageServerH
|
||||
import org.springframework.ide.vscode.project.harness.BootJavaLanguageServerHarness;
|
||||
import org.springframework.ide.vscode.project.harness.ProjectsHarness;
|
||||
|
||||
import com.google.common.base.Supplier;
|
||||
import com.google.common.base.Suppliers;
|
||||
|
||||
/**
|
||||
* @author Martin Lippert
|
||||
*/
|
||||
public class SpringIndexerTest {
|
||||
|
||||
private static Supplier<Logger> LOG = Suppliers.memoize(() -> LoggerFactory.getLogger(SpringIndexerTest.class));
|
||||
|
||||
private Map<String, SymbolProvider> symbolProviders;
|
||||
private LanguageServerHarness<ComposableLanguageServer<BootJavaLanguageServerComponents>> harness;
|
||||
@@ -333,6 +340,7 @@ public class SpringIndexerTest {
|
||||
|
||||
@Test
|
||||
public void testRefreshOnProjectChange() throws Exception {
|
||||
LOG.get().info("testRefreshOnProjectChange STARTED");
|
||||
harness.intialize(new File(ProjectsHarness.class.getResource("/test-projects/test-annotation-indexing-parent/test-annotation-indexing/").toURI()));
|
||||
|
||||
File directory = new File(ProjectsHarness.class.getResource("/test-projects/test-annotation-indexing-parent/test-annotation-indexing/").toURI());
|
||||
@@ -345,11 +353,14 @@ public class SpringIndexerTest {
|
||||
assertFalse(indexer().isInitializing());
|
||||
harness.changeFile(pomFile.toURI().toString());
|
||||
// Refresh in progress
|
||||
LOG.get().info("testRefreshOnProjectChange - FILE CHANGED HANLED");
|
||||
assertTrue(indexer().isInitializing());
|
||||
LOG.get().info("testRefreshOnProjectChange - INDEX INIT in PROGRESS");
|
||||
|
||||
allSymbols = indexer().getAllSymbols("");
|
||||
assertFalse(indexer().isInitializing());
|
||||
assertEquals(6, allSymbols.size());
|
||||
LOG.get().info("testRefreshOnProjectChange - FINISHED");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user