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