Java testing frameworks
Java testing frameworks often require tools that monitor and can track errors and exceptions in a program and which can measure performance. In this section on Java testing frameworks, read about the latest Java software testing tools and frameworks and discover strategies for testing efficiently and economically.
Top Stories
-
Tutorial
30 Mar 2022
An example of how suppressed exceptions in Java work
Don't ignore suppressed exceptions. In this quick tutorial we show you how to anticipate when code will throw suppressed exceptions, along with the best practices to handle them. Continue Reading
-
Tutorial
30 Mar 2022
A simple 'try with resources' in Java example
Java's 'try-with-resources' exception handling feature can help you write better, more effective Java code. Here's a quick example of the try with resources construct in action. Continue Reading
-
Tutorial
30 Mar 2022
A simple 'try with resources' in Java example
Java's 'try-with-resources' exception handling feature can help you write better, more effective Java code. Here's a quick example of the try with resources construct in action. Continue Reading
-
Video
19 Jun 2019
5 Java test frameworks and tools JDK developers must know
Java testing tools can ensure you release a product that's been carefully examined for bugs and errors. Here are five frameworks that can lighten that testing burden. Continue Reading
-
Feature
14 May 2018
Automated Java testing tools source code developers need to know
How do Selenium, Junit, Grinder and other automated testing tools work? This guide to explains how these tools work and what you can learn from them for Java unit testing, integration testing, load testing and more. Continue Reading
-
Feature
20 Nov 2017
How to solve JavaScript and Java performance issues
Given the complexity of client side user interfaces, along with the often limited processing power of many mobile devices, finding out ways to address JavaScript and Java performance challenges is a priority. Continue Reading
-
Feature
28 Aug 2017
Improve your user engagement metrics with emotional analytics
Find out how new emotion analytics algorithms are bringing feeling, emotional connection, and engagement to modern apps. Continue Reading
-
Opinion
12 Aug 2016
Could someone please provide a proper toString() method implementation?
Why is it that twenty years after the release of Java, the lapidary toString() method still spits out nothing more than a useless hashcode? Continue Reading
-
Tip
18 Mar 2016
Automated acceptance testing pitfalls to avoid
How can organizations get the most out of their software testing with the least amount of effort? Here are some best practices on how to sidestep these common automated acceptance testing traps. Continue Reading
-
Feature
02 Dec 2015
How to build an application integration framework for flexibility
Learn how MOBI Wireless created a back end infrastructure that makes it easy to implement different business workflows across service providers. Continue Reading
-
Feature
17 Jun 2015
Six Steps to Accelerating Mobile App Testing
With software testing being one of the most time consuming steps in the application lifecycle management (ALM) process, everyone is looking at ways to speed up testing. In this article, we look at six ways to accelerate mobile application testing. Continue Reading
-
Tutorial
04 May 2015
How to invoke a JSF managed bean asynchronously through JavaScript
Sometimes great frameworks like JSF, Wicket or Spring MVC make simple tasks surprisingly difficult to do. With JavaServer Faces, the simple task of invoking a method on a managed bean is actually a bit of a chore. In this tutorial, we tackle that chore together. Continue Reading
-
Feature
25 Mar 2015
Cloud computing and AWS form perfect test beds for the risk averse
Risk aversion is a cornerstone of the enterprise computing community. Do no harm is philosophy that goes beyond medicine's Hippocratic oath. But the risk averse can now safely try new technologies by using cloud computing options and AWS. Continue Reading
-
Feature
30 Jan 2015
AngularJS: A JavaScript framework built with software testing in mind
Modern development methodologies rely heavily on testing and testing frameworks. Of course, testing frameworks are quite mature in the Java and .NET world, but they have been nascent in terms of JavaScript. Here's what's new in the world of JavaScript testing. Continue Reading
-
Tutorial
19 Jul 2014
An introduction to template building with Facelets, CSS, HTML and JSF 2.2
Facelets is a great technology for creating templates for websites and then adding dynamic functionality. In this tutorial, we will introduce the idea of creating a template page with CSS, HTML, JavaScript and JavaServer Faces 2.2 (JSF). Continue Reading
-
Tip
05 Jan 2014
With Java EE 7, your Design Patterns are dead. And your EAR is ugly too.
Adam Bien isn't without opinions when it comes to modern day enterprise programming techniques. From the use of design patterns, to the manner in which projects and modules are divided, Bien isn't without opinions when it comes to developing Java applications. Continue Reading
-
News
23 Sep 2013
Java development and application lifecycle management collide at JavaOne
There is an intersection between Java development and application lifecycle management, but at JavaOne this year, the ebb has flowed away from ALM, as the conference focuses largely on the technical side of things. Continue Reading
-
Tutorial
22 Jul 2013
Enums versus Exceptions: An new, Agile approach to application error handling
As Agile teams recognize the overhead of using throwable objects, the enums versus exceptions debate is beginning to rage, but smart developers know that using enums means better error handling. Continue Reading
-
Tip
05 May 2013
Tomcat performance optimization through consolidated log file handlers
By default Tomcat uses several log file handlers, but performance can easily be optimized by configuring the server to use only one. Continue Reading
-
Feature
10 Jan 2013
How NoSQL, MySQL and MongoDB worked together to solve a big-data problem
Choosing between schemaless NoSQL databases and strong-schema relational designs isn't an either-or decision, as this case study points out. When dealing with their big data problem, Craigslist decided that their MySQL servers could use a little help from MongoDB, and putting the two technologies together created a better system with greater availability, scalability and performance. Continue Reading
-
Feature
16 Nov 2012
Cloud Deployment Testing: Leveraging PaaS, Saas and IaaS
Many challenges arise when it comes time to deploy your applications, and if deployment goes wrong, the problems are incredibly visible to both the users and upper management. But with cloud computing, there is a better way to smooth out the deployment process. Continue Reading
-
Feature
01 Nov 2012
Application lifecycle management: Best practices for improving the deployment process
Nothing is more visible to both clients and senior management than an applications that doesn't work. And the risk for failure is never higher than it is the moment after deployment. So how do you ensure deployment always goes smoothly. There is no silver bullet, but there are some best practices for deployment, which we will examine in this article. Continue Reading
-
Tip
24 Oct 2012
Consistent application performance: It's not always about speed
When developing applications, the response time is always an important metric. But inconsistent response times can often be more aggravating than slow sites. Make sure you take response time consistency into your application performance reviews. Continue Reading
-
Tip
24 Oct 2012
How to articulate and define performance requirements
Don't fall into the trap of failing to define performance requirements for your applications early on in the application lifecycle. If you follow this quick tip, you'll find that articulating your performance requirements isn't that hard. Continue Reading
-
News
01 Oct 2012
JavaOne conference coverage 2012
Join TheServerSide.com and SearchOracle.com as we present conference coverage from JavaOne and Oracle OpenWorld. Continue Reading
-
Feature
23 Aug 2012
How cloud computing is impacting enterprise Java developers
How do cloud computing technologies impact the day-to-day development patterns of typical Java developers? Continue Reading
-
Feature
25 Jul 2012
Discovering the right metrics for scalability testing
Scalability testing is perhaps the most important test you need to run on your application before going forward with deployment. But how do you know when you've proven that your application can scale. Here we take a look at some of the most important metrics to measure when testing the scalability of your applications. Continue Reading
-
Feature
31 May 2012
Why Java applications fail to scale linearly: A simple explanation
The process of scaling up Java applications often runs into the problem of diminishing returns, where adding another processor no longer adds significant benefit. Why won't Java programs scale? Here's your answer. Continue Reading
-
Tip
26 Jan 2012
Java 7 and the intricacies of safe and unsafe casting
One of the problems with casting is that it does have the potential to cause a loss of precision, especially if the number that gets cast does indeed fall outside of the range of the target type. Here we will explain why this happens. Continue Reading
-
Tutorial
12 Jan 2012
New Java 7 Features: How to Use a More Precise Rethrow in Exceptions from Project Coin
Afficionados of other languages such as Scala or Clojure are always slagging the fact that Java is too verbose and cumbersome. So, it's not too surprising to find out that Java 7 introduced a number of new facilities that can help to trim down the code an application developer is required to write. Continue Reading
-
Feature
21 Dec 2011
Embedded software patterns for more than just embedded systems
Embedded software patterns have a lot to offer any software engineer who routinely faces serious resource constraints. Continue Reading
-
Tutorial
11 Nov 2011
Writing Java code in the cloud
The road bumps one experiences when they drive towards cloud computing can be avoided, especially when one has the opportunity to learn from the experiences of those who have gone before. Continue Reading
-
Feature
30 Nov 2010
Applying control theory concepts in software applications
Control theory is a discipline originated in mathematics and engineering science but was adopted also in psychology, social sciences and other research domains. It deals with influencing the behaviour of dynamical systems. In this article it is shown that concepts of control theory can also be applied to software architectures that have a need for controlling dynamical behaviour. Software applications that react to external input in form of GUI requests, batch input or service calls are in deed dynamical systems whose behaviour depends on current event, environment and actual system state. Continue Reading
-
Tip
23 Aug 2010
12 Best Practices for Optimizing the JBoss EAP Platform
Looking to improve the performance of your JBoss EAP Platform? Here are a few tips that'll help you optimize your distibuted JBoss infrastructure. Continue Reading
-
News
28 Sep 2009
SAML: It's Not just for Web services
SAML is an XML-based standard for exchanging authentication and authorization data between security domains. The single most important problem that SAML was created to solve is the Web browser Single Sign-On problem. Today, many organizations debate whether to stay with version 1.1 or move to 2.0. This article makes observations about both options. Continue Reading
-
News
01 Sep 2006
Testing Concurrent Programs
Writing correct concurrent programs is harder than writing sequential ones. This is because the set of potential risks and failure modes is larger - anything that can go wrong in a sequential program can also go wrong in a concurrent one, and with concurrency comes additional hazards not present in sequential programs such as race conditions, data races, deadlocks, missed signals, and livelock. Continue Reading
-
News
01 Jun 2006
Testing a persistent domain model
Some developers treat testing in the same way I treat flossing: It's a good idea but they either do it with great reluctance or not at all. Continue Reading
-
News
01 Jun 2005
Tuning Your Stress Test Harness
Have you ever had to stress test an application only to discover that you couldn't make sense of the results? If you have been in this situation or you are about to embark on a stress testing exercise, here are a few things that you need to consider. Continue Reading
-
News
01 Apr 2005
Unit-Testing Hibernate With HSQLDB
Unit-testing should have as few barriers as possible. For relational databases those barriers range from external dependencies to speed to keeping the relational schema synchronized with your object model. For these reasons it is vital to keep database access code away from the core object model and to test as much as possible without touching a real database. Continue Reading
-
News
01 Jan 2004
Test-Driven Development Series Part 2 - Testing Java Classes with JUnit
The first article is a concept piece explaining why testing helps in an enterprise server-side software environment. Most software applications today are written in tiers: the presentation tier, the logic tier (where business logic is kept), and the data tier. The logic tier is the meat of the application and comprises all of the rules and actions of the application. Continue Reading