Skip to content

Commit

Permalink
Migrate BleScanExceptionTest. (failure expected)
Browse files Browse the repository at this point in the history
  • Loading branch information
dariuszseweryn committed Mar 13, 2024
1 parent 7e002b6 commit f4bf0c3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 23 deletions.

This file was deleted.

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)");
}
}

0 comments on commit f4bf0c3

Please sign in to comment.