diff --git a/README.md b/README.md
index daa466b..9069938 100644
--- a/README.md
+++ b/README.md
@@ -14,7 +14,7 @@
[2019-06](https://github.com/howlger/Eclipse-IDE-improvements-videos/tree/2019-06)
-# +++ Work in progress (for September 14, 2022) +++
Eclipse IDE 2022-09 Improvements Video
+# [Eclipse IDE 2022-09 Improvements Video](https://youtu.be/eEXvOjtauxI)
* [September 14, 2022](https://calendar.google.com/calendar/event?eid=MWlubzM1cWdzZjU2aHJnZTgxc2hscmsxb2ogZ2NoczdubTRudnBtODM3NDY5ZGRqOXRqbGtAZw&ctz=Europe/Berlin) ([calendar](https://calendar.google.com/calendar/embed?src=gchs7nm4nvpm837469ddj9tjlk@group.calendar.google.com&ctz=Europe/Berlin)) - [66 projects](https://projects.eclipse.org/releases/2022-09) ([-1 +0 → 66](projects_diff.txt)) - [wiki](https://wiki.eclipse.org/Category:SimRel-2022-09) - [website](https://eclipse.org/eclipseide/2022-09) ([New & Noteworthy](https://eclipse.org/eclipseide/2022-09/noteworthy)) - [splash screen](https://bugs.eclipse.org/bugs/show_bug.cgi?id=575781)
* Builds: [latest unreleased](https://download.eclipse.org/technology/epp/staging/) → [released](https://download.eclipse.org/technology/epp/downloads/release/2022-09/) ([Jenkins](https://ci.eclipse.org/packaging/job/simrel.epp-tycho-build), [log](https://git.eclipse.org/c/simrel/org.eclipse.simrel.build.git/log/), update sites: [staging](https://download.eclipse.org/staging/2022-09), [release](http://download.eclipse.org/releases/2022-09))
@@ -55,7 +55,7 @@
### Features to show
-* **Java **
+* **Java [📽️](https://youtu.be/eEXvOjtauxI?t=16s)**
* [Java 19 support via Marketplace](https://marketplace.eclipse.org/content/java-19-support-eclipse-2022-09-425)
* By the way, Eclipse 2022-09 requires Java 17 and is shipped with latest Java 17(.0.4)
* Cleanups:
@@ -70,13 +70,13 @@
* ([Double click in _All References_ pop-up and _All Instances_ pop-up navigates to the type](https://www.eclipse.org/eclipse/news/4.25/jdt.php#doubleclick-in-debug-popups) (in the past, double click was ignored in those pop-ups))
* ([Performance](https://github.com/search?utf8=%E2%9C%93&q=performance+OR+speed+OR+faster+org%3Aeclipse-jdt+committer-date%3A2022-06-05..2022-09-10&s=committer-date&o=desc&type=Commits):)
* (Performance test results tables are back on download page, e.g. for [4.25RC2](https://download.eclipse.org/eclipse/downloads/drops4/S-4.25RC2-202208311800/performance/performance.php))
- * Maven:
+ * Maven [📽️](https://youtu.be/eEXvOjtauxI?t=159s):
* [Autocompletion for directory/file based properties](https://github.com/eclipse/lemminx-maven/issues/292), e.g. `../|` or `../|`
* [Maven archiver support](https://github.com/eclipse-m2e/m2e-core/blob/master/RELEASE_NOTES.md#inclusion-of-maven-archiver-connector) (in the past, not shipped by default; now in [m2e core](https://github.com/eclipse-m2e/m2e-core/tree/master/org.eclipse.m2e.mavenarchiver)): creates `META-INF/MANIFEST.MF` based on the `pom.xml`'s `maven-jar-plugin` configuration
* [Annotation processors support](https://github.com/eclipse-m2e/m2e-core/blob/master/RELEASE_NOTES.md#inclusion-of-m2e-apt-plugins-for-annotation-processors) (formally [JBoss Tools m2e-apt](https://github.com/jbosstools/m2e-apt)): disabled by default, can be enabled in the preferences _Maven > Annotation Processing_ or in `pom.xml` via the property `jdt_apt`; when enabled, _Project > Properties: Java Compiler > Annotation Processing_ will be automatically configured
* (Embedded Maven updated from 3.8.4 to the latest version 3.8.6)
* [Colored Maven log in _Console_ view](https://github.com/eclipse-m2e/m2e-core/blob/master/RELEASE_NOTES.md#support-for-colored-maven-console-printouts) (requires ANSI support to be enabled: see below)
-* **General/Platform **
+* **General/Platform [📽️](https://youtu.be/eEXvOjtauxI?t=323s)**
* [Support for ANSI escape codes in Console](https://www.eclipse.org/eclipse/news/4.25/platform.php#debug-ansi-support): preferences _Run/Debug > Console > ANSI Support_ (formerly [_ANSI Escape in Console_](https://marketplace.eclipse.org/content/ansi-escape-console) plugin by [Mihai Nita](https://github.com/mihnita))
* [System encoding for Console](https://www.eclipse.org/eclipse/news/4.25/platform.php#debug-system-encoding): in launch configuration in _Common_ tab
* [Preference _General > Editors > Text Editors_: _Enable word wrap when opening an editor_](https://www.eclipse.org/eclipse/news/4.25/platform.php#enable-word-wrap-on-open) (word wrapping can be enabled/disabled per editor)
@@ -88,7 +88,7 @@
* ([Forms with default background color](https://www.eclipse.org/eclipse/news/4.25/platform.php#form-no-gradients))
* ([Less usage of icons in user confirmation dialogs](https://www.eclipse.org/eclipse/news/4.25/platform.php#less-icons-in-user-dialogs))
* ([System theme removed](https://github.com/eclipse-platform/eclipse.platform.ui/commit/9328b2d43cea202deb96f1ce88d73dd39acaa99d))
-* (**Git **)
+* (**Git**)
* (_Git Staging_ view: [Show `core.commentChar` in a tooltip](https://git.eclipse.org/c/egit/egit.git/commit/?id=b8501646b447f0c7b0f7dc73569bc9e654ae58fa))
* **(Under development)**
* ([Preferences: _Install/Update > Trust_](https://www.eclipse.org/eclipse/news/4.23/platform.php#manage-trusted-pgp-keys) (work in progress; [_rollout for 2022-06_](https://gitlab.eclipse.org/eclipse-wg/ide-wg/ide-wg.eclipse.org/-/issues/11)))
diff --git a/intro_outro_thumbnail.svg b/intro_outro_thumbnail.svg
index 7575cee..937a9b9 100644
--- a/intro_outro_thumbnail.svg
+++ b/intro_outro_thumbnail.svg
@@ -15,7 +15,7 @@
id="svg8"
inkscape:version="1.0.1 (3bc2e813f5, 2020-09-07)"
sodipodi:docname="intro_outro_thumbnail.svg"
- inkscape:export-filename="C:\Users\Howlger\git\Eclipse-IDE-improvements-videos-extras\2022-06\Outro.png"
+ inkscape:export-filename="C:\Users\Howlger\git\Eclipse-IDE-improvements-videos-extras\2022-09\Thumbnail_2022-09.png"
inkscape:export-xdpi="180"
inkscape:export-ydpi="180">
image/svg+xml
-
+
@@ -138,7 +138,7 @@
style="font-style:normal;font-variant:normal;font-weight:600;font-stretch:normal;font-size:5.87892px;line-height:20%;font-family:Khula;-inkscape-font-specification:'Khula Semi-Bold';text-align:start;text-anchor:start;fill:#f7941e;fill-opacity:1;stroke-width:0.108786px"
y="25.454311"
x="12.041815"
- sodipodi:role="line">Eclipse 2022-03
+ sodipodi:role="line">Eclipse 2022-06
Eclipse 2022-03
+ sodipodi:role="line">Eclipse 2022-06
+ width="50.381111"
+ height="9.7194605"
+ x="17.179045"
+ y="18.585068"
+ ry="0.23141564" />
2022-062022-092022-06
+ style="font-style:normal;font-variant:normal;font-weight:600;font-stretch:normal;font-size:8.73479px;line-height:20%;font-family:Khula;-inkscape-font-specification:'Khula Semi-Bold'">2022-09
UTF-8^^^|clip
dir "%ECLIPSE_DIR%\p2"
@@ -20,11 +20,11 @@ IF NOT exist "%ECLIPSE_DIR%" (echo Eclipse installation missing: %ECLIPSE_DIR% &
IF NOT exist "%ECLIPSE_P2_CONFIG_ZIP%" (echo Backup of Eclipse p2/configuration missing: %ECLIPSE_P2_CONFIG_ZIP% && pause && exit 1)
IF NOT exist "%ECLIPSE_WORKSPACE%\.metadata" (echo Workspace missing: %ECLIPSE_WORKSPACE% && pause && exit 1)
IF NOT exist "%ECLIPSE_WORKSPACE_ZIP%" (echo Backup of workspace missing: %ECLIPSE_WORKSPACE_ZIP% && pause && exit 1)
-IF NOT exist "%REPO_DIR%\.git" (echo Git repository missing: %REPO_DIR% && pause && exit 1)
+::IF NOT exist "%REPO_DIR%\.git" (echo Git repository missing: %REPO_DIR% && pause && exit 1)
:: restore Git repository
-rmdir /s /q "%REPO_DIR%"
-"%UNZIP_7ZIP%" x "%REPO_ZIP%" "-o%REPO_DIR%\.."
+::rmdir /s /q "%REPO_DIR%"
+::"%UNZIP_7ZIP%" x "%REPO_ZIP%" "-o%REPO_DIR%\.."
:: reset Eclipse (restore "p2" and "configuration" subdirectories from ZIP)
rmdir /s /q "%ECLIPSE_DIR%\p2"
diff --git a/sample_code/Eclipse 2022-09 Improvements/.classpath b/sample_code/Eclipse 2022-09 Improvements/.classpath
new file mode 100644
index 0000000..6fc81d6
--- /dev/null
+++ b/sample_code/Eclipse 2022-09 Improvements/.classpath
@@ -0,0 +1,39 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/sample_code/Eclipse 2022-09 Improvements/.project b/sample_code/Eclipse 2022-09 Improvements/.project
new file mode 100644
index 0000000..a1e58d2
--- /dev/null
+++ b/sample_code/Eclipse 2022-09 Improvements/.project
@@ -0,0 +1,45 @@
+
+
+ Eclipse 2022-09 Improvements
+
+
+
+
+
+ org.eclipse.jdt.core.javabuilder
+
+
+
+
+ org.eclipse.m2e.core.maven2Builder
+
+
+
+
+
+ org.eclipse.jdt.core.javanature
+ org.eclipse.m2e.core.maven2Nature
+
+
+
+ JDK sources (65,486 files)/jdk-11.0.16.1+1
+ 2
+ PARENT-4-PROJECT_LOC/Program%20Files/Adoptium/jdk-11.0.16.1+1/lib/src
+
+
+ JDK sources (65,486 files)/jdk-17.0.4.1+1
+ 2
+ PARENT-4-PROJECT_LOC/Program%20Files/Adoptium/jdk-17.0.4.1+1/lib/src
+
+
+ JDK sources (65,486 files)/jdk-18.0.2.1+1
+ 2
+ PARENT-4-PROJECT_LOC/Program%20Files/Adoptium/jdk-18.0.2.1+1/lib/src
+
+
+ JDK sources (65,486 files)/jdk8u345-b01
+ 2
+ PARENT-4-PROJECT_LOC/Program%20Files/Adoptium/jdk8u345-b01/src
+
+
+
diff --git a/sample_code/Eclipse 2022-09 Improvements/.settings/hello_ANSI.bat.launch b/sample_code/Eclipse 2022-09 Improvements/.settings/hello_ANSI.bat.launch
new file mode 100644
index 0000000..240ac34
--- /dev/null
+++ b/sample_code/Eclipse 2022-09 Improvements/.settings/hello_ANSI.bat.launch
@@ -0,0 +1,6 @@
+
+
+
+
+
+
diff --git a/sample_code/Eclipse 2022-09 Improvements/.settings/org.eclipse.jdt.apt.core.prefs b/sample_code/Eclipse 2022-09 Improvements/.settings/org.eclipse.jdt.apt.core.prefs
new file mode 100644
index 0000000..06db8b3
--- /dev/null
+++ b/sample_code/Eclipse 2022-09 Improvements/.settings/org.eclipse.jdt.apt.core.prefs
@@ -0,0 +1,6 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.apt.aptEnabled=false
+org.eclipse.jdt.apt.genSrcDir=target\\generated-sources\\annotations
+org.eclipse.jdt.apt.genTestSrcDir=target\\generated-test-sources\\test-annotations
+org.eclipse.jdt.apt.processorOptions/foo=bar
+org.eclipse.jdt.apt.reconcileEnabled=true
diff --git a/sample_code/Eclipse 2022-09 Improvements/.settings/org.eclipse.jdt.core.prefs b/sample_code/Eclipse 2022-09 Improvements/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 0000000..c9d1e55
--- /dev/null
+++ b/sample_code/Eclipse 2022-09 Improvements/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,9 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=17
+org.eclipse.jdt.core.compiler.compliance=17
+org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
+org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=ignore
+org.eclipse.jdt.core.compiler.processAnnotations=disabled
+org.eclipse.jdt.core.compiler.release=disabled
+org.eclipse.jdt.core.compiler.source=17
diff --git a/sample_code/Eclipse 2022-09 Improvements/.settings/org.eclipse.m2e.core.prefs b/sample_code/Eclipse 2022-09 Improvements/.settings/org.eclipse.m2e.core.prefs
new file mode 100644
index 0000000..f897a7f
--- /dev/null
+++ b/sample_code/Eclipse 2022-09 Improvements/.settings/org.eclipse.m2e.core.prefs
@@ -0,0 +1,4 @@
+activeProfiles=
+eclipse.preferences.version=1
+resolveWorkspaceProjects=true
+version=1
diff --git a/sample_code/Eclipse 2022-09 Improvements/JDK sources (65,486 files)/README.md b/sample_code/Eclipse 2022-09 Improvements/JDK sources (65,486 files)/README.md
new file mode 100644
index 0000000..0b5debf
--- /dev/null
+++ b/sample_code/Eclipse 2022-09 Improvements/JDK sources (65,486 files)/README.md
@@ -0,0 +1,7 @@
+Unpack `src.zip` (Java 8) or `lib/src.zip` (Java 11, 17, 18) of the following
+[Eclipse Temurin releases](https://adoptium.net/temurin/releases) here:
+
+* jdk8u345-b01
+* jdk-11.0.16.1+1
+* jdk-17.0.4.1+1
+* jdk-18.0.2.1+1
\ No newline at end of file
diff --git a/sample_code/Eclipse 2022-09 Improvements/hello_ANSI.bat b/sample_code/Eclipse 2022-09 Improvements/hello_ANSI.bat
new file mode 100644
index 0000000..5ef368d
--- /dev/null
+++ b/sample_code/Eclipse 2022-09 Improvements/hello_ANSI.bat
@@ -0,0 +1,2 @@
+@echo off
+echo [4mHe[3mll[1mo[m [1;47mA[1;103mN[1;46mS[1;102mI[m[1;31m![m
\ No newline at end of file
diff --git a/sample_code/Eclipse 2022-09 Improvements/pom.xml b/sample_code/Eclipse 2022-09 Improvements/pom.xml
new file mode 100644
index 0000000..ff00784
--- /dev/null
+++ b/sample_code/Eclipse 2022-09 Improvements/pom.xml
@@ -0,0 +1,77 @@
+
+ 4.0.0
+ com.example
+ Eclipse_2022-09_Improvements
+ 0.0.1-SNAPSHOT
+
+
+
+
+
+ org.hibernate
+ hibernate-jpamodelgen
+ 5.6.11.Final
+
+
+ org.hibernate.javax.persistence
+ hibernate-jpa-2.0-api
+ 1.0.0.Final
+
+
+ org.junit.jupiter
+ junit-jupiter
+ 5.9.0
+ test
+
+
+ org.junit.platform
+ junit-platform-suite
+ 1.9.0
+ test
+
+
+
+ compile
+
+
+
+
+ org.apache.maven.plugins
+ maven-jar-plugin
+ 3.2.2
+
+
+
+ value
+
+
+
+
+
+
+
+ maven-compiler-plugin
+ 3.1
+
+
+ 17
+
+
+ -Afoo=bar
+
+
+
+
+
+
+ maven-surefire-plugin
+ 2.22.2
+
+
+ maven-failsafe-plugin
+ 2.22.2
+
+
+
+
+
\ No newline at end of file
diff --git a/sample_code/AnsiConsole.java b/sample_code/Eclipse 2022-09 Improvements/src/main/java/com/example/AnsiEscapeCodes.java
similarity index 99%
rename from sample_code/AnsiConsole.java
rename to sample_code/Eclipse 2022-09 Improvements/src/main/java/com/example/AnsiEscapeCodes.java
index 07b97e2..7a64417 100644
--- a/sample_code/AnsiConsole.java
+++ b/sample_code/Eclipse 2022-09 Improvements/src/main/java/com/example/AnsiEscapeCodes.java
@@ -1,3 +1,4 @@
+package com.example;
class AnsiEscapeCodes {
private static final String ESCAPE = "\u001b[";
private static final String BOLD = ESCAPE + "1;";
diff --git a/sample_code/Eclipse 2022-09 Improvements/src/main/java/com/example/Element.java b/sample_code/Eclipse 2022-09 Improvements/src/main/java/com/example/Element.java
new file mode 100644
index 0000000..e69c579
--- /dev/null
+++ b/sample_code/Eclipse 2022-09 Improvements/src/main/java/com/example/Element.java
@@ -0,0 +1,16 @@
+package com.example;
+
+
+public class Element {
+
+ private String name;
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = null;
+ }
+
+}
\ No newline at end of file
diff --git a/sample_code/Eclipse 2022-09 Improvements/src/main/java/com/example/ManifestReader.java b/sample_code/Eclipse 2022-09 Improvements/src/main/java/com/example/ManifestReader.java
new file mode 100644
index 0000000..2940128
--- /dev/null
+++ b/sample_code/Eclipse 2022-09 Improvements/src/main/java/com/example/ManifestReader.java
@@ -0,0 +1,17 @@
+package com.example;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.util.jar.Manifest;
+
+class ManifestReader {
+
+ public static void main(String[] args) throws IOException {
+ try (InputStream in = ManifestReader.class.getResourceAsStream("../../META-INF/MANIFEST.MF")) {
+ Manifest manifest = new Manifest(in);
+ var key = "key";
+ System.out.println(key + ": " + manifest.getMainAttributes().getValue(key));
+ }
+ }
+
+}
diff --git a/sample_code/ToEnhancedFor.java b/sample_code/Eclipse 2022-09 Improvements/src/main/java/com/example/ToEnhancedFor.java
similarity index 96%
rename from sample_code/ToEnhancedFor.java
rename to sample_code/Eclipse 2022-09 Improvements/src/main/java/com/example/ToEnhancedFor.java
index 22f24a6..5eb8719 100644
--- a/sample_code/ToEnhancedFor.java
+++ b/sample_code/Eclipse 2022-09 Improvements/src/main/java/com/example/ToEnhancedFor.java
@@ -1,3 +1,5 @@
+package com.example;
+
import java.util.Iterator;
import java.util.List;
diff --git a/sample_code/ToSwitchExpression.java b/sample_code/Eclipse 2022-09 Improvements/src/main/java/com/example/ToSwitchExpression.java
similarity index 91%
rename from sample_code/ToSwitchExpression.java
rename to sample_code/Eclipse 2022-09 Improvements/src/main/java/com/example/ToSwitchExpression.java
index 38b7894..4eae580 100644
--- a/sample_code/ToSwitchExpression.java
+++ b/sample_code/Eclipse 2022-09 Improvements/src/main/java/com/example/ToSwitchExpression.java
@@ -1,5 +1,9 @@
+package com.example;
+
class ToSwitchExpression {
- enum Level { A, B, C, D, E; }
+ enum Level {
+ A, B, C, D, E;
+ }
// as in the past ...
int getScoring(Level level, int bonus) {
diff --git a/sample_code/Eclipse 2022-09 Improvements/src/main/resources/.gitkeep b/sample_code/Eclipse 2022-09 Improvements/src/main/resources/.gitkeep
new file mode 100644
index 0000000..e69de29
diff --git a/sample_code/Eclipse 2022-09 Improvements/src/test/java/com/example/ElementTest.java b/sample_code/Eclipse 2022-09 Improvements/src/test/java/com/example/ElementTest.java
new file mode 100644
index 0000000..3865df2
--- /dev/null
+++ b/sample_code/Eclipse 2022-09 Improvements/src/test/java/com/example/ElementTest.java
@@ -0,0 +1,16 @@
+package com.example;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
+
+import org.junit.jupiter.api.Test;
+
+class ElementTest {
+
+ @Test
+ void testNaming() {
+ var element = new Element();
+ element.setName("Jane");
+ assertEquals("Jane", element.getName());
+ }
+
+}
diff --git a/sample_code/Eclipse 2022-09 Improvements/src/test/java/com/example/ToEnhancedForTest.java b/sample_code/Eclipse 2022-09 Improvements/src/test/java/com/example/ToEnhancedForTest.java
new file mode 100644
index 0000000..c6406f6
--- /dev/null
+++ b/sample_code/Eclipse 2022-09 Improvements/src/test/java/com/example/ToEnhancedForTest.java
@@ -0,0 +1,53 @@
+package com.example;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
+
+import java.io.ByteArrayOutputStream;
+import java.io.PrintStream;
+import java.util.List;
+
+import org.junit.jupiter.api.Test;
+
+class ToEnhancedForTest {
+
+ private static final PrintStream ORIGINAL_OUT = System.out;
+
+ @Test
+ void permutationsOfArrays() {
+ try {
+ var out = new ByteArrayOutputStream();
+ System.setOut(new PrintStream(out));
+ new ToEnhancedFor().permutations(new String[] { "a", "b" }, new String[] { "1", "2", "3" });
+ assertEquals("""
+ a1
+ a2
+ a3
+ b1
+ b2
+ b3
+ """.replace("\n", System.lineSeparator()), out.toString());
+ } finally {
+ System.setOut(ORIGINAL_OUT);
+ }
+ }
+
+ @Test
+ void permutationsOfLists() {
+ try {
+ var out = new ByteArrayOutputStream();
+ System.setOut(new PrintStream(out));
+ new ToEnhancedFor().permutations(List.of("a", "b"), List.of("1", "2", "3"));
+ assertEquals("""
+ a1
+ a2
+ a3
+ b1
+ b2
+ b3
+ """.replace("\n", System.lineSeparator()), out.toString());
+ } finally {
+ System.setOut(ORIGINAL_OUT);
+ }
+ }
+
+}
diff --git a/sample_code/Eclipse 2022-09 Improvements/src/test/java/com/example/ToSwitchExpressionTest.java b/sample_code/Eclipse 2022-09 Improvements/src/test/java/com/example/ToSwitchExpressionTest.java
new file mode 100644
index 0000000..42a821f
--- /dev/null
+++ b/sample_code/Eclipse 2022-09 Improvements/src/test/java/com/example/ToSwitchExpressionTest.java
@@ -0,0 +1,34 @@
+package com.example;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertThrows;
+
+import org.junit.jupiter.api.Test;
+
+import com.example.ToSwitchExpression.Level;
+
+class ToSwitchExpressionTest {
+
+ @Test
+ void testGetScoring() {
+ var dut = new ToSwitchExpression();
+ assertEquals(-1, dut.getScoring(Level.A, 0));
+ assertEquals(9, dut.getScoring(Level.B, 10));
+ assertEquals(39, dut.getScoring(Level.C, -3));
+ assertThrows(IllegalArgumentException.class, () -> {
+ dut.getScoring(Level.D, 42);
+ });
+ }
+
+ @Test
+ void testGetLevelFactor() {
+ var dut = new ToSwitchExpression();
+ assertEquals(-1, dut.getLevelFactor(Level.A));
+ assertEquals(-1, dut.getLevelFactor(Level.B));
+ assertEquals(42, dut.getLevelFactor(Level.C));
+ assertThrows(IllegalArgumentException.class, () -> {
+ dut.getLevelFactor(Level.D);
+ });
+ }
+
+}
diff --git a/sample_code/Eclipse 2022-09 Improvements/src/test/resources/.gitkeep b/sample_code/Eclipse 2022-09 Improvements/src/test/resources/.gitkeep
new file mode 100644
index 0000000..e69de29
diff --git a/sample_code/parent/.gitkeep b/sample_code/parent/.gitkeep
new file mode 100644
index 0000000..e69de29
diff --git a/sample_code/submodule_1/.gitkeep b/sample_code/submodule_1/.gitkeep
new file mode 100644
index 0000000..e69de29
diff --git a/sample_code/submodule_2/.gitkeep b/sample_code/submodule_2/.gitkeep
new file mode 100644
index 0000000..e69de29
diff --git a/sample_code/submodule_3/.gitkeep b/sample_code/submodule_3/.gitkeep
new file mode 100644
index 0000000..e69de29