-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handling Windows-style file paths and using password field in confg GUI
#9 #10 * Replacing back-slashes (Windows style file paths) from reports with forward-slashes. So that they match file paths reported in Stash Rest API.
- Loading branch information
1 parent
ca00f22
commit 7539e18
Showing
4 changed files
with
26 additions
and
2 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
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
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
13 changes: 13 additions & 0 deletions
13
src/test/java/org/jenkinsci/plugins/jvcts/perform/FullBuildModelWrapperTest.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,13 @@ | ||
package org.jenkinsci.plugins.jvcts.perform; | ||
|
||
import static org.jenkinsci.plugins.jvcts.perform.FullBuildModelWrapper.usingForwardSlashes; | ||
import static org.junit.Assert.assertEquals; | ||
|
||
import org.junit.Test; | ||
|
||
public class FullBuildModelWrapperTest { | ||
@Test | ||
public void testThatSlashesAreReplacedCorrectly() { | ||
assertEquals("c:/some/path/file.txt", usingForwardSlashes("c:\\some\\path\\file.txt")); | ||
} | ||
} |