Skip to content

inBinary not exposed for String assertions #3547

@scordio

Description

@scordio

There is a test that demonstrates the use of inBinary with String assertions:

@Test
void should_assert_String_in_binary() {
assertThatExceptionOfType(AssertionError.class).isThrownBy(() -> assertThat("ab").inBinary().isEqualTo("a6"))
.withMessage(shouldBeEqualMessage("\"['0b00000000_01100001', '0b00000000_01100010']\"",
"\"['0b00000000_01100001', '0b00000000_00110110']\""));
}

However, inBinary is not made public in AbstractStringAssert and cannot be used by client code.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions