Package net.emaze.dysfunctional.dispatching.delegates

Source Code of net.emaze.dysfunctional.dispatching.delegates.ConstantProviderTest

package net.emaze.dysfunctional.dispatching.delegates;

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

/**
*
* @author rferranti
*/
public class ConstantProviderTest {

    @Test
    public void elementProvidedByConstantProviderIsTheSameItWasConstructedWith() {
        final Provider<O> provider = new ConstantProvider<O>(O.ONE);
        final O provided = provider.provide();
        Assert.assertEquals(O.ONE, provided);
    }
}
TOP

Related Classes of net.emaze.dysfunctional.dispatching.delegates.ConstantProviderTest

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.