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