Thread
#strikt
    sandjelkovic

    sandjelkovic

    3 years ago
    Maybe you could also provide a way to do assertions in the wrapped value as well, not just a predicate?
    To clarify, something similar to this:
    expectThat(either).isRight {
                get { name }.isEqualTo("Super name")
                get { id }.isNotNull().isGreaterThan(0L)
                get { uuid }.isNotNull().isNotBlank()
    }
    abendt

    abendt

    3 years ago
    Thanks for the suggestion. I will See what i can do
    sandjelkovic

    sandjelkovic

    3 years ago
    That looks cool, thanks!