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:
@@ -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/");
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user