KillBill API Unit testing

76 views
Skip to first unread message

athira sasikumar

unread,
Mar 31, 2021, 12:04:17 PM3/31/21
to Kill Bill users mailing-list
Hi Team,

We are using OSGI Killbill plugins to create a payment gateway. while doing unit testing of our application i am facing difficulty in creating a mock object of osgikillbill class. 
I am using junit5/Mockito for unit testing. 

Could you please advice on how we can create a mock object for the killbill classes. 

Thanks in advance.

Pierre-Alexandre Meyer

unread,
Apr 1, 2021, 8:06:45 AM4/1/21
to athira sasikumar, Kill Bill users mailing-list
Hello,

While we don't use JUnit, we do use Mockito. You can take a look at how we build mocks in the plugin framework library:


Hope this helps!

--
You received this message because you are subscribed to the Google Groups "Kill Bill users mailing-list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to killbilling-us...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/killbilling-users/4fb6b1c7-f2c9-4bc4-888a-2246b53c96b9n%40googlegroups.com.


--
Pierre
Reply all
Reply to author
Forward
0 new messages