-
Notifications
You must be signed in to change notification settings - Fork 582
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate BleScanExceptionTest. (failure expected)
- Loading branch information
1 parent
7e002b6
commit f4bf0c3
Showing
2 changed files
with
17 additions
and
23 deletions.
There are no files selected for viewing
23 changes: 0 additions & 23 deletions
23
...droidble/src/test/groovy/com/polidea/rxandroidble2/exceptions/BleScanExceptionTest.groovy
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
rxandroidble/src/test/java/com/polidea/rxandroidble2/exceptions/BleScanExceptionTest.java
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,17 @@ | ||
package com.polidea.rxandroidble2.exceptions; | ||
|
||
import static org.junit.jupiter.api.Assertions.assertEquals; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
public class BleScanExceptionTest { | ||
|
||
@Test | ||
public void toStringShouldContainMessage() { | ||
// given | ||
BleScanException out = new BleScanException(BleScanException.BLUETOOTH_DISABLED); | ||
|
||
// expect | ||
assertEquals(out.toString(), "sscom.polidea.rxandroidble2.exceptions.BleScanException: Bluetooth disabled (code 1)"); | ||
} | ||
} |