Skip to content

Commit 05e637b

Browse files
committed
update jacoco
1 parent 43abe85 commit 05e637b

File tree

5 files changed

+11
-12
lines changed

5 files changed

+11
-12
lines changed

app/build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ plugins {
1616
}
1717

1818
android {
19+
namespace = "com.example.moviedb"
1920
defaultConfig {
2021
applicationId = "com.example.moviedb"
2122
buildToolsVersion = "33.0.0"
@@ -366,7 +367,7 @@ kapt {
366367
}
367368

368369
jacoco {
369-
toolVersion = "0.8.6"
370+
toolVersion = "0.8.8"
370371
}
371372

372373
/** There are two ways to see test result:

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3-
package="com.example.moviedb">
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
43

54
<uses-permission android:name="android.permission.INTERNET" />
65

@@ -14,7 +13,6 @@
1413
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />
1514

1615
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
17-
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
1816

1917
<application
2018
android:name="com.example.moviedb.MainApplication"

app/src/test/java/com/example/moviedb/data/model/CastTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class CastTest {
1515
@Test
1616
fun getFullProfilePath_profilePathIsBlank() {
1717
Assert.assertEquals(
18-
null, Cast(id = "1", profile_path = " ").getFullProfilePath()
18+
null, Cast(id = "1", profilePath = " ").getFullProfilePath()
1919
)
2020
}
2121

@@ -24,7 +24,7 @@ class CastTest {
2424
val path = "123"
2525
Assert.assertEquals(
2626
BuildConfig.SMALL_IMAGE_URL + path,
27-
Cast(id = "1", profile_path = path).getFullProfilePath()
27+
Cast(id = "1", profilePath = path).getFullProfilePath()
2828
)
2929
}
3030
}

app/src/test/java/com/example/moviedb/data/model/MovieTest.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class MovieTest {
1616
@Test
1717
fun getFullBackdropPath_backdropPathIsBlank() {
1818
assertEquals(
19-
null, Movie(id = "1", backdrop_path = " ").getFullBackdropPath()
19+
null, Movie(id = "1", backdropPath = " ").getFullBackdropPath()
2020
)
2121
}
2222

@@ -25,7 +25,7 @@ class MovieTest {
2525
val path = "123"
2626
assertEquals(
2727
BuildConfig.SMALL_IMAGE_URL + path,
28-
Movie(id = "1", backdrop_path = path).getFullBackdropPath()
28+
Movie(id = "1", backdropPath = path).getFullBackdropPath()
2929
)
3030
}
3131

@@ -39,7 +39,7 @@ class MovieTest {
3939
@Test
4040
fun getFullPosterPath_posterPathIsBlank() {
4141
assertEquals(
42-
null, Movie(id = "1", poster_path = " ").getFullPosterPath()
42+
null, Movie(id = "1", posterPath = " ").getFullPosterPath()
4343
)
4444
}
4545

@@ -48,7 +48,7 @@ class MovieTest {
4848
val path = "123"
4949
assertEquals(
5050
BuildConfig.SMALL_IMAGE_URL + path,
51-
Movie(id = "1", poster_path = path).getFullPosterPath()
51+
Movie(id = "1", posterPath = path).getFullPosterPath()
5252
)
5353
}
5454
}

app/src/test/java/com/example/moviedb/data/model/TvTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class TvTest {
1616
@Test
1717
fun getFullPosterPath_posterPathIsBlank() {
1818
Assert.assertEquals(
19-
null, Tv(id = "1", poster_path = " ").getFullPosterPath()
19+
null, Tv(id = "1", posterPath = " ").getFullPosterPath()
2020
)
2121
}
2222

@@ -25,7 +25,7 @@ class TvTest {
2525
val path = "123"
2626
Assert.assertEquals(
2727
BuildConfig.SMALL_IMAGE_URL + path,
28-
Tv(id = "1", poster_path = path).getFullPosterPath()
28+
Tv(id = "1", posterPath = path).getFullPosterPath()
2929
)
3030
}
3131
}

0 commit comments

Comments
 (0)