Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removes extra slashes in log file path
Solves bug 3479
- Loading branch information
Showing
3 changed files
with
31 additions
and
2 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
plugins/net.bioclipse.business.test/src/net/bioclipse/business/LogfilelocationTest.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,18 @@ | ||
package net.bioclipse.business; | ||
|
||
import static org.junit.Assert.*; | ||
|
||
import net.bioclipse.business.BioclipsePlatformManager; | ||
|
||
import org.junit.Test; | ||
|
||
|
||
public class LogfilelocationTest { | ||
|
||
@Test | ||
public void test() { | ||
String input = "/Users/xxx/Library/Logs/Bioclipse//bioclipse.log"; | ||
assertEquals( "/Users/xxx/Library/Logs/Bioclipse/bioclipse.log", BioclipsePlatformManager.stripExtraSlashes( input )); | ||
} | ||
|
||
} |
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