Do not use generic Exception
This commit is contained in:
parent
acbe8986fd
commit
6a4997e100
1 changed files with 1 additions and 1 deletions
|
|
@ -176,7 +176,7 @@ class DefaultSessionWellknownRetrieverTest {
|
||||||
Result.success("{}".toByteArray())
|
Result.success("{}".toByteArray())
|
||||||
},
|
},
|
||||||
cacheStore = cacheStore,
|
cacheStore = cacheStore,
|
||||||
jsonProvider = JsonProvider { throw Exception("Failed to parse JSON") }
|
jsonProvider = JsonProvider { error("Failed to parse JSON") }
|
||||||
)
|
)
|
||||||
assertThat(sut.getElementWellKnown()).isInstanceOf(WellknownRetrieverResult.Error::class.java)
|
assertThat(sut.getElementWellKnown()).isInstanceOf(WellknownRetrieverResult.Error::class.java)
|
||||||
// Ensure that the cache is deleted after the failure to parse it
|
// Ensure that the cache is deleted after the failure to parse it
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue