Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Testing
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Testing
How to do a test on local EJB service
Nakataa Kokuyo
Ranch Hand
Posts: 191
posted 10 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Good day,
I'm seeking for the advice of how we can
test
the local
EJB
service which hosted in
jBOSS
by
Junit
from eclipse
IDE
?
Thanks
E Armitage
Rancher
Posts: 989
9
posted 10 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
You can use mocking libraries like
mockito
to mock out the injection or (better) use arquillian to test the unit in an embeddable container.
Nakataa Kokuyo
Ranch Hand
Posts: 191
posted 10 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi E Armitage,
for the case of mockito, is it using injectMocks? is it required Contecx Lookup in start up?
http://docs.mockito.googlecode.com/hg/latest/org/mockito/InjectMocks.html
Consider Paul's
rocket mass heater
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
EJB - Local interface
Problems with EJB Local and using servlets - null pointers
ejb3unit test, no business interface for class problem
Junit test EJB
EJB 3 and test-driven development
More...