Sha256: eb4f312636b81a6cbcafd302900b0bfee3117dcbbba475145ba5e6f3e4164193

Contents?: true

Size: 823 Bytes

Versions: 15

Compression:

Stored size: 823 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::com.ning.billing.ObjectType::INVOICE
    event_type = Java::com.ning.billing.notification.plugin.api.ExtBusEventType::INVOICE_CREATION
    uuid = java.util.UUID.random_uuid
    event = Java::com.ning.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

15 entries across 15 versions & 1 rubygems

Version Path
killbill-2.0.1 spec/killbill/notification_plugin_api_spec.rb
killbill-2.0.0 spec/killbill/notification_plugin_api_spec.rb
killbill-1.9.0 spec/killbill/notification_plugin_api_spec.rb
killbill-1.8.4 spec/killbill/notification_plugin_api_spec.rb
killbill-1.8.3 spec/killbill/notification_plugin_api_spec.rb
killbill-1.8.2 spec/killbill/notification_plugin_api_spec.rb
killbill-1.8.1 spec/killbill/notification_plugin_api_spec.rb
killbill-1.8.0 spec/killbill/notification_plugin_api_spec.rb
killbill-1.7.1 spec/killbill/notification_plugin_api_spec.rb
killbill-1.7.0 spec/killbill/notification_plugin_api_spec.rb
killbill-1.6.0 spec/killbill/notification_plugin_api_spec.rb
killbill-1.5.0 spec/killbill/notification_plugin_api_spec.rb
killbill-1.4.0 spec/killbill/notification_plugin_api_spec.rb
killbill-1.3.0 spec/killbill/notification_plugin_api_spec.rb
killbill-1.2.0 spec/killbill/notification_plugin_api_spec.rb