-
Notifications
You must be signed in to change notification settings - Fork 293
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Somehow the ContentValue construction was always wrong for ages (but …
…the app still works!!!!). So. this commit removed deprecated PowerMockito dependency and adding unit test to the CI.
- Loading branch information
Showing
5 changed files
with
39 additions
and
44 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
19 changes: 19 additions & 0 deletions
19
studio-android/LightNovelLibrary/app/src/test/java/android/util/Base64.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,19 @@ | ||
package android.util; | ||
|
||
/** | ||
* Faking the Android API. | ||
* <p> | ||
* From: <a href="https://stackoverflow.com/a/60318356/4206925">How to mock Base64 in Android?</a> | ||
*/ | ||
public class Base64 { | ||
|
||
public static String encodeToString(byte[] input, int flags) { | ||
return java.util.Base64.getEncoder().encodeToString(input); | ||
} | ||
|
||
public static byte[] decode(String str, int flags) { | ||
return java.util.Base64.getDecoder().decode(str); | ||
} | ||
|
||
// add other methods if required... | ||
} |
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