GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — `inBinary` not exposed for `String` assertions · Issue #3547 · assertj/assertj

inBinary not exposed for String assertions #3547

New issue
Copy link
New issue
Copy link
Closed
✨ New Feature
Closed
inBinary not exposed for String assertions#3547
✨ New Feature
Copy link
Assignees
sunaleed
Milestone
3.27.0

Description

@scordio
scordio
opened on Jul 22, 2024
Issue body actions

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

assertj/assertj-core/src/test/java/org/assertj/core/api/Assertions_assertThat_inBinary_Test.java

Lines 107 to 112 in 63e56f8

@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.

Activity

  1. scordio
    added
    type: new feature
    on Jul 22, 2024
  2. sunaleed commented on Sep 8, 2024

    @sunaleed
    sunaleed
    on Sep 8, 2024
    Contributor
    More actions

    #3600
    I created a PR for this issue

    Reacted by injae kim
    Reacted by injae kim
  3. scordio
    removed
    type: new feature
    on Oct 2, 2024
  4. scordio
    assigned
    sunaleed
    on Oct 3, 2024
  5. scordio commented on Oct 3, 2024

    @scordio
    scordio
    on Oct 3, 2024
    MemberAuthor
    More actions

    Done in a4bc7ec.

  6. scordio
    closed this as completedon Oct 3, 2024
  7. scordio
    added this to the 3.27.0 milestone on Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @sunaleed
    sunaleed

Labels

No labels
No labels

Type

✨ New Feature

Projects

No projects

    Milestone

    • 3.27.0

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.