This repository was archived by the owner on Feb 4, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +7
-0
lines changed
example/src/test/java/org/wordpress/android/fluxc/upload
fluxc/src/main/java/org/wordpress/android/fluxc/store Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 11package org .wordpress .android .fluxc .upload ;
22
33import android .text .TextUtils ;
4+ import android .util .Log ;
45
56import org .junit .Test ;
7+ import org .mockito .Mockito ;
68import org .wordpress .android .fluxc .model .MediaUploadModel ;
79import org .wordpress .android .fluxc .store .MediaStore .MediaError ;
810import org .wordpress .android .fluxc .store .MediaStore .MediaErrorType ;
@@ -38,6 +40,7 @@ public void testEquals() {
3840
3941 @ Test
4042 public void testMediaError () {
43+ Mockito .mockStatic (Log .class );
4144 MediaUploadModel mediaUploadModel = new MediaUploadModel (1 );
4245
4346 assertNull (mediaUploadModel .getMediaError ());
Original file line number Diff line number Diff line change 3434import org .wordpress .android .fluxc .utils .MediaUtils ;
3535import org .wordpress .android .fluxc .utils .MimeType ;
3636import org .wordpress .android .util .AppLog ;
37+ import org .wordpress .android .util .AppLog .T ;
3738
3839import java .io .IOException ;
3940import java .net .ConnectException ;
@@ -528,6 +529,7 @@ public static MediaErrorType fromHttpStatusCode(int code) {
528529 @ NonNull
529530 public static MediaErrorType fromString (@ Nullable String string ) {
530531 if (string != null ) {
532+ AppLog .e (T .API , "Media Error Type Conversion From: " + string );
531533 for (MediaErrorType v : MediaErrorType .values ()) {
532534 if (string .equalsIgnoreCase (v .name ())) {
533535 return v ;
Original file line number Diff line number Diff line change 5353import org .wordpress .android .fluxc .store .ListStore .ListItemsRemovedPayload ;
5454import org .wordpress .android .fluxc .utils .ObjectsUtils ;
5555import org .wordpress .android .util .AppLog ;
56+ import org .wordpress .android .util .AppLog .T ;
5657import org .wordpress .android .util .DateTimeUtils ;
5758
5859import java .util .ArrayList ;
@@ -435,6 +436,7 @@ public enum PostErrorType {
435436
436437 public static PostErrorType fromString (String string ) {
437438 if (string != null ) {
439+ AppLog .e (T .API , "Post Error Type Conversion From: " + string );
438440 for (PostErrorType v : PostErrorType .values ()) {
439441 if (string .equalsIgnoreCase (v .toString ())) {
440442 return v ;
You can’t perform that action at this time.
0 commit comments