Franklin

Arquillian Testing Guide.

Author/Creator:
Ament, John.
Publication:
Olton : Packt Publishing, Limited, 2013.
Format/Description:
Book
1 online resource (245 pages)
Status/Location:
Loading...

Options
Location Notes Your Loan Policy

Details

Subjects:
Drug interactions.
Pharmacokinetics.
Form/Genre:
Electronic books.
Summary:
This book is a tutorial filled with plenty of code examples and strategies to give you many options when building your test structure.This book is for developers and testers alike. Anyone who has worked with test driven development or building automated test cases will find use in this book. A reader should be familiar with some automation strategies and techniques such as JUnit and should have some exposure to techniques such as mocking.
Contents:
Intro
Arquillian Testing Guide
Table of Contents
Arquillian Testing Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. The Aliens Have Landed!
The progression of testing
What is Arquillian
The Arquillian difference
The fundamentals of a test case
Testing profiles
Categorizing your test cases
Enriching your tests
Running out of the container
Efficient test authoring
ShrinkWrap - building your own app
Getting the most from Arquillian
Arquillian extensions
Summary
2. The Evolution of Testing
How did we get here?
J2EE, in the beginning
Manual testing patterns
XDoclet - the component revolution
A jump in technology
Mocking
Still missing something
OpenEJB, the embedded EJB container
Servlet containers
Spring TestContext
Selenium - functional testing
QuickTest Professional
soapUI
Deployment
Summary
3. Container Testing
Containers and deployments
Deployments
Protocols
The embedded container
Running the containers
Weld SE and EE
OpenWebBeans
OpenEJB
Jetty
Apache Tomcat
Mix and match patterns
Apache TomEE
GlassFish 3.1
JBoss AS 6.x
Honorable mentions
Arquillian Daemon Server
Spring
JPA/Hibernate
Embedded container summary
Managed containers
JBoss containers
JBoss AS 7.1
Older containers - AS 5.1 and AS 6
GlassFish 3.1
Tomcat
Managed container summary
Remote containers
Tomcat
Tomcat 6
JBoss.
Legacy JBoss - 4.x, 5.x, and 6.x
JBoss AS 7
GlassFish
GlasshFish 3.x
WebLogic
WebLogic 10g
WebLogic 12c
Apache TomEE
TomEE 1.0/1.5
Cloud deployments
Cloudbees
Remote testing strategy
Remote testing use cases
Structuring the remote test case
Other remote cases
Remote testing tools
Deploying to multiple containers
The power of remote testing
Non-testable deployments
Remote container summary
Container comparison
Tomcat
Apache TomEE
JBoss
Pre-JBoss 6
JBoss AS 6
JBoss AS 7
GlassFish
Cloud containers
CloudBees
OpenShift
WebLogic
Other setups - the embedded applications
Unofficial containers
Summary
4. Why Did the Test Fail?
Running your tests - the downside
The frustration
Packaging structure
The wrong type of archive
The container-specific descriptor
Wrong package version
The hard hat area
Sharing resources
Hello, are you listening?
Watch out for falling bugs
Problems starting up
The ports are working against you
You need a container
No container? No problem!
Consulting the remote server
Managing your test runtimes
Make it compile
Set up your profiles for long term
Overlapping profiles
The dos and don'ts
Embedded container dos and don'ts
Managed containers dos and don'ts
Remote container dos and don'ts
Summary
5. Enriching the Enterprise Test Case
Testing the dependency injection
CDI injection - simplicity in action
Testing external extensions
Building and testing extensions
EJB and resource injection
Special considerations for EJB deployments
Testing persistence
Testing Session beans
Working with Remote Session Beans
Failure scenarios
Dependency failures
Introduction to Arquillian extensions
Framework extensions
Spring.
Arquillian versus Spring test
Summary
6. Arquillian Extensions
Extending Arquillian
Testing against a database using JPA
The Persistence Extension
Preloading the database
Validate and clean up your database
Mix and match
The transaction extension
Multiple artifacts
Creating EARs
JaCoCo and Arquillian - code coverage
Deploying dependencies
Spock, very groovy test writing
Summary
7. Functional Application Testing
Functional testing
Functional testing using Selenium
Consider the approach
Test Driven Development
Simplifying the test case
Page delegate pattern
Warp drive
Phases
Grouping requests
Spring MVC and Warp
Rich application testing with Graphene
Captures
Selectors and interactions
Summary
8. Service Testing
Service testing approaches
Web service stubs
Application invocation
Compare and contrast
Using soapUI
soapUI and Arquillian
soapUI and REST APIs
Other REST tests
HTTP client testing
Testing JMS
Testing Seam 2
Summary
9. Arquillian and OSGi
OSGi and Arquillian
What is OSGi?
JBoss OSGi
OSGi versus everything else
OSGi versus JBoss Modules
Working with OSGi in a test case
ShrinkWrap Assets
OSGi archives
Testing a deployed service
Life outside of OSGi embedded
Testing Java EE using OSGi
Multiple deployment scenarios
OSGi support in GlassFish
Summary
10. ShrinkWrap in Action
What is ShrinkWrap?
Creating archives
Adding resources
Assets
Managing libraries and modules
More on building EARs
ShrinkWrap resolver
Importing modules
Deployment descriptors
Importing descriptors
Deploying descriptors
A complex use case
Summary
Index.
Notes:
Description based on publisher supplied metadata and other sources.
Local notes:
Electronic reproduction. Ann Arbor, Michigan : ProQuest Ebook Central, 2021. Available via World Wide Web. Access may be limited to ProQuest Ebook Central affiliated libraries.
Other format:
Print version: Ament, John Arquillian Testing Guide
ISBN:
9781782160717
9781782160700
OCLC:
842499857