Sha256: a997783921f3f96d340729b505d4ae95bd82289c33dfc848069061725dd5b0e6
Contents?: true
Size: 1.38 KB
Versions: 2
Compression:
Stored size: 1.38 KB
Contents
require 'spec_helper' require 'killbill/jnotification' describe Killbill::Plugin::JNotification do before(:all) do logger = ::Logger.new(STDOUT) puts "************************************************** 1 ************************************" @jnotification = Killbill::Plugin::JNotification.new("Killbill::Plugin::NotificationTest", { "logger" => logger }) puts "************************************************** 2 ************************************" end it "should_test_on_event_ok" do puts "************************************************** 3 ************************************" 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 puts "************************************************** 4 ************************************" event = Java::com.ning.billing.mock.api.MockExtBusEvent.new(event_type, object_type, uuid, uuid, uuid) puts "************************************************** 5 ************************************" @jnotification.on_event(event) @jnotification.on_event(event) @jnotification.on_event(event) puts "************************************************** 6 ************************************" @jnotification.delegate_plugin.counter.should == 3 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
killbill-1.1.2 | spec/killbill/jnotification_spec.rb |
killbill-1.1.1 | spec/killbill/jnotification_spec.rb |