Skip to content

Commit

Permalink
Extracting common code in InstallationManagerTestCase
Browse files Browse the repository at this point in the history
  • Loading branch information
spyrkob committed Jul 24, 2024
1 parent 8b38f17 commit d4fd454
Show file tree
Hide file tree
Showing 19 changed files with 1,007 additions and 1,502 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
package org.wildfly.core.instmgr;

import java.nio.file.Path;
import java.text.DateFormat;
import java.util.List;
import java.util.Locale;

Expand Down Expand Up @@ -53,7 +54,7 @@ public void execute(OperationContext context, ModelNode operation) throws Operat
for (HistoryResult hr : history) {
ModelNode entry = new ModelNode();
entry.get(InstMgrConstants.HISTORY_RESULT_HASH).set(hr.getName());
entry.get(InstMgrConstants.HISTORY_RESULT_TIMESTAMP).set(hr.timestamp().toString());
entry.get(InstMgrConstants.HISTORY_RESULT_TIMESTAMP).set(DateFormat.getInstance().format(hr.timestamp()));
entry.get(InstMgrConstants.HISTORY_RESULT_TYPE).set(hr.getType().toLowerCase(Locale.ENGLISH));
if (hr.getVersions() != null && !hr.getVersions().isEmpty()) {
final ModelNode versions = entry.get(InstMgrConstants.HISTORY_RESULT_CHANNEL_VERSIONS);
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@
<version.org.wildfly.client.config>1.0.1.Final</version.org.wildfly.client.config>
<version.org.wildfly.common>1.7.0.Final</version.org.wildfly.common>
<version.org.wildfly.discovery>1.3.0.Final</version.org.wildfly.discovery>
<version.org.wildfly.installation-manager.installation-manager-api>1.0.3.Final-SNAPSHOT</version.org.wildfly.installation-manager.installation-manager-api>
<version.org.wildfly.installation-manager.installation-manager-api>1.0.3.Final</version.org.wildfly.installation-manager.installation-manager-api>
<version.org.wildfly.legacy.test>8.0.2.Final</version.org.wildfly.legacy.test>
<version.org.wildfly.openssl>2.2.5.Final</version.org.wildfly.openssl>
<version.org.wildfly.openssl.natives>2.2.2.Final</version.org.wildfly.openssl.natives>
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

This file was deleted.

Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.

Large diffs are not rendered by default.

0 comments on commit d4fd454

Please sign in to comment.