Import and JUnit regression verification¶
Automated checks¶
Run make test with Java 21. Tests execute inside Equinox:
If an IDE also compiles into target/classes, pause its automatic build or run
verification in a separate checkout. Concurrent IDE and Maven compilation can
replace valid classes with partial-build output.
com.hybris.hyeclipse.tests: library-entry selection, Ant command construction, complete stdout/stderr collection, process failures, cancellation and child cleanup, output-reader cleanup, import sequencing, autobuild restoration and platform tracking.com.hybris.hyeclipse.junit.tests: extension classpath ordering and a separate Java process that loads compiled classes and resources from the resolved launch classpath.
Import lifecycle tests replace Ant and Commerce import stages; they do not substitute for importing a real SAP Commerce installation. The JVM classpath fixture does not start Commerce or connect to its database.
Eclipse smoke tests¶
Use an Eclipse runtime with these plugins installed and a built Commerce platform.
- Import the platform with source attachment and the desired configuration options. Confirm projects appear, options take effect, sources resolve and platform-dependent commands become available without restarting Eclipse.
- Repeat with workspace autobuild initially enabled, then disabled. Confirm the original setting remains unchanged after success, failure and cancellation.
- Cause the dependency update to fail. Confirm an error is reported, existing projects are not removed, and source attachment does not run.
- Cancel a long dependency update. Confirm its shell and Ant process stop and no
hyeclipse-ant-outputthreads remain. - Close and reopen the platform project. Confirm platform-dependent tooling recovers.
- Select an integration test and use Run As > Hybris JUnit 4, then debug it. Confirm dependencies, resources and database drivers resolve on Java 21 without reflective system-classloader access. Also test a method selection and a referenced extension.
Repeat import smoke tests on Windows: the command must call setantenv.bat before
ant updateMavenDependencies. Unix uses setantenv.sh and the same Ant target.
The Ant goal(s) can be changed at the top of Preferences > SAP Commerce, development
tools for Eclipse > Ant import settings. The default is updateMavenDependencies;
multiple goals, such as clean all, are supported. A blank stored value falls back
to the default.
Select JDK for Ant imports from the JDK installations registered in Eclipse's
Java > Installed JREs preferences. The selector shows installation names, Java
versions (when available), and home directories. Workspace default JDK follows
Eclipse's default installation. Only installations containing javac are offered;
a removed installation or a JRE-only default causes a clear import error.
The selected JDK sets JAVA_HOME and is prepended to PATH both before and after
Commerce's setantenv setup, so login-shell settings cannot choose a different Java
for Ant. The import console prints the resulting java -version. This does not
change the workspace's default JDK or your terminal environment.
The shell executable is configured separately in the same section and applies to
Linux and macOS only. The default prefers the executable from SHELL, with
platform-specific fallbacks. Windows always uses ComSpec or cmd.exe, ignoring
the Unix shell preference. Specify an executable path, not a command with arguments.
Unix alternatives must support --login -c and sourcing setantenv.sh;
for example, /bin/zsh.
Existing launch configurations without the classpath provider should be recreated using Run As > Hybris JUnit 4. The shortcut deliberately does not reuse ordinary JUnit launches or legacy configurations missing the provider.