Skip to content

Commit

Permalink
Merge pull request #3052 from eclipse/lb_3051
Browse files Browse the repository at this point in the history
Fix Regression in AbstractContentAssistTest breaking customizations
  • Loading branch information
LorenzoBettini authored May 21, 2024
2 parents 8cf255b + 99ab547 commit 9047a4c
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,12 @@ public abstract class AbstractContentAssistTest implements ResourceLoadHelper, I
@Inject
private Injector injector;

private static IJavaProject javaProject;

/**
* the {@link IJavaProject} used during tests, this is created once by {@link #setUp()}.
* @since 2.35
*/
protected static IJavaProject javaProject;

/**
* cursor position marker
* @since 2.35
Expand All @@ -84,7 +88,7 @@ public XtextResource getResourceFor(InputStream stream) {
XtextResourceSet resourceSet = resourceSetProvider.get();
initializeTypeProvider(resourceSet);
try {
String projectFullPath = javaProject.getProject().getFullPath().toString();
String projectFullPath = getJavaProject(resourceSet).getProject().getFullPath().toString();
URI resourceUri = URI.createPlatformResourceURI(projectFullPath + "/" + getProjectRelativePath() + "/" + "Test." + fileExtensionProvider.getPrimaryFileExtension(), true);

/*
Expand Down

0 comments on commit 9047a4c

Please sign in to comment.