Blogs by topic: Testing
| • Accessibility | • Ajax | • Blogging | • Business | • Community |
| • Databases | • Deployment | • Distributed | • Eclipse | • Education |
| • EJB | • Extreme Programming | • Games | • GlassFish | • Grid |
| • GUI | • IDE | • Instant Messaging | • J2EE | • J2ME |
| • J2SE | • Jakarta | • JavaFX | • JavaOne | • Jini |
| • JSP | • JSR | • JXTA | • LDAP | • Linux |
| • Mobility | • NetBeans | • Open Source | • OpenSolaris | • OSGi |
| • P2P | • Patterns | • Performance | • Porting | • Programming |
| • Research | • RMI | • RSS Feeds | • Search | • Security |
| • Servlets | • Struts | • Swing | • Testing | • Tools |
| • Virtual Machine | • Web Applications | • Web Design | • Web Development Tools | • Web Services and XML |
Programming
We coax Rhino (an elusive, misunderstood, and ignored member of the Java ecosystem) into a mind meld, giving it access to the JVM's thoughts, experiences, memories, and knowledge; and take it where no rhino has gone before!
I mentioned the idea to use Wordle as an execution profiler while presenting the profiling section of my performance tuning course in Paris last December. The idea was seeded by presentation that Neal Ford did a few years ago in which he used Wordle to expose the vocabulary of a Java application. Instead of vocabulary, I wanted to see if Wordle could be used to visualize an applications dominate behavior.

A couple of weeks ago, I sent out a little quiz to my readers of The Java Specialists' Newsletter. No one managed to figure out what the code does without running it. Some managed to explain the result once they had run it. Perfect quiz for weeding out those job applicants you don't like. Especially if you are working in the banking industry. OK, enough hints, let's look at the quiz :-)

Here's a tip on how to separate unit tests and integration tests in maven and using profiles to decide which to run (on command line or within NetBeans).

These days I got a feeling as if professional software products get worse with every release. One cause is a fatal misunderstanding of best practices by the big stakeholders. Looking at their current products, one should ask them to "Release Late, Release Rarely"!
Testing

In the previous articles we have concentrated on testing using Glassfish. But can you use the same
recipe to do testing on Weblogic. The answer is YES, but ..... Yea you know there is always a caveat.
First make sure you have Weblogic installed properly. Note I did the testing with the latest 12c version,
so your mileage may vary.
Download the attached zip file again and follow along. In...
Today I decided it was past time to reorganize the slides in the performance testing section of the course. I added a number of new diagrams and charts to help organize the materials and then I went back and started to review some of the definitions that I was using. First up was the question; what is performance testing and how is it related to load testing

An interesting case of creating a unit testing in order to guarantee that a class in a Javadoc specification does not exposures public and protected constructors but only its static factory methods.
How would you mock your services which are not mock-friendly?
Let’s introduce a real case (the bad one) with some preconditions...

As the year draws to a close, I wanted to give everyone a heads-up about some of the Wakaleo training sessions already lined up for 2010.
The next big training dates are in Europe - in collaboration with Skills Matter, I will be running the Java Power Tools Bootcamp in London (February 15-19) and Paris (February 22-27), and then in Wellington in March (March 22-26). I'm also lining up sessions...
Extreme Programming

Wakaleo Consulting is pleased to announce that we are bringing our popular TDD/BDD courses to Europe, in a convenient online format!
Fundamentals of Test-Driven Development in Java: This course covers both fundamental TDD/BDD practices, tips and tricks, and also how to apply them effectively with the latest Java tools, including JUnit 4.8, Hamcrest, Infinitest, Mockito and Spock...

In the previous installment of Effective Architecture, I covered TDD with Model-View-Presenter. However the code I presented had synchronous server calls. In JavaFX (like Swing), the UI code runs in the Event Dispatch Thread (EDT). It is unwise to block the EDT. Hence it is encouraged to execute all server calls on a separate thread.
SwingWorker
Swing provides SwingWorker to execute tasks off the...
Databases
Using MySQL database with GlassFish is nothing new. However I just wanted to share a small note on how I used MySQL DB from GlassFish which is embedded in my test. Life is much easier when I am able to run the test without having pre-installation of GlassFish/MySQL.

Automated functional tests are key to ensure the quality of large applications in incremental development processes. In contrast with unit tests where each test is supposed to be independent from the outside environment, functional tests are really integration tests: in order for them to run properly the process must start from a well known state.
The majority of enterprise applications use a...
Servlets
To start using Embedded GlassFish Server Open Source Edition 3.1 in your Maven project, all you need to do is to have the following configuration in your pom.xml:
<project>
...
<packaging>ear|ejb|jar|rar|war</packaging>
...
<build>
...
<plugins>
<plugin>
<groupId>org.glassfish</groupId>...
Community

In JUG-AFRICA we started an Open Source project to manage the BIG ANNUAL EVENTS for our JUGs. The first release will be available in the early second half of January.
The application will provide a lot of services via the REST Web services.

There was a bunch of good things to see at this years Devoxx. My personal highlights are ScalaTest (you definitively want to look into this when testing concurrency in any java code ... the best way to test different race scenarios I've seen so far).
Another highlight was the amount of work done on JavaFX yet. The new UI for the clickable gui builder shown briefly by Tor ... surely you remember...
Accessibility
The www.abelski.com web site offers free (for personal and academic usage) courses about various topics in software development. The site focuses on Java technologies.
GUI

How to do Test Driven Development (TDD) with JavaFX using Model-View-Presenter pattern? In this installment of Effective JavaFX Architecture, I address this question with all the details and working code samples.

Effective JavaFX architecture is not an easy task. Designing testable JavaFX applications that are beautiful inside-out requires serious thought and some experience. Or you could read this blog series :-)






