Package org.apache.hadoop.gateway.services.hostmap

Examples of org.apache.hadoop.gateway.services.hostmap.HostMapper


  @Test
  public void testBasicUseCase() throws Exception {
    URL configUrl = TestUtils.getResourceUrl( this.getClass(), "hostmap.txt" );

    HostMapper hm = EasyMock.createNiceMock(HostMapper.class);
    EasyMock.expect( hm.resolveInboundHostName("test-inbound-host")).andReturn( "test-inbound-rewritten-host" ).anyTimes();
   
    HostMapperService hms = EasyMock.createNiceMock( HostMapperService.class );

    GatewayServices gatewayServices = EasyMock.createNiceMock( GatewayServices.class );
    EasyMock.expect( gatewayServices.getService( GatewayServices.HOST_MAPPING_SERVICE ) ).andReturn( hms ).anyTimes();
View Full Code Here

TOP

Related Classes of org.apache.hadoop.gateway.services.hostmap.HostMapper

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.