Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
overriding method readResolve() from base-class BPHostConfiguration for resoving Reflection-problems with XStream; removing own SecretHelper (replacement/hiding of the API-class) and creating new class MySecretHelper; resolves some problems with unit-tests under MS-Windows
- Loading branch information
1 parent
33356f2
commit 304aaab
Showing
2 changed files
with
61 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
src/test/java/jenkins/plugins/publish_over_ftp/MySecretHelper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package jenkins.plugins.publish_over_ftp; | ||
|
||
import hudson.util.SecretHelper; | ||
|
||
public class MySecretHelper extends SecretHelper { | ||
private static final String KEY = "7b41d2675f759b479460a41a9758bd0f6049a23ac685dc739bf7bb2d2319472d"; | ||
|
||
public static void setSecretKey() { | ||
set(KEY); | ||
} | ||
|
||
public static void clearSecretKey() { | ||
set(null); | ||
} | ||
} |