Copyright © 2012, Oracle and/or its affiliates. All rights reserved.Public 1 Testing Java EE Applications using Arquillian Reza Rahman Java EE/GlassFish.

Slides:



Advertisements
Similar presentations
Apache TomEE Tomcat Web Profile certified TomEE gesprochen Tommy.
Advertisements

Mia Urman, Take Your Oracle Forms on the Road Using ADF Mobile Mia
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.Public 1 JavaScript/HTML5 Rich Clients Using Java EE 7 Reza Rahman Java EE/GlassFish.
ISE 390 Dynamic Web Development Java EE Web Applications.
Spring, Hibernate and Web Services 13 th September 2014.
Sergio Ferreira MoreData I16 Thursday, October 12, :30 a.m. – 11:30 a.m. Platform: Informix How to call Informix 4gl code from J2EE.
Approaches to EJB Replication. Overview J2EE architecture –EJB, components, services Replication –Clustering, container, application Conclusions –Advantages.
Introduction to Java EE (J2EE)
Integrating SOA and the Application Development Framework Shaun O’Brien Principal Product Manager – Oracle JDeveloper / ADF.
Introduction to Java 2 Enterprise Edition About myself –Neutrinos, Cancer Research, IT Applications Today’s topic: J2EE –Context –Advantages –Components.
Presented by IBM developer Works ibm.com/developerworks/ 2006 January – April © 2006 IBM Corporation. Making the most of The Eclipse Web Tools Platform.
Enterprise Applications & Java/J2EE Technologies Dr. Douglas C. Schmidt Professor of EECS.
© 2005, Cornell University. Rapid Application Development using the Kuali Architecture (Struts, Spring and OJB) A Case Study Bryan Hutchinson
Model Driven Architecture (MDA) Partha Kuchana. Agenda What is MDA Modeling Approaches MDA in a NutShell MDA Models SDLC MDA Models (an Example) MDA -
Java 2 Platform, Enterprise Edition (J2EE). Source: Computer, August 2000 J2EE and Other Java 2 Platform Editions.
J2EE vs..NET Nigam Patel. Topics Background –Web Services, J2EE and.NET Similarities Differences Conclusion –Pros and Con (J2EE and.NET)
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.Public 1 Applied Domain-Driven Design Blue Prints for Java EE Reza Rahman Java EE/GlassFish.
50 EJB 3 Best Practices in 50 Minutes
1.
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.Public 1 Calling All GlassFish Users and User Groups: Please Contribute to GlassFish!
Accelerate your SaaS Integration The Cloud Adapter SDK Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Introduction to EJB INFORMATICS ENGINEERING – UNIVERSITY OF BRAWIJAYA Eriq Muhammad Adams J
Greg Stachnick Sr. Director of Product Management – Oracle Eclipse Development Tools Oracle Eclipse Update.
Introduction to the Java Stack Michael Youngstrom.
Android and iOS Development with JAX-RS, WebSocket , and Java EE 7
Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 1.
INTRODUCING THE JAVA EE PLATFORM Ch-5. Introduction Java is a  platform-independent programming language  secure and robust applications  may run on.
J AVA SE, EE, AND ME Compiled (with permission) from Sang Shin’s Introduction to Java EE Online Course Introduction to Java EE Online Course.
Software Group © 2006 IBM Corporation Modern Application Architectures for COBOL Developers - Continuing the drilldown Presenter’s name Title address.
JavaServer Faces: The Fundamentals Compiled from Sun TechDays workshops (JSF Basics, Web-Tier Codecamp: JavaServer Faces, Java Studio Creator; IBM RAD)
Introduction to Java EE (J2EE)
Presented by, MySQL & O’Reilly Media, Inc. Data Services: Mashing and Shredding Data Using XAware.
EJB Overview Celsina Bignoli Distributed Business Applications Server DB Client DB Server DB.
Eclipse and Oracle | © 2008 Oracle; made available under the EPL v1.0 Building Applications with Eclipse Frameworks and Tools for Oracle Shaun Smith EclipseLink,
LUT/Saimia CapGemini Code Camp Java EE Technologies Lauri Naukkarinen Tatu Kosonen Kari-Matti Kangas.
Copyright © 2012, Oracle and/or its affiliates. All rights reserved.Public 1.
HTTP client wide area network (Internet) HTTP proxy HTTP server HTTP gateway firewall HTTP tunnel Copyright Springer Verlag Berlin Heidelberg 2004.
Ing. Ignacio Roqueta ARTech GeneXus and J2EE.
Bayu Priyambadha, S.Kom. What is J2EE? * Open and standard based platform for developing, deploying and managing n-tier, Web-enabled, server-centric,
What’s new in J2EE 1.4 Sean C. Sullivan Portland Java Users Group February 2004.
An Introduction to Seam 3 Reza Rahman Expert Group Member, Java EE 6 and EJB 3.1 Resin EJB 3.1 Lite Container Lead Author, EJB 3 in Action
Web Applications - Basics. Introduction to Web Web features Clent/Server HyperText Transfer Protocol HyperText Markup Language URL addresses Web server.
Enterprise Java v120131Intro to JavaEE1 Java EE 5 TM Introduction.
Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 1 Quick Tutorial – Part 2 Open Data Web Services for Oracle BPM August, 2013 Forms.
Source: Peter Eeles, Kelli Houston, and Wojtek Kozaczynsky, Building J2EE Applicationa with the Rational Unified Process, Addison Wesley, 2003 Prepared.
1 Apache TomEE // JavaEE Web Profile on Tomcat Jonathan #TomEE.
Introduction to Java EE (J2EE). CSE, IITB Umesh Bellur Session Objectives Understanding the value propositions of J2EE Getting a big picture of J2EE architecture.
© 2007 IBM Corporation SOA on your terms and our expertise Software WebSphere Process Server and Portal Integration Overview.
Ganymede Simultaneous Release | © 2008 by Springsite B.V., The Netherlands made available under the EPL v1.0 Teneo Ganymede Simultaneous Release.
Introduction to the Java Stack Michael Youngstrom.
® © 2008 IBM Corporation IBM Software Group EGL Simplify Innovation EGL International Conference Zurich Oct EGL Trends and Directions Stefano.
BIRT Reporting Cross-discipline reporting across Rational repositories Bill Nelson.
RESTful Microservices In Java With Jersey Jakub Podlešák Software Engineer Oracle, Application Server Group September 29, 2014 Copyright © 2014, Oracle.
Jonathan Gallimore | Tomitribe Cluster your application with JCache and CDI.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 JSP Application Models.
Test it! Unit, mocking and in-container Meet Arquillian! Ivan St. Ivanov.
JAVA EE 6 Best Practices for Migrating Spring to WTF ?!?
Introduction to EJB. What is an EJB ?  An enterprise java bean is a server-side component that encapsulates the business logic of an application. By.
Introduction to EJB. What is an EJB ?  An enterprise java bean is a server-side component that encapsulates the business logic of an application. By.
Test Java EE applications with Arquillian Ivan St. Ivanov.
1.Education Overview JAVA EE 6 Technologies
Apache Geronimo Open Source J2EE Application Server Getting up to speed with Apache Geronimo - Copyright 2005 Tom McQueeney 1 Getting up to speed with.
Rich Internet Applications. 1 Spectrum of Internet Solution Simple HTML Broad Reach Browsing Oriented Content & Documents Rich Content Highly Interactive.
The Holmes Platform and Applications
BluePrints Reimagined
Java EE Overview The problem Java Enterprise Edition attempts to solve: maximize the use of Java technologies by providing a suite of Java technology specifications.
Java EE Overview The problem Java Enterprise Edition attempts to solve: maximize the use of Java technologies by providing a suite of Java technology specifications.
Computer Based Adaptive Testing
JavaServer Faces: The Fundamentals
The JSF Tools Project – WTP (internal) release review
Presentation transcript:

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.Public 1 Testing Java EE Applications using Arquillian Reza Rahman Java EE/GlassFish

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.Public 2 Testing, J2EE and Java EE  Testing not addressed well by J2EE  Java EE helps enormously by providing a number of enabling features  Arquillian takes full advantage of these features  Not the only solution, but best-of-breed  Developer (unit and integration) testing focus for this talk – Arquillian can also help with performance, system, etc testing – Arquillian excels at integration/regression testing  I’ll primarily focus on JUnit, not TestNG – TestNG also supported by Arquillian

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.Public 3 Java EE 7 JCA JACC EJB 3 Servlet JSF 2 JAX-RS JMS 2 JTA EL JASPIC CDI JPA UpdatedMajor Release New Concurrency Utilities Concurrency Utilities Batch Applications Java API for JSON Java API for JSON Java API for WebSocket Java API for WebSocket JavaMail JAX-WS JAXB Bean Validation

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.Public 4 Java EE Testing Enablers

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.Public 5 Testing Servlet  JAX-RS 2 client API comes in very handy!  HttpUnit, HtmlUnit good tools as well  Traditional problem is bootstrapping containers from tests

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.Public 6 Servlet Testing Demo

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.Public 7 Testing JSF 2  JSF 2 project stages invaluable for debugging and testing  Warp ideal for complete JSF testing – Client and server-side tests  Drone/Selenium, Graphene often sufficient

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.Public 8 JSF 2 Testing Demo

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.Public 9 Testing CDI/EJB 3  CDI increases Java EE component model level testability by leaps and bounds  Embedded containers, generic dependency portable extensions, XML deployment descriptors, interceptors enablers  Both mock object based unit testing as well as integration testing is possible  Likely best to stick with integration testing using close to the real runtime environment

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.Public 10 Testing JPA  Embedded container, CDI and Arquillian integration works well for JPA  Consider using embedded databases like Java DB, Derby, HSQL  Defining data sources with the application  You can use JPA 2.1 data loading, schema generation and DBUnit for better data consistency  Tests can use transactions  Take advantage of XML overrides

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.Public 11 CDI, EJB 3, JPA Testing Demo

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.Public 12 Testing JAX-RS, WebSocket (and JAX-WS)  You can use JAX-RS, WebSocket and JAX-WS client APIs with JUnit/Arquillian  For more complex cases consider UI based testing tools (e.g. soapUI for REST and SOAP)

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.Public 13 JAX-RS, WebSocket Testing Demo

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.Public 14 Arquillian Supported Containers Container Support GlassFishEmbedded, Managed, Remote WildFly, JBossEmbedded, Managed, Remote Weld SE, Weld EEEmbedded TomEE, OpenEJB, OpenWebBeansEmbedded, Managed, Remote WebLogicManaged, Remote WebSphere, LibertyManaged, Remote

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.Public 15 Summary  Robust, end-to-end testing a true reality with modern Java EE  EJB 3, JPA 2, CDI, JSF 2, embedded containers, portable extensions, XML deployment descriptors, client APIs key enablers  Range of new and existing tools available to fit your testing methodology, requirements  Arquillian best-of-breed Java EE testing tool  Rich set of features, vibrant community  Get involved!

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.Public 16 Learning More  Java EE Tutorials –  Arquillian –  The Aquarium –

Copyright © 2012, Oracle and/or its affiliates. All rights reserved.Public 17