Skip to main content

JBoss Testing

JBoss Testing's Public Library

31 Mar 14

In recent years, a lot of tech have evolved, practices too... In particular, I had the chance to implement a number of agile practices, including TDD a.k.a. Test-Driven Development. TDD is not an easy stuff when you have to create an application implementing databases, mail server and others IT resources, such as legacy systems... because in that event, mocking objects does not really make sense...

16 Mar 14

In the last blog post, I showed you how you can use the Arquillian Graphene Page fragments. It allows you create reusable test components for screen elements. You can encapsulate the required test functionality nicely which result in readable and maintainable test code.

But the @Root annotation can only be placed on a single WebElement, so how can you test the radio button input group?

09 Mar 14

Writing tests in a EE environment is a challenge. Compared to test support in spring framework there is some work. Fortunately though, thanks to Arquillian, there is hope. A lot of the complication...

25 Feb 14

Three Arquillian extensions for behavior-driven development in the container

20 Feb 14

Integration testing is important but also difficult. With frameworks like WebDriver we can connect to any HTML element in the browser. This is a huge step forward. We are able to inspect what is available on the screen, in the browser.
But coding in it is error prone. Any small change in the page layout and your test will fail because the element isn’t found anymore.
Another challenge is to keep your test code object oriented and readable. Since everything is a WebElement in your code, you must resort to encapsulation and page fragments to not end up with large test methods which are unreadable.

14 Feb 14

Arquillian is an awesome tool for testing java apps written in the EE ecosystem. It allows you to run your tests within the actual application server, so you don't have to mock your services or dependencies. Instead you use them exactly the same way you use them within your application.

However, because of the way Arquillian works with JUnit (as a special runner) you cannot use many JUnit's advanced features (there can only be one @RunWith annotation). Namely I was missing the ability to run parameterized tests or theories.

08 Nov 13

HTML5 introduces a great new element that can be used to draw arbitrary content on a pane: the canvas element. What has been a standard feature for fat client applications for decades is now introduced to the world of web applications. Web developers no longer need to use proprietary plugins to draw images or charts in their applications.

But when it comes for testing, this new feature imposes new challenges to the web development community. How to test that the canvas element is in an appropriate state at some point in time? Standard technologies like selenium focus on the markup that is generated by the web server and not on the pixels drawn on the canvas.

22 Oct 13

Hace poco ya vimos cómo ejecutar tests de integración con el soporte de Arquilian en aplicaciones Java bajo el entorno de CDI, el estandar de inyección de dependencias de JEE, y Weld, su implementación de referencia. En este tutorial vamos a hacer uso también de Arquilian pero para ejecutar tests de integración en aplicaciones java bajo un entorno OSGI.

15 Oct 13

Some time ago I came to the point where I need to do integration tests for my JEE applications at work. In JEE6 I tried several testing frameworks two years ago, but none of them works very well, so we decided to skip this point and continue with end users tests and JUnit testing. But I never gave up the search for an testing framework for JEE6.

03 Oct 13

In this third part of the JBoss Forge series, I will show you how to search and install plugins to extend the JBoss Forge functionality. After that we will use Forge to setup Arquillian and create an integration test for our webservice.

13 Sep 13

Hace poco ya vimos cómo ejecutar tests de integración con el soporte de Arquilian en aplicaciones Java bajo el entorno de CDI, el estandar de inyección de dependencias de JEE, y Weld, su implementación de referencia. En este tutorial vamos a hacer uso también de Arquilian pero para ejecutar tests de integración en aplicaciones java bajo un entorno OSGI.

06 Sep 13

I was looking for a simple solution to test @WebFilter servlet filters. The tests that I had used a lot of mocks, but really just left me unsatisfied. It was not a real world production solution. How would they "really" behave in the actual server environment. I had been using Arquillian to do some testing of our CDI layer, and decided to try it on filters.

03 Sep 13

his small blog is inspired from jersey 2.2 user guide, particularly section 1 :) .
The guide is just fine, featuring quite a number of examples enriched with explanations and references. While I was browsing through it I was thinking what if I change a bit the running environment with components I prefer for both developing and testing.

03 Sep 13

For a very long time, I heard quite a lot of people saying good things about Arquillian. Whilst I have been reading articles around its use, I couldn’t really find one that covers some of the aspects that I find important, all in a single article. Granted, I haven’t looked hard enough.

20 Aug 13

JUnit is probably one of the Top 5 Java open source tool developed by Java community. Until the IOC and Dependency Injection comes in to picture it is all well. But the moment containers taken care of injecting objects for you, the product development became lot easier. Now the programmers just need to describe how the Object should get created, your container will take care of injecting your Object. But on the downside, it makes the unit testing lot harder.

15 Jul 13

As part of our activities as an Alfresco partner, I have been spending some of my spare time outside of projects and sales support on getting development and integration tests working on Arquillian – a test framework based on JUnit and aiming to support real tests on real environments. I will try to document the various steps, problems, workarounds and solutions I have performed, encountered and come up with in a series of specific blog posts.

12 Jul 13

In the last post, we took a look at the server side of our OAuth2 system. In this post, we’ll take a quick look at the unit tests that will act as TheUser.

16 Jun 13

Today I’d like to share a short snippet how to achieve transaction rollbacks when testing an EJB in combination with Arquillian and the Arquillian Transaction Extension…

16 May 13

Arquillian ist ein von der JBoss Community entwickeltes Open Source Test-Framework für Java Enterprise Anwendungen und derzeit in Version 1.0.3 erhältlich. Mit Hilfe von Arquillian können Integrationstests für Java EE Anwendungen entwickelt werden, wobei uns die Ausführung auf einem Container (z.B. JBoss Application Server) abgenommen wird.

1 - 20 of 152 Next › Last »
20 items/page

Diigo is about better ways to research, share and collaborate on information. Learn more »

Join Diigo