Package helloworld.structural.facade

Source Code of helloworld.structural.facade.HelloWorldFacadeTest

package helloworld.structural.facade;

import helloworld.HelloWorld;
import helloworld.structural.decorator.HelloWorldDecorator;
import org.junit.Test;

import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;

/**
* @author yihua.huang@dianping.com
*/
public class HelloWorldFacadeTest {

    @Test
    public void testHelloWorldFacade(){
        HelloWorld facadeHelloWorld = HelloWorldFacade.instance().facadeHelloWorld();
        assertThat(facadeHelloWorld.helloWorld(),is("Hello Facade!"));
    }
}
TOP

Related Classes of helloworld.structural.facade.HelloWorldFacadeTest

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.