Package org.apache.hadoop.gateway.deploy

Examples of org.apache.hadoop.gateway.deploy.DeploymentContext


  public void testDeployment() throws Exception {
    WebArchive webArchive = ShrinkWrap.create( WebArchive.class, "test-acrhive" );

    UrlRewriteRulesDescriptorImpl rules = new UrlRewriteRulesDescriptorImpl();

    DeploymentContext context = EasyMock.createNiceMock( DeploymentContext.class );
    EasyMock.expect( context.getDescriptor( "rewrite" ) ).andReturn( rules ).anyTimes();
    EasyMock.expect( context.getWebArchive() ).andReturn( webArchive ).anyTimes();

    Service service = EasyMock.createNiceMock( Service.class );
    EasyMock.expect( service.getRole() ).andReturn( "OOZIE" ).anyTimes();
    EasyMock.expect( service.getName() ).andReturn( null ).anyTimes();
    EasyMock.expect( service.getUrl() ).andReturn( "http://test-host:777" ).anyTimes();
View Full Code Here

TOP

Related Classes of org.apache.hadoop.gateway.deploy.DeploymentContext

Copyright © 2018 www.massapicom. 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.