Remove extra logging for unit test

This commit is contained in:
aboyko
2025-02-02 08:08:31 -05:00
parent a6af211100
commit 5f45c08071

View File

@@ -24,7 +24,6 @@ import org.eclipse.lsp4j.Location;
import org.eclipse.lsp4j.LocationLink;
import org.eclipse.lsp4j.Position;
import org.eclipse.lsp4j.Range;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.slf4j.LoggerFactory;
@@ -52,9 +51,6 @@ import org.springframework.test.annotation.DirtiesContext.ClassMode;
import com.google.gson.Gson;
import ch.qos.logback.classic.Level;
import ch.qos.logback.classic.Logger;
/**
* @author Alex Boyko
*/
@@ -79,15 +75,8 @@ public class XMLBeansHyperlinkTest {
private ProjectsHarness projects = ProjectsHarness.INSTANCE;
private MavenJavaProject project;
private Level originalLevel;
@BeforeEach
public void setup() throws Exception {
final Logger logger = (Logger)LoggerFactory.getLogger(Logger.ROOT_LOGGER_NAME);
originalLevel = logger.getLevel();
logger.setLevel(Level.INFO);
log.info("-------------------------------------------------");
harness.intialize(null);
Map<String, Object> supportXML = new HashMap<>();
@@ -113,13 +102,6 @@ public class XMLBeansHyperlinkTest {
initProject.get(1500, TimeUnit.SECONDS);
}
@AfterEach
public void tearDown() {
log.debug("-------------------------------------------------");
final Logger logger = (Logger)LoggerFactory.getLogger(Logger.ROOT_LOGGER_NAME);
logger.setLevel(originalLevel);
}
@Test
void testBeanClassHyperlink() throws Exception {
Path xmlFilePath = Paths.get(project.getLocationUri()).resolve("beans.xml");