Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Descriptable for expected? #3300

Open
onacit opened this issue Dec 16, 2023 · 0 comments
Open

Descriptable for expected? #3300

onacit opened this issue Dec 16, 2023 · 0 comments

Comments

@onacit
Copy link
Contributor

onacit commented Dec 16, 2023

Feature summary

Note: this issue is just an idea. Thanks.

How about adding classes/mechanism for describing expected values?

From this,

assertThat(decryptedPath)
        .as("size of the decrypted path")
        .hasSize(Files.size(plainPath));

With this (something like)

public class DescriptableValue<SELF, T>
        extends Descriptable<SELF> {
}

Example

assertThat(decryptedPath)
        .as("size of the decrypted path")
        .hasSize(
                of(Files.size(plainPath) // DescriptableValue.of
                .as("size of the plain path")
        );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant