Parameters { public void validateRemoting() { validateBasic(); checkArgument(!Strings.isNullOrEmpty(nexusUrl), "Mandatory plugin parameter 'nexusUrl' is missing"); checkArgument(nexusUrl.toLowerCase(Locale.ENGLISH).startsWith("https") || nexusUrl.toLowerCase(Locale.ENGLISH).startsWith("http"), "Mandatory plugin parameter 'nexusUrl' must start with http or https"); checkArgument(!nexusUrl.contains("/service/local/") && !nexusUrl.contains("/content/repositories/"), "Mandatory plugin parameter 'nexusUrl' should be your Nexus base URL only - for example" + " http: ); checkArgument(!Strings.isNullOrEmpty(serverId), "Mandatory plugin parameter 'serverId' is missing"); } Parameters(final String pluginGav, final File deferredDirectoryRoot, final File stagingDirectoryRoot); void validateBasic(); void validateRemoting(); void validateStaging(); String getPluginGav(); File getDeferredDirectoryRoot(); File getStagingDirectoryRoot(); String getActionDescription(final StagingAction action); String getNexusUrl(); void setNexusUrl(final String nexusUrl); String getServerId(); void setServerId(final String serverId); boolean isKeepStagingRepositoryOnCloseRuleFailure(); void setKeepStagingRepositoryOnCloseRuleFailure(final boolean keepStagingRepositoryOnCloseRuleFailure); boolean isKeepStagingRepositoryOnFailure(); void setKeepStagingRepositoryOnFailure(final boolean keepStagingRepositoryOnFailure); boolean isSkipStagingRepositoryClose(); void setSkipStagingRepositoryClose(final boolean skipStagingRepositoryClose); boolean isAutoReleaseAfterClose(); void setAutoReleaseAfterClose(final boolean autoReleaseAfterClose); boolean isAutoDropAfterRelease(); void setAutoDropAfterRelease(final boolean autoDropAfterRelease); String getStagingProfileId(); void setStagingProfileId(final String stagingProfileId); String getStagingRepositoryId(); void setStagingRepositoryId(final String stagingRepositoryId); StagingActionMessages getStagingActionMessages(); void setStagingActionMessages(final StagingActionMessages stagingActionMessages); Map<String, String> getTags(); void setTags(final Map<String, String> tags); int getStagingProgressTimeoutMinutes(); void setStagingProgressTimeoutMinutes(final int stagingProgressTimeoutMinutes); int getStagingProgressPauseDurationSeconds(); void setStagingProgressPauseDurationSeconds(final int stagingProgressPauseDurationSeconds); boolean isSslInsecure(); void setSslInsecure(final boolean sslInsecure); boolean isSslAllowAll(); void setSslAllowAll(final boolean sslAllowAll); @Override String toString();  }
@Test public void validateRemotingIsValid() { params.validateRemoting(); }