This is an automated email from the ASF dual-hosted git repository.
pepness pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git
The following commit(s) were added to refs/heads/master by this push:
new 7d1014a5ed Add support for GlassFish 7.0.3
new 8f943c27e6 Merge pull request #5749 from pepness/glassfish-7.0.3
7d1014a5ed is described below
commit 7d1014a5ed1ad9996cc716129f8aa765953eef42
Author: José Contreras <[email protected]>
AuthorDate: Thu Mar 30 14:23:51 2023 -0600
Add support for GlassFish 7.0.3
- Bump GlassFish version in some tests
---
.../modules/glassfish/common/Bundle.properties | 1 +
.../modules/glassfish/common/ServerDetails.java | 14 ++++++++++++
.../glassfish/tooling/admin/AdminFactory.java | 1 +
.../glassfish/tooling/data/GlassFishVersion.java | 10 ++++++++-
.../server/config/ConfigBuilderProvider.java | 8 ++++++-
.../glassfish/tooling/admin/AdminFactoryTest.java | 4 ++--
.../tooling/data/GlassFishVersionTest.java | 6 +++--
.../glassfish/tooling/utils/EnumUtilsTest.java | 26 +++++++++++-----------
8 files changed, 51 insertions(+), 19 deletions(-)
diff --git
a/enterprise/glassfish.common/src/org/netbeans/modules/glassfish/common/Bundle.properties
b/enterprise/glassfish.common/src/org/netbeans/modules/glassfish/common/Bundle.properties
index c9444ea576..ac47eb584a 100644
---
a/enterprise/glassfish.common/src/org/netbeans/modules/glassfish/common/Bundle.properties
+++
b/enterprise/glassfish.common/src/org/netbeans/modules/glassfish/common/Bundle.properties
@@ -169,6 +169,7 @@ STR_625_SERVER_NAME=GlassFish Server 6.2.5
STR_700_SERVER_NAME=GlassFish Server 7.0.0
STR_701_SERVER_NAME=GlassFish Server 7.0.1
STR_702_SERVER_NAME=GlassFish Server 7.0.2
+STR_703_SERVER_NAME=GlassFish Server 7.0.3
# CommonServerSupport.java
MSG_FLAKEY_NETWORK=<html>Network communication problem<br/>Could not establish
\
diff --git
a/enterprise/glassfish.common/src/org/netbeans/modules/glassfish/common/ServerDetails.java
b/enterprise/glassfish.common/src/org/netbeans/modules/glassfish/common/ServerDetails.java
index c395298349..f4e7dd15f5 100644
---
a/enterprise/glassfish.common/src/org/netbeans/modules/glassfish/common/ServerDetails.java
+++
b/enterprise/glassfish.common/src/org/netbeans/modules/glassfish/common/ServerDetails.java
@@ -323,6 +323,17 @@ public enum ServerDetails {
"https://repo1.maven.org/maven2/org/glassfish/main/distributions/glassfish/7.0.2/glassfish-7.0.2.zip",
// NOI18N
"https://repo1.maven.org/maven2/org/glassfish/main/distributions/glassfish/7.0.2/glassfish-7.0.2.zip",
// NOI18N
"http://www.eclipse.org/legal/epl-2.0" //NOI18N
+ ),
+
+ /**
+ * details for an instance of GlassFish Server 7.0.3
+ */
+ GLASSFISH_SERVER_7_0_3(NbBundle.getMessage(ServerDetails.class,
"STR_703_SERVER_NAME", new Object[]{}), // NOI18N
+ "deployer:gfv700ee10", // NOI18N
+ 703,
+
"https://repo1.maven.org/maven2/org/glassfish/main/distributions/glassfish/7.0.3/glassfish-7.0.3.zip",
// NOI18N
+
"https://repo1.maven.org/maven2/org/glassfish/main/distributions/glassfish/7.0.3/glassfish-7.0.3.zip",
// NOI18N
+ "http://www.eclipse.org/legal/epl-2.0" //NOI18N
);
/**
@@ -334,6 +345,7 @@ public enum ServerDetails {
public static WizardDescriptor.InstantiatingIterator
getInstantiatingIterator() {
return new ServerWizardIterator(new ServerDetails[]{
+ GLASSFISH_SERVER_7_0_3,
GLASSFISH_SERVER_7_0_2,
GLASSFISH_SERVER_7_0_1,
GLASSFISH_SERVER_7_0_0,
@@ -360,6 +372,7 @@ public enum ServerDetails {
GLASSFISH_SERVER_3_0_1,
GLASSFISH_SERVER_3},
new ServerDetails[]{
+ GLASSFISH_SERVER_7_0_3,
GLASSFISH_SERVER_7_0_2,
GLASSFISH_SERVER_7_0_1,
GLASSFISH_SERVER_7_0_0,
@@ -424,6 +437,7 @@ public enum ServerDetails {
case GF_7_0_0: return GLASSFISH_SERVER_7_0_0.getVersion();
case GF_7_0_1: return GLASSFISH_SERVER_7_0_1.getVersion();
case GF_7_0_2: return GLASSFISH_SERVER_7_0_2.getVersion();
+ case GF_7_0_3: return GLASSFISH_SERVER_7_0_3.getVersion();
default: return -1;
}
}
diff --git
a/enterprise/glassfish.tooling/src/org/netbeans/modules/glassfish/tooling/admin/AdminFactory.java
b/enterprise/glassfish.tooling/src/org/netbeans/modules/glassfish/tooling/admin/AdminFactory.java
index d4fe4409c8..b98e5b749d 100644
---
a/enterprise/glassfish.tooling/src/org/netbeans/modules/glassfish/tooling/admin/AdminFactory.java
+++
b/enterprise/glassfish.tooling/src/org/netbeans/modules/glassfish/tooling/admin/AdminFactory.java
@@ -95,6 +95,7 @@ public abstract class AdminFactory {
case GF_7_0_0:
case GF_7_0_1:
case GF_7_0_2:
+ case GF_7_0_3:
return AdminFactoryRest.getInstance();
// Anything else is not unknown.
default:
diff --git
a/enterprise/glassfish.tooling/src/org/netbeans/modules/glassfish/tooling/data/GlassFishVersion.java
b/enterprise/glassfish.tooling/src/org/netbeans/modules/glassfish/tooling/data/GlassFishVersion.java
index c111a8bae1..43b1905219 100644
---
a/enterprise/glassfish.tooling/src/org/netbeans/modules/glassfish/tooling/data/GlassFishVersion.java
+++
b/enterprise/glassfish.tooling/src/org/netbeans/modules/glassfish/tooling/data/GlassFishVersion.java
@@ -102,7 +102,9 @@ public enum GlassFishVersion {
/** GlassFish 7.0.1 */
GF_7_0_1 ((short) 7, (short) 0, (short) 1, (short) 0,
GlassFishVersion.GF_7_0_1_STR),
/** GlassFish 7.0.2 */
- GF_7_0_2 ((short) 7, (short) 0, (short) 2, (short) 0,
GlassFishVersion.GF_7_0_2_STR);
+ GF_7_0_2 ((short) 7, (short) 0, (short) 2, (short) 0,
GlassFishVersion.GF_7_0_2_STR),
+ /** GlassFish 7.0.3 */
+ GF_7_0_3 ((short) 7, (short) 0, (short) 3, (short) 0,
GlassFishVersion.GF_7_0_3_STR);
////////////////////////////////////////////////////////////////////////////
// Class attributes
//
////////////////////////////////////////////////////////////////////////////
@@ -268,6 +270,11 @@ public enum GlassFishVersion {
/** Additional {@code String} representations of GF_7_0_2 value. */
static final String GF_7_0_2_STR_NEXT[] = {"7.0.2", "7.0.2.0"};
+ /** A {@code String} representation of GF_7_0_3 value. */
+ static final String GF_7_0_3_STR = "7.0.3";
+ /** Additional {@code String} representations of GF_7_0_3 value. */
+ static final String GF_7_0_3_STR_NEXT[] = {"7.0.3", "7.0.3.0"};
+
/**
* Stored <code>String</code> values for backward <code>String</code>
* conversion.
@@ -307,6 +314,7 @@ public enum GlassFishVersion {
initStringValuesMapFromArray(GF_7_0_0, GF_7_0_0_STR_NEXT);
initStringValuesMapFromArray(GF_7_0_1, GF_7_0_1_STR_NEXT);
initStringValuesMapFromArray(GF_7_0_2, GF_7_0_2_STR_NEXT);
+ initStringValuesMapFromArray(GF_7_0_3, GF_7_0_3_STR_NEXT);
}
////////////////////////////////////////////////////////////////////////////
diff --git
a/enterprise/glassfish.tooling/src/org/netbeans/modules/glassfish/tooling/server/config/ConfigBuilderProvider.java
b/enterprise/glassfish.tooling/src/org/netbeans/modules/glassfish/tooling/server/config/ConfigBuilderProvider.java
index c65a5ee7c8..18f3fcc5ca 100644
---
a/enterprise/glassfish.tooling/src/org/netbeans/modules/glassfish/tooling/server/config/ConfigBuilderProvider.java
+++
b/enterprise/glassfish.tooling/src/org/netbeans/modules/glassfish/tooling/server/config/ConfigBuilderProvider.java
@@ -129,13 +129,19 @@ public class ConfigBuilderProvider {
= new Config.Next(GlassFishVersion.GF_7_0_2,
ConfigBuilderProvider.class.getResource("GlassFishV7_0_1.xml"));
+ /** Library builder configuration since GlassFish 7.0.3. */
+ private static final Config.Next CONFIG_V7_0_3
+ = new Config.Next(GlassFishVersion.GF_7_0_3,
+
ConfigBuilderProvider.class.getResource("GlassFishV7_0_1.xml"));
+
/** Library builder configuration for GlassFish cloud. */
private static final Config config
= new Config(CONFIG_V3, CONFIG_V4, CONFIG_V4_1, CONFIG_V5,
CONFIG_V5_0_1, CONFIG_V5_1, CONFIG_V6, CONFIG_V6_1_0,
CONFIG_V6_2_0, CONFIG_V6_2_1, CONFIG_V6_2_2,
CONFIG_V6_2_3, CONFIG_V6_2_4, CONFIG_V6_2_5,
- CONFIG_V7_0_0, CONFIG_V7_0_1, CONFIG_V7_0_2);
+ CONFIG_V7_0_0, CONFIG_V7_0_1, CONFIG_V7_0_2,
+ CONFIG_V7_0_3);
/** Builders array for each server instance. */
private static final Map<GlassFishServer, ConfigBuilder> builders
diff --git
a/enterprise/glassfish.tooling/test/unit/src/org/netbeans/modules/glassfish/tooling/admin/AdminFactoryTest.java
b/enterprise/glassfish.tooling/test/unit/src/org/netbeans/modules/glassfish/tooling/admin/AdminFactoryTest.java
index e2438b149e..c1bc4d15b7 100644
---
a/enterprise/glassfish.tooling/test/unit/src/org/netbeans/modules/glassfish/tooling/admin/AdminFactoryTest.java
+++
b/enterprise/glassfish.tooling/test/unit/src/org/netbeans/modules/glassfish/tooling/admin/AdminFactoryTest.java
@@ -168,7 +168,7 @@ public class AdminFactoryTest extends CommandTest {
}
/**
- * Test factory functionality for GlassFish v. 7.0.2
+ * Test factory functionality for GlassFish v. 7.0.3
* <p/>
* Factory should initialize REST {@code Runner} and point it to
* provided {@code Command} instance.
@@ -176,7 +176,7 @@ public class AdminFactoryTest extends CommandTest {
@Test
public void testGetInstanceforVersionGF7() {
GlassFishServerEntity srv = new GlassFishServerEntity();
- srv.setVersion(GlassFishVersion.GF_7_0_2);
+ srv.setVersion(GlassFishVersion.GF_7_0_3);
AdminFactory af = AdminFactory.getInstance(srv.getVersion());
assertTrue(af instanceof AdminFactoryRest);
Command cmd = new CommandVersion();
diff --git
a/enterprise/glassfish.tooling/test/unit/src/org/netbeans/modules/glassfish/tooling/data/GlassFishVersionTest.java
b/enterprise/glassfish.tooling/test/unit/src/org/netbeans/modules/glassfish/tooling/data/GlassFishVersionTest.java
index ebefbd6385..ded54c51f9 100644
---
a/enterprise/glassfish.tooling/test/unit/src/org/netbeans/modules/glassfish/tooling/data/GlassFishVersionTest.java
+++
b/enterprise/glassfish.tooling/test/unit/src/org/netbeans/modules/glassfish/tooling/data/GlassFishVersionTest.java
@@ -103,6 +103,8 @@ public class GlassFishVersionTest {
GlassFishVersion.GF_7_0_1_STR_NEXT);
verifyToValueFromAdditionalArray(GlassFishVersion.GF_7_0_2,
GlassFishVersion.GF_7_0_2_STR_NEXT);
+ verifyToValueFromAdditionalArray(GlassFishVersion.GF_7_0_3,
+ GlassFishVersion.GF_7_0_3_STR_NEXT);
}
/**
@@ -125,7 +127,7 @@ public class GlassFishVersionTest {
GlassFishVersion.GF_6_2_2, GlassFishVersion.GF_6_2_3,
GlassFishVersion.GF_6_2_4, GlassFishVersion.GF_6_2_5,
GlassFishVersion.GF_7_0_0, GlassFishVersion.GF_7_0_1,
- GlassFishVersion.GF_7_0_2
+ GlassFishVersion.GF_7_0_2, GlassFishVersion.GF_7_0_3
};
String strings[] = {
"1.0.1.4", "2.0.1.5", "2.1.0.3", "2.1.1.7",
@@ -135,7 +137,7 @@ public class GlassFishVersionTest {
"5.0.1.0", "5.1.0.0", "6.0.0.0", "6.1.0.0",
"6.2.0.0", "6.2.1.0", "6.2.2.0", "6.2.3.0",
"6.2.4.0", "6.2.5.0", "7.0.0.0", "7.0.1.0",
- "7.0.2.0"
+ "7.0.2.0", "7.0.3.0"
};
for (int i = 0; i < versions.length; i++) {
GlassFishVersion version = GlassFishVersion.toValue(strings[i]);
diff --git
a/enterprise/glassfish.tooling/test/unit/src/org/netbeans/modules/glassfish/tooling/utils/EnumUtilsTest.java
b/enterprise/glassfish.tooling/test/unit/src/org/netbeans/modules/glassfish/tooling/utils/EnumUtilsTest.java
index f28e715c31..33231f3597 100644
---
a/enterprise/glassfish.tooling/test/unit/src/org/netbeans/modules/glassfish/tooling/utils/EnumUtilsTest.java
+++
b/enterprise/glassfish.tooling/test/unit/src/org/netbeans/modules/glassfish/tooling/utils/EnumUtilsTest.java
@@ -21,7 +21,7 @@ package org.netbeans.modules.glassfish.tooling.utils;
import static
org.netbeans.modules.glassfish.tooling.data.GlassFishVersion.GF_3;
import static
org.netbeans.modules.glassfish.tooling.data.GlassFishVersion.GF_4;
import static
org.netbeans.modules.glassfish.tooling.data.GlassFishVersion.GF_6_2_5;
-import static
org.netbeans.modules.glassfish.tooling.data.GlassFishVersion.GF_7_0_2;
+import static
org.netbeans.modules.glassfish.tooling.data.GlassFishVersion.GF_7_0_3;
import static org.testng.Assert.assertFalse;
import static org.testng.Assert.assertTrue;
import org.testng.annotations.Test;
@@ -47,8 +47,8 @@ public class EnumUtilsTest {
*/
@Test
public void testEq() {
- assertFalse(EnumUtils.eq(GF_7_0_2, GF_6_2_5), "Equals for a > b shall
be false.");
- assertTrue(EnumUtils.eq(GF_7_0_2, GF_7_0_2), "Equals for a == b shall
be true.");
+ assertFalse(EnumUtils.eq(GF_7_0_3, GF_6_2_5), "Equals for a > b shall
be false.");
+ assertTrue(EnumUtils.eq(GF_7_0_3, GF_7_0_3), "Equals for a == b shall
be true.");
assertFalse(EnumUtils.eq(GF_4, GF_3), "Equals for a > b shall be
false.");
assertTrue(EnumUtils.eq(GF_4, GF_4), "Equals for a == b shall be
true.");
assertFalse(EnumUtils.eq(GF_3, GF_4), "Equals for a < b shall be
false.");
@@ -69,8 +69,8 @@ public class EnumUtilsTest {
*/
@Test
public void testNe() {
- assertTrue(EnumUtils.ne(GF_7_0_2, GF_6_2_5), "Not equals for a > b
shall be true.");
- assertFalse(EnumUtils.ne(GF_7_0_2, GF_7_0_2), "Not equals for a == b
shall be false.");
+ assertTrue(EnumUtils.ne(GF_7_0_3, GF_6_2_5), "Not equals for a > b
shall be true.");
+ assertFalse(EnumUtils.ne(GF_7_0_3, GF_7_0_3), "Not equals for a == b
shall be false.");
assertTrue(EnumUtils.ne(GF_4, GF_3), "Not equals for a > b shall be
true.");
assertFalse(EnumUtils.ne(GF_4, GF_4), "Not equals for a == b shall be
false.");
assertTrue(EnumUtils.ne(GF_3, GF_4), "Not equals for a < b shall be
true.");
@@ -91,8 +91,8 @@ public class EnumUtilsTest {
*/
@Test
public void testLt() {
- assertFalse(EnumUtils.lt(GF_7_0_2, GF_6_2_5), "Less than for a > b
shall be false.");
- assertFalse(EnumUtils.lt(GF_7_0_2, GF_7_0_2), "Less than for a == b
shall be false.");
+ assertFalse(EnumUtils.lt(GF_7_0_3, GF_6_2_5), "Less than for a > b
shall be false.");
+ assertFalse(EnumUtils.lt(GF_7_0_3, GF_7_0_3), "Less than for a == b
shall be false.");
assertFalse(EnumUtils.lt(GF_4, GF_3), "Less than for a > b shall be
false.");
assertFalse(EnumUtils.lt(GF_4, GF_4), "Less than for a == b shall be
false.");
assertTrue(EnumUtils.lt(GF_3, GF_4), "Less than for a < b shall be
true.");
@@ -113,8 +113,8 @@ public class EnumUtilsTest {
*/
@Test
public void testLe() {
- assertFalse(EnumUtils.le(GF_7_0_2, GF_6_2_5), "Less than or equal for
a > b shall be false.");
- assertTrue(EnumUtils.le(GF_7_0_2, GF_7_0_2), "Less than or equal for a
== b shall be true.");
+ assertFalse(EnumUtils.le(GF_7_0_3, GF_6_2_5), "Less than or equal for
a > b shall be false.");
+ assertTrue(EnumUtils.le(GF_7_0_3, GF_7_0_3), "Less than or equal for a
== b shall be true.");
assertFalse(EnumUtils.le(GF_4, GF_3), "Less than or equal for a > b
shall be false.");
assertTrue(EnumUtils.le(GF_4, GF_4), "Less than or equal for a == b
shall be true.");
assertTrue(EnumUtils.le(GF_3, GF_4), "Less than or equal for a < b
shall be true.");
@@ -135,8 +135,8 @@ public class EnumUtilsTest {
*/
@Test
public void testGt() {
- assertTrue(EnumUtils.gt(GF_7_0_2, GF_6_2_5), "Greater than for a > b
shall be true.");
- assertFalse(EnumUtils.gt(GF_7_0_2, GF_7_0_2), "Greater than for a == b
shall be false.");
+ assertTrue(EnumUtils.gt(GF_7_0_3, GF_6_2_5), "Greater than for a > b
shall be true.");
+ assertFalse(EnumUtils.gt(GF_7_0_3, GF_7_0_3), "Greater than for a == b
shall be false.");
assertTrue(EnumUtils.gt(GF_4, GF_3), "Greater than for a > b shall be
true.");
assertFalse(EnumUtils.gt(GF_4, GF_4), "Greater than for a == b shall
be false.");
assertFalse(EnumUtils.gt(GF_3, GF_4), "Greater than for a < b shall be
false.");
@@ -157,8 +157,8 @@ public class EnumUtilsTest {
*/
@Test
public void testGe() {
- assertTrue(EnumUtils.ge(GF_7_0_2, GF_6_2_5), "Greater than or equal
for a > b shall be true.");
- assertTrue(EnumUtils.ge(GF_7_0_2, GF_7_0_2), "Greater than or equal
for a == b shall be true.");
+ assertTrue(EnumUtils.ge(GF_7_0_3, GF_6_2_5), "Greater than or equal
for a > b shall be true.");
+ assertTrue(EnumUtils.ge(GF_7_0_3, GF_7_0_3), "Greater than or equal
for a == b shall be true.");
assertTrue(EnumUtils.ge(GF_4, GF_3), "Greater than or equal for a > b
shall be true.");
assertTrue(EnumUtils.ge(GF_4, GF_4), "Greater than or equal for a == b
shall be true.");
assertFalse(EnumUtils.ge(GF_3, GF_4), "Greater than or equal for a < b
shall be false.");
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists