forked from euphony-io/euphony
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an advanced log for calling
listen()
without permission euphony…
…-io#205 (euphony-io#217) * Add advanced logs to call listen() without permission use try-catch statements (euphony-io#205) * Made `EuRxManagerTest.java` * Apply indent to `EuRxManager.java` * Resolved euphony-io#217 Co-authored-by: zion830 <[email protected]>
- Loading branch information
1 parent
ca9985b
commit cb22a26
Showing
3 changed files
with
39 additions
and
18 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
euphony/src/androidTest/java/co/euphony/rx/EuRxManagerTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import androidx.test.ext.junit.runners.AndroidJUnit4 | ||
import co.euphony.rx.EuRxManager | ||
import org.junit.Test | ||
import org.junit.runner.RunWith | ||
|
||
@RunWith(AndroidJUnit4::class) | ||
class EuRxManagerTest { | ||
|
||
@Test(expected = Test.None::class) /* no exception expected */ | ||
fun withExceptionHandlingNoErrorOccurs() { | ||
val rxManager = EuRxManager() | ||
rxManager.listen() | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters