You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when I launch only a test which has failed, it works?
After spending a lot of time, I see the problem is because each time test is executed, it updates singleton with some uriresolver, and we are not in the same context if we launch the all tests and just one test.
The problem is because URIResolverManagerExtension is a singleton, although it should be a singleton only for an instance of XMLLanguageService.
This issue is for link an instance of URIResolverManagerExtension to an instance of XMLLanguageService to be in the same context (in test context) than real case
I'm working on this issue.
The text was updated successfully, but these errors were encountered:
This issue should be fixed. There were several JUnit tests which was wrong because they had some dependencies from a previous test (ex: a test which fill content model manager, and after the test used the filled content model manager).
fbricon
changed the title
Some manage like ContentModelManager, URIResolverManagerExtension should not be a singleton
Some managers like ContentModelManager, URIResolverManagerExtension should not be a singleton
Nov 12, 2018
When I try to implement #204 by adding a new simple URIResolver https://github.com/angelozerr/lsp4xml/blob/master/org.eclipse.lsp4xml/src/main/java/org/eclipse/lsp4xml/extensions/catalog/XMLCatalogURIResolverExtension.java it breaks tests. It's so crazy:
After spending a lot of time, I see the problem is because each time test is executed, it updates singleton with some uriresolver, and we are not in the same context if we launch the all tests and just one test.
The problem is because URIResolverManagerExtension is a singleton, although it should be a singleton only for an instance of XMLLanguageService.
This issue is for link an instance of URIResolverManagerExtension to an instance of XMLLanguageService to be in the same context (in test context) than real case
I'm working on this issue.
The text was updated successfully, but these errors were encountered: