Skip to main content
View by: Most Recent | Topic | Community | Webloggers   
Monthly Archives:    

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

In this article we coax the JVM's Rhino (an elusive, misunderstood, and ignored member of the 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 ! Let me set the context with some quick code: ScriptEngineManager sem = new ScriptEngineManager(); ScriptEngine jsEngine = sem.getEngineByName("...
on Jan 25, 2012
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. Neal took a pile of source code and fed it into Wordle. The result was a word cloud that visualized...
on Jan 9, 2012
A few weeks ago I updated my age to be a factor of 2 and 5.  It is the perfect age to reflect what life is all about.  Some men don a leather jacket and ride around on a Harley.  But as a geek I know exactly where to turn - my beloved computer.   I needed a long-running method for the new concurrency course I am writing.  Something that would take about 15 seconds and...
on Dec 22, 2011
If you, like me, need to build libraries that need to be tested against a live server (integration tests), here's what you can do. Have all your integration tests either in seprate "itest" packages, such as my.library.itest, or have the test classes end in ITest, such as my.library.ConnectITest. In the main section, have the surefire plugin exclued running the integration tests:  ...
on Apr 21, 2011
Meanwhile I am looking back to more than 25 years of programming, and more than a decade I spent in a very sensible area where quality (in the sense of zero failures) plays a big role. So call me "sensible" for quality. For long years "we" (i. e. developers) had hard work to do using simple command lines tools like vi etc., but meanwhile there are great, even free,...
on Dec 29, 2010

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...
on Jan 13, 2012
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.  I must confess that I derived a...
on Jan 12, 2012
Hello guys, This post reflects a thought around a case that I have been experiencing. There a lot of things that involves implementing a spec and one of them is that you need to guarantee that you are not exposing more than it is available on the Javadoc. There are a few static factory methods and no constructors, means public and protected, in our Javadoc scenario. So, you need to guarantee,...
on Apr 13, 2011
How would you mock your services which are not mock-friendly? Let’s introduce a real case (the bad one) with some preconditions: You have a service where DAOs are wired at runtime based on the some conditions. DAOs lookup API is private and not exposed to the caller In this case you will be blocked from mocking those DAOs because of such approach. The solution I came up with was to tweak the...
on Apr 7, 2011
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...
on Dec 21, 2009

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. Automated...
on Apr 20, 2011
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...
on Jul 23, 2010

Databases

Accessing MySQL from Embedded GlassFish .ln { color: rgb(0,0,0); font-weight: normal; font-style: normal; } .s0 { color: rgb(128,128,128); } .s1 { } .s2 { color: rgb(0,0,255); } .s3 { color: rgb(128,128,128); font-weight: bold; } .s4 { color: rgb(255,0,255); } .s5 { color: rgb(0,0,128); } Using MySQL database with GlassFish is nothing new. However I just wanted to share a small note on how I...
on Apr 4, 2011
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...
on Oct 14, 2010

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>   ...
on Mar 6, 2011

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 all services bellow via the REST Web services :     - Appointment Manager - Conference Manager - Paper reviews and approval Manager - Profile Manager - Registration Manager - Sponsorship...
on Jan 2, 2011
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...
on Nov 24, 2009

Accessibility

My name is Haim Michael, I am the General Manager for Zindell Technologies and I am an eternal student and a lecturer. I chose to develop the abelski web site for the benefit of all people world wide. I have started to develop it in November 2007 and I continuously update its courses and add new ones. All courses on this web site are available for free personal and academic usage.  The...
on Oct 4, 2010

GUI

In the last installment of my post, I briefly described how to do Test Driven Development (TDD) in JavaFX using Model-View-Presenter (MVP) pattern. In this installment, I illustrate this particular piece in detail and provide working code samples. You can download the code here (Caution: 6.7 MB download). The download is a zip file containing all 4 Netbeans projects. The code is tested with...
on Jul 7, 2010
In spite of the cool animation and glamour power of JavaFX, the largest usage of JavaFX will be for building “boring” enterprise software combined with some visualization. There is a dearth of resources exploring architecture options for building serious and large applications using JavaFX. This blog post is an attempt towards addressing that gap. An enterprise JavaFX project can be a...
on Jul 1, 2010