Skip to content

Pass basePath as constructor parameter#443

Merged
frankgiordano merged 1 commit intozowe:mainfrom
shabaz213:code-improvements-3
Dec 27, 2025
Merged

Pass basePath as constructor parameter#443
frankgiordano merged 1 commit intozowe:mainfrom
shabaz213:code-improvements-3

Conversation

@shabaz213
Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Shabaz K <kshabaz1729@gmail.com>
@shabaz213
Copy link
Copy Markdown
Contributor Author

@frankgiordano please review this PR

this.authType = authType;
}

private static void validatePort(String zosmfPort) {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extracted port validation logic to separate method

* @author Frank Giordano
*/
ZosConnection(final String host, final String zosmfPort, final AuthType authType) {
ZosConnection(final String host, final String zosmfPort, final String basePath, final AuthType authType) {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

basePath is now initialized inside a constructor instead of setter method

assertNotEquals("string", conn);
}

@Test
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed this test as it is now redundant. basePath is now immutable

@frankgiordano frankgiordano added the enhancement New feature or request label Dec 27, 2025
@frankgiordano frankgiordano self-requested a review December 27, 2025 03:26
@frankgiordano frankgiordano merged commit f8c848c into zowe:main Dec 27, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants