Package net.emaze.dysfunctional.options

Source Code of net.emaze.dysfunctional.options.PureBoxTest

package net.emaze.dysfunctional.options;

import net.emaze.dysfunctional.testing.O;
import org.junit.Assert;
import org.junit.Test;

public class PureBoxTest {

    @Test
    public void pureYieldsBoxWithContent() {
        final O value = O.ONE;
        final Box<O> got = new PureBox<O>().perform(value);
        Assert.assertEquals(Box.of(value), got);
    }
}
TOP

Related Classes of net.emaze.dysfunctional.options.PureBoxTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.