Skip to content

Commit

Permalink
chore(android): Mock Log class for tests (#6985)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored Oct 11, 2023
1 parent 79e17bb commit fa4e15b
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions android/capacitor/src/test/java/android/util/Log.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
package android.util;

public class Log {

public static int d(String tag, String msg) {
System.out.println("DEBUG: " + tag + ": " + msg);
return 0;
}

public static int i(String tag, String msg) {
System.out.println("INFO: " + tag + ": " + msg);
return 0;
}

public static int w(String tag, String msg) {
System.out.println("WARN: " + tag + ": " + msg);
return 0;
}

public static int e(String tag, String msg) {
System.out.println("ERROR: " + tag + ": " + msg);
return 0;
}

public static int v(String tag, String msg) {
System.out.println("VERBOSE: " + tag + ": " + msg);
return 0;
}
}

0 comments on commit fa4e15b

Please sign in to comment.