Rename OpenJDK distribution to oracle-openjdk

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 2c93ae0c-bbf5-40f5-bf6e-40168d0e267f
This commit is contained in:
Bruno Borges
2026-07-28 15:21:33 -04:00
parent 97050e97fa
commit 25b4db53ec
5 changed files with 14 additions and 13 deletions

View File

@@ -148,13 +148,13 @@ describe('OpenJdkDistribution', () => {
await expect(
createDistribution()['findPackageForDownload']('24')
).rejects.toThrow(
"No matching version found for SemVer '24'.\nDistribution: OpenJDK"
"No matching version found for SemVer '24'.\nDistribution: Oracle OpenJDK"
);
});
it.each([
['jre', 'OpenJDK provides only the `jdk` package type'],
['jdk+fx', 'OpenJDK provides only the `jdk` package type']
['jre', 'Oracle OpenJDK provides only the `jdk` package type'],
['jdk+fx', 'Oracle OpenJDK provides only the `jdk` package type']
])('rejects the %s package type', async (packageType, message) => {
await expect(
createDistribution('26', 'x64', packageType)['findPackageForDownload'](
@@ -199,7 +199,7 @@ describe('OpenJdkDistribution', () => {
});
it('is registered in the distribution factory', () => {
const distribution = getJavaDistribution('openjdk', {
const distribution = getJavaDistribution('oracle-openjdk', {
version: '26',
architecture: 'x64',
packageType: 'jdk',