Signed-off-by: Alper Ozturk <alperozturk@lions-macbook.local> Signed-off-by: alperozturk <alper_ozturk@proton.me>
@@ -101,4 +101,5 @@ class OCFileIconTests {
fun destroy() {
sut = null
}
+
@@ -42,7 +42,8 @@ class DrawableUtilTests {
@Test
fun testAddDrawableAsOverlayWhenGivenValidDrawablesShouldContainTwoDrawable() {
- val bitmap: Bitmap = Bitmap.createBitmap(10, 10, Bitmap.Config.ARGB_8888)
+ val bitmapSize = 10
+ val bitmap: Bitmap = Bitmap.createBitmap(bitmapSize, bitmapSize, Bitmap.Config.ARGB_8888)
val drawable = BitmapDrawable(context?.resources, bitmap)
val layerDrawable = sut?.addDrawableAsOverlay(drawable, drawable)
@@ -59,4 +60,5 @@ class DrawableUtilTests {
context = null
@@ -1021,4 +1021,5 @@ public class OCFile implements Parcelable, Comparable<OCFile>, ServerFileInterfa
public void setTags(List<String> tags) {
this.tags = tags;
@@ -43,4 +43,5 @@ class DrawableUtil {
layerDrawable.setLayerInset(1, overlayBounds.left, overlayBounds.top, overlayBounds.right, overlayBounds.bottom)
return layerDrawable
@@ -31,4 +31,5 @@ class ExtensionsTest {
assertTrue(actualYearNewValue == "")
assertFalse(actualYearNewValue == "2022")