Sha256: 5f99df4119d45319beb3ac53e32293cff09d8c697329ce0fcc713e0eaf3f5a70
Contents?: true
Size: 726 Bytes
Versions: 1
Compression:
Stored size: 726 Bytes
Contents
require 'spec_helper' require 'killbill/jnotification' describe Killbill::Plugin::JNotification do before(:all) do @jnotification = Killbill::Plugin::JNotification.new("Killbill::Plugin::NotificationTest") end it "should_test_on_event_ok" do object_type = Java::com.ning.billing.ObjectType::INVOICE event_type = Java::com.ning.billing.beatrix.bus.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) @jnotification.on_event(event) @jnotification.on_event(event) @jnotification.on_event(event) @jnotification.delegate_plugin.counter.should == 3 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
killbill-1.0.15 | spec/killbill/jnotification_spec.rb |