Skip to content

Commit

Permalink
fix issue with missing package
Browse files Browse the repository at this point in the history
  • Loading branch information
carstenartur committed Nov 9, 2024
1 parent 60d2567 commit cab5e91
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
public class AssistQuickFixTest12 extends QuickFixTest {

@Rule
public ProjectTestSetup projectSetup = new Java12ProjectTestSetup(true);
public ProjectTestSetup projectSetup = new Java12ProjectTestSetup();

private IJavaProject fJProject1;

Expand Down Expand Up @@ -65,7 +65,7 @@ public void testSplitSwitchCaseStatement() throws Exception {
module test {
}
""";
IPackageFragment def= fSourceFolder.createPackageFragment("", false, null);
IPackageFragment def= fSourceFolder.createPackageFragment("test", false, null);
def.createCompilationUnit("module-info.java", str, false, null);

IPackageFragment pack= fSourceFolder.createPackageFragment("test", false, null);
Expand All @@ -82,7 +82,7 @@ public static void foo(Day day) {
}
}
}
enum Day {
MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY;
}
Expand Down Expand Up @@ -113,7 +113,7 @@ public static void foo(Day day) {
}
}
}
enum Day {
MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY;
}
Expand All @@ -133,7 +133,7 @@ public void testSplitSwitchCaseLabelRuleStatement() throws Exception {
module test {
}
""";
IPackageFragment def= fSourceFolder.createPackageFragment("", false, null);
IPackageFragment def= fSourceFolder.createPackageFragment("test", false, null);
def.createCompilationUnit("module-info.java", str, false, null);

IPackageFragment pack= fSourceFolder.createPackageFragment("test", false, null);
Expand All @@ -148,7 +148,7 @@ public static void foo(Day day) {
};
}
}
enum Day {
MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY;
}
Expand All @@ -173,7 +173,7 @@ public static void foo(Day day) {
};
}
}
enum Day {
MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY;
}
Expand Down

0 comments on commit cab5e91

Please sign in to comment.