package Ġba idu . com . test lib project . plugin Ċ Ċ import Ġandroidx . test . ext . junit . runners . Android JUnit 4 Ċ import Ġorg . junit . After Ċ import Ġorg . junit . Assert Ċ import Ġorg . junit . Before Ċ import Ġorg . junit . Test Ċ import Ġorg . junit . runner . RunWith Ċ import Ġorg . mockito . Mockito Ċ Ċ @ RunWith ( Android JUnit 4 :: class ) Ċ class ĠFloat View Utils Kt Test Ġ{ ĊĊĠĠĠ Ġ@ Before ĊĠĠĠ Ġfun ĠsetUp () Ġ{ ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ After ĊĠĠĠ Ġfun ĠtearDown () Ġ{ ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġupload Pic 0 _ should Not Upload Pic () Ġ{ ĊĠĠĠĠĠĠĠ ĠAssert . assertFalse ( need Upload O cr Bitmap ( Mockito . any Long (), ĠVALUE _ NOT _ UPLOAD _ PIC )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġupload Pic 1 _ should Upload Pic () Ġ{ ĊĠĠĠĠĠĠĠ ĠAssert . assertTrue ( need Upload O cr Bitmap ( Mockito . any Long (), ĠVALUE _ UPLOAD _ PIC _ E VERY _ TIME )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġupload Pic Negative _ should Not Upload Pic () Ġ{ ĊĠĠĠĠĠĠĠ ĠAssert . assertFalse ( need Upload O cr Bitmap ( Mockito . any Long (), Ġ- 1 )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġupload Pic X _ should Compare Translate Count 1 () Ġ{ ĊĠĠĠĠĠĠĠ ĠAssert . assertFalse ( need Upload O cr Bitmap ( 1 0 , Ġ 3 )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġupload Pic X _ should Compare Translate Count () Ġ{ ĊĠĠĠĠĠĠĠ ĠAssert . assertTrue ( need Upload O cr Bitmap ( 1 2 , Ġ 3 )) ĊĠĠĠ Ġ} Ċ }