Sha256: 7374afb4e5df3de327ec57df51d216d945d73323d5318f1943bca7c367744a3a

Contents?: true

Size: 835 Bytes

Versions: 17

Compression:

Stored size: 835 Bytes

Contents

require 'spec_helper'


describe Killbill::Plugin::Api::NotificationPluginApi do

  before(:all) do
    logger = ::Logger.new(STDOUT)
    @notificationPluginApi =  Killbill::Plugin::Api::NotificationPluginApi.new("Killbill::Plugin::NotificationTest", { "logger" => logger })
  end


  it "should_test_on_event_ok" do
    object_type = Java::org.killbill.billing.ObjectType::INVOICE
    event_type = Java::org.killbill.billing.notification.plugin.api.ExtBusEventType::INVOICE_CREATION
    uuid = java.util.UUID.random_uuid
    event = Java::org.killbill.billing.mock.api.MockExtBusEvent.new(event_type, object_type, uuid, uuid, uuid)
    @notificationPluginApi.on_event(event)
    @notificationPluginApi.on_event(event)
    @notificationPluginApi.on_event(event)
    @notificationPluginApi.delegate_plugin.counter.should == 3
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
killbill-3.2.2 spec/killbill/notification_plugin_api_spec.rb
killbill-3.2.1 spec/killbill/notification_plugin_api_spec.rb
killbill-3.2.0 spec/killbill/notification_plugin_api_spec.rb
killbill-3.1.12 spec/killbill/notification_plugin_api_spec.rb
killbill-3.1.11 spec/killbill/notification_plugin_api_spec.rb
killbill-3.1.10 spec/killbill/notification_plugin_api_spec.rb
killbill-3.1.9 spec/killbill/notification_plugin_api_spec.rb
killbill-3.1.8 spec/killbill/notification_plugin_api_spec.rb
killbill-3.1.7 spec/killbill/notification_plugin_api_spec.rb
killbill-3.1.6 spec/killbill/notification_plugin_api_spec.rb
killbill-3.1.5 spec/killbill/notification_plugin_api_spec.rb
killbill-3.1.4 spec/killbill/notification_plugin_api_spec.rb
killbill-3.1.3 spec/killbill/notification_plugin_api_spec.rb
killbill-3.1.2 spec/killbill/notification_plugin_api_spec.rb
killbill-3.1.1 spec/killbill/notification_plugin_api_spec.rb
killbill-3.1.0 spec/killbill/notification_plugin_api_spec.rb
killbill-3.0.0 spec/killbill/notification_plugin_api_spec.rb