mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-09-02 14:16:55 +00:00
refactored "add vault" functionality, which fixes #14
removed some dependencies refactored Main/MainApplication, which fixes #16
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
package org.cryptomator.ui.model;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
import org.cryptomator.ui.model.Directory;
|
||||
import org.junit.Test;
|
||||
|
||||
public class DirectoryTest {
|
||||
@Test
|
||||
public void testNormalize() throws Exception {
|
||||
assertEquals("_", Directory.normalize(" "));
|
||||
|
||||
assertEquals("a", Directory.normalize("ä"));
|
||||
|
||||
assertEquals("C", Directory.normalize("Ĉ"));
|
||||
|
||||
assertEquals("_", Directory.normalize(":"));
|
||||
|
||||
assertEquals("", Directory.normalize("汉语"));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package org.cryptomator.ui.model;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
public class VaultTest {
|
||||
|
||||
@Test
|
||||
public void testNormalize() throws Exception {
|
||||
assertEquals("_", Vault.normalize(" "));
|
||||
assertEquals("a", Vault.normalize("ä"));
|
||||
assertEquals("C", Vault.normalize("Ĉ"));
|
||||
assertEquals("_", Vault.normalize(":"));
|
||||
assertEquals("", Vault.normalize("汉语"));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user