All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.assertj.vavr.api.EitherShouldBeRight Maven / Gradle / Ivy

There is a newer version: 0.4.3
Show newest version
package org.assertj.vavr.api;

import io.vavr.control.Either;
import org.assertj.core.error.BasicErrorMessageFactory;

/**
 * Build error message when an {@link Either} should be right.
 *
 * @author Michał Chmielarz
 */
class EitherShouldBeRight extends BasicErrorMessageFactory {

    private EitherShouldBeRight(Either actual) {
        super("%nExpecting an Either to be right but was left <%s>.", actual.getLeft());
    }

    static EitherShouldBeRight shouldBeRight(Either actual) {
        return new EitherShouldBeRight(actual);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy