Sha256: d303ab168ddfd56536866ab06a0c0d9f132cd9cd97c423feace42677fd2a37b2

Contents?: true

Size: 957 Bytes

Versions: 11

Compression:

Stored size: 957 Bytes

Contents

# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

require File.expand_path(File.join(File.dirname(__FILE__),'../../..','test_helper'))
require 'new_relic/agent/new_relic_service/json_marshaller'
require 'new_relic/agent/new_relic_service/encoders'

module NewRelic
  module Agent
    class NewRelicService
      class JsonMarshallerTest < Minitest::Test
        def test_default_encoder_is_base64_compressed_json
          marshaller = JsonMarshaller.new
          assert_equal Encoders::Base64CompressedJSON, marshaller.default_encoder
        end

        def test_default_encoder_is_identity_with_simple_compression_enabled
          marshaller = JsonMarshaller.new
          with_config :simple_compression => true do
            assert_equal Encoders::Identity, marshaller.default_encoder
          end
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
newrelic_rpm-4.1.0.333 test/new_relic/agent/new_relic_service/json_marshaller_test.rb
newrelic_rpm-4.0.0.332 test/new_relic/agent/new_relic_service/json_marshaller_test.rb
newrelic_rpm-3.18.1.330 test/new_relic/agent/new_relic_service/json_marshaller_test.rb
newrelic_rpm-3.18.0.329 test/new_relic/agent/new_relic_service/json_marshaller_test.rb
newrelic_rpm-3.17.2.327 test/new_relic/agent/new_relic_service/json_marshaller_test.rb
newrelic_rpm-3.17.1.326 test/new_relic/agent/new_relic_service/json_marshaller_test.rb
newrelic_rpm-3.17.0.325 test/new_relic/agent/new_relic_service/json_marshaller_test.rb
newrelic_rpm-3.16.3.323 test/new_relic/agent/new_relic_service/json_marshaller_test.rb
newrelic_rpm-3.16.2.321 test/new_relic/agent/new_relic_service/json_marshaller_test.rb
newrelic_rpm-3.16.1.320 test/new_relic/agent/new_relic_service/json_marshaller_test.rb
newrelic_rpm-3.16.0.318 test/new_relic/agent/new_relic_service/json_marshaller_test.rb