Improve notifications (#764)

Moving translation.

Adding option to enable/disable notifications.

Fix typos

Improve notifications

Co-authored-by: opyale <opyale@noreply.codeberg.org>
Co-authored-by: M M Arif <mmarif@swatian.com>
Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/764
Reviewed-by: opyale <opyale@noreply.codeberg.org>
This commit is contained in:
M M Arif
2020-11-03 20:14:24 +01:00
committed by opyale
parent 87379ae0b2
commit a92da6a6d4
16 changed files with 593 additions and 185 deletions

View File

@@ -0,0 +1,34 @@
package org.mian.gitnex.helpers;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
/**
* Author opyale
*/
public class PathsHelperTest {
@Test
public void testJoin() {
assertEquals(PathsHelper.join("test", "/test", "test/", "/test/"), "/test/test/test/test/");
assertEquals(PathsHelper.join("test", "test", "test", "test"), "/test/test/test/test/");
assertEquals(PathsHelper.join("/test", "/test", "/test", "/test"), "/test/test/test/test/");
assertEquals(PathsHelper.join("/test/", "/test/", "test/", "/test/"), "/test/test/test/test/");
assertEquals(PathsHelper.join("test", "test", "/test", "/test"), "/test/test/test/test/");
assertEquals(PathsHelper.join("test/", "test", "/test", "/test"), "/test/test/test/test/");
assertEquals(PathsHelper.join("test/test/test/test"), "/test/test/test/test/");
assertEquals(PathsHelper.join("/test/test/test/test"), "/test/test/test/test/");
assertEquals(PathsHelper.join("test/test/test/test/"), "/test/test/test/test/");
assertEquals(PathsHelper.join("test"), "/test/");
assertEquals(PathsHelper.join("test/"), "/test/");
assertEquals(PathsHelper.join("/test/"), "/test/");
assertEquals(PathsHelper.join("/test"), "/test/");
}
}

View File

@@ -1,13 +1,13 @@
package org.mian.gitnex.helpers;
/**
* Author 6543
*/
import org.junit.Test;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
/**
* Author 6543
*/
public class VersionTest {
@Test