-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sort apps also on second priority Co-authored-by: TIANGeng708 <1012721175@qq.com>
- Loading branch information
1 parent
ff761c7
commit 9195820
Showing
4 changed files
with
66 additions
and
6 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
27 changes: 27 additions & 0 deletions
27
app/src/test/java/io/github/subhamtyagi/lastlauncher/utils/ConstantsTest.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,27 @@ | ||
package io.github.subhamtyagi.lastlauncher.utils; | ||
|
||
import org.junit.Assert; | ||
import org.junit.Before; | ||
import org.junit.Test; | ||
|
||
public class ConstantsTest { | ||
|
||
private Constants constantsUnderTest; | ||
|
||
@Before | ||
public void setUp() { | ||
constantsUnderTest = new Constants(); | ||
} | ||
|
||
//CS304 Issue link: https://github.com/SubhamTyagi/Last-Launcher/issues/162 | ||
@Test | ||
public void testSortByName() { | ||
Assert.assertEquals(Constants.SORT_BY_NAME, 1); | ||
} | ||
|
||
//CS304 Issue link: https://github.com/SubhamTyagi/Last-Launcher/issues/162 | ||
@Test | ||
public void testSortBySize() { | ||
Assert.assertEquals(Constants.SORT_BY_SIZE, 2); | ||
} | ||
} |