Skip to content

Commit

Permalink
Fix PhotoDaoTest
Browse files Browse the repository at this point in the history
  • Loading branch information
ZahraHeydari committed Jul 27, 2023
1 parent 0d3072c commit 3156af3
Show file tree
Hide file tree
Showing 13 changed files with 6 additions and 276 deletions.
2 changes: 0 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,4 @@ dependencies {
kapt "com.google.dagger:hilt-android-compiler:2.44"

testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
androidTestImplementation 'androidx.test:runner:1.5.2'
}

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion data/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@ dependencies {
implementation 'androidx.hilt:hilt-lifecycle-viewmodel:1.0.0-alpha03'

testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
testImplementation 'io.mockk:mockk:1.12.0'
}

This file was deleted.

17 changes: 0 additions & 17 deletions data/src/test/java/com/android/data/ExampleUnitTest.kt

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
package com.android.artgallery
package com.android.data

import com.android.domain.model.Photo
import com.android.data.source.local.entity.PhotoEntity

object TestUtil {

fun createPhoto(id: Long) = com.android.domain.model.Photo(
fun createPhoto(id: Long) = PhotoEntity(
id = id,
title = "",
url = "",
thumbnailUrl = ""
)

fun makePhotoList(size: Int): MutableList<com.android.domain.model.Photo> {
val list = ArrayList<com.android.domain.model.Photo>(size)
fun makePhotoList(size: Int): MutableList<PhotoEntity> {
val list = ArrayList<PhotoEntity>(size)
list.forEach {
it.title = "Photo ${list.indexOf(it)}"
it.id = (list.indexOf(it) + 1).toLong()
Expand Down
1 change: 0 additions & 1 deletion domain/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,4 @@ dependencies {
implementation 'androidx.hilt:hilt-lifecycle-viewmodel:1.0.0-alpha03'

testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
}

This file was deleted.

1 change: 0 additions & 1 deletion presentation/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,4 @@ dependencies {
implementation 'androidx.hilt:hilt-lifecycle-viewmodel:1.0.0-alpha03'

testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
}

This file was deleted.

0 comments on commit 3156af3

Please sign in to comment.