Sha256: a2de735d5d9797efd90548cda5b927ef477e894364119633958126b1a1dce794

Contents?: true

Size: 871 Bytes

Versions: 42

Compression:

Stored size: 871 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, "root" => "/a/b/plugin_name/1.2.3" })
  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

42 entries across 42 versions & 1 rubygems

Version Path
killbill-9.4.1 spec/killbill/notification_plugin_api_spec.rb
killbill-8.3.6 spec/killbill/notification_plugin_api_spec.rb
killbill-9.4.0 spec/killbill/notification_plugin_api_spec.rb
killbill-9.3.2 spec/killbill/notification_plugin_api_spec.rb
killbill-9.3.1 spec/killbill/notification_plugin_api_spec.rb
killbill-8.3.5 spec/killbill/notification_plugin_api_spec.rb
killbill-9.3.0 spec/killbill/notification_plugin_api_spec.rb
killbill-9.2.2 spec/killbill/notification_plugin_api_spec.rb
killbill-8.3.4 spec/killbill/notification_plugin_api_spec.rb
killbill-8.3.3 spec/killbill/notification_plugin_api_spec.rb
killbill-9.2.1 spec/killbill/notification_plugin_api_spec.rb
killbill-9.2.0 spec/killbill/notification_plugin_api_spec.rb
killbill-8.3.2 spec/killbill/notification_plugin_api_spec.rb
killbill-8.3.1 spec/killbill/notification_plugin_api_spec.rb
killbill-8.3.0 spec/killbill/notification_plugin_api_spec.rb
killbill-8.2.0 spec/killbill/notification_plugin_api_spec.rb
killbill-8.1.0 spec/killbill/notification_plugin_api_spec.rb
killbill-7.0.6 spec/killbill/notification_plugin_api_spec.rb
killbill-8.0.1 spec/killbill/notification_plugin_api_spec.rb
killbill-8.0.0 spec/killbill/notification_plugin_api_spec.rb