Sha256: a0de31e64d90c3ee667217d48e9c2ad5a708cc9051d2878e47163587cf0c9b15

Contents?: true

Size: 1.11 KB

Versions: 2

Compression:

Stored size: 1.11 KB

Contents

#!/usr/bin/env jruby
#--
# Copyright (C) 2008-2009 David Kellum
#
# Licensed under the Apache License, Version 2.0 (the "License"); you
# may not use this file except in compliance with the License.  You
# may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.  See the License for the specific language governing
# permissions and limitations under the License.
#++

require 'rubygems'
gem( 'logback', '>= 0.9.14' )

require 'logback'
Logback.root.level = Logback::DEBUG

require 'test/unit'

$LOAD_PATH.unshift File.join( File.dirname(__FILE__), "..", "lib" )

require 'hc-httpclient'

class TestClient < Test::Unit::TestCase
  include HC::HTTPClient
  def test_setup
    m = ManagerFacade.new 
    m.manager_params.max_total_connections = 200
    m.client_params.so_timeout = 3000 #ms
    m.start
    
    assert_not_nil m.client

    m.shutdown

    assert_nil m.client
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hc-httpclient-3.1.1 test/test_httpclient.rb
hc-httpclient-3.1.2 test/test_httpclient.rb