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
By- Cameron McKenzie, TechTarget
-
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
By- Cameron McKenzie, TechTarget
-
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
By- Cameron McKenzie, TechTarget
-
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
By- Cameron McKenzie, TechTarget
-
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
By- Cameron McKenzie, TechTarget
-
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
By -
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
By- Tom Nolle, Andover Intel
-
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
By- Cameron McKenzie, TechTarget
-
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
-
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
By- Cameron McKenzie, TechTarget
-
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
By -
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
By -
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
By- Cameron McKenzie, TechTarget
-
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
By -
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
By- Cameron McKenzie, TechTarget
-
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
By- Randall Nagy
-
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
By- Lukas Stewart
-
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
By- Cameron McKenzie, TechTarget
-
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
By -
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
By- Cameron McKenzie, TechTarget
-
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
By -
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
By- Lukas Stewart
-
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
By- Cameron McKenzie, TechTarget
-
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
By -
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
By- Cameron McKenzie, TechTarget
-
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
By- Cameron McKenzie and Sal Pece
-
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
By- Sal Pece
-
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
By -
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
By- James Denman
- Cameron McKenzie, TechTarget
-
News
26 Oct 2011
Spring 3 testing with JUnit 4
Looking on the Internet for a way to test my Spring 3 application, I found many articles that describe how to test your application by using JUnit. Most of them are incomplete examples that do not really work. With this article I will try to fill this gap and write a concise yet simple article on how to test a spring 3 application with JUnit 4. Continue Reading
-
News
25 Oct 2011
Injecting mock beans Into Spring context
Today I was Googling about mocking when I found the following question: "Injecting mock beans into Spring context for testing. What I want to be able to do is via the HotswappableTargetSource, override the bean definitions of select beans in my application context with my test versions and then run the test. Then, for each test case, I'd like to specify which beans I want to be hot swappable and then each test must be able to create its own mock versions and swap those in, and be able to swap back again." Continue Reading
-
News
07 Oct 2011
JavaOne 2011: Mark it up as a success
Last year a cloud of gloom hung over the three or four San Francisco hotels in which Oracle had sliced, diced and distributed all of the JavaOne sessions. There was a clear and palpable feeling of distrust and uncertainty that permeated the on-goings, and a typical sentiment was 'JavaOne was a lot better when Sun was running it.' Continue Reading
-
News
06 Oct 2011
Java on the iPhone at JavaOne. But would Apple ever allow it?
In an effort to demonstrate just how far the tentacles of their new HTML5 based strategy will reach, Oracle's Cameron Purdy and Adam Messinger demonstrated the deployment of a cross-platform application, written of course in Java, that would run on Windows based machines, machines running that operating system that shall not be named at any Oracle conference, and finally, to everyone's delight: iOS. Continue Reading
-
News
20 Sep 2011
Don't rewrite your application
When stuck with a legacy code base you'll hear the claim "We'll have to rewrite this from scratch in order to fix it!" It sounds promising. You start with a clean slate. You can do all the good stuff without all the mistakes. The only problem: It doesn't work. Here is why. Continue Reading
-
News
26 Aug 2011
How many bugs do you have in your code?
If you follow Zero Bug Tolerance, of course you’re not supposed to have any bugs to fix after the code is done. But let’s get real. Is there any way to know how many bugs you're missing and will have to fix later, and how many bugs you might already have in your code? Are there any industry measures of code quality that you can use as a starting point? Continue Reading
-
News
18 Aug 2011
PIT 0.21 Mutation testing for Java released
PIT is a code coverage system for Java that goes much further than traditional tools and checks not only that your code is exercised, but that it is actually tested. PIT achieves this via mutation testing - a technique that has been studied in academia for some time, but has not so far seen widespread commercial use. Continue Reading
-
News
12 Aug 2011
New Tasktop Sync unifies heterogeneous ALM stacks to ease large-scale Agile deployments
Tasktop Sync is a new product that allows IT organizations to synchronize existing ALM servers from multiple vendors and open source projects. Organizations with mixed and best-of-breed ALM stacks, including HP ALM and HP Quality Center, IBM Rational Team Concert, and two dozen other leading Agile and open source tools, are able to achieve traceability and reporting across the tools used for Agile planning, software development and quality management. Continue Reading
-
News
11 Aug 2011
Selenium PageObjects introduction screencast now available
Selenium PageObject is a software and test development pattern to represent Web pages or parts of Web pages. PageObject is an approach to building test scripts that break when the application changes. For Test Case developers and testers, PageObjects brings a component approach to organize test code and avoid having to always focus on the implementation details. Continue Reading
-
News
19 Jul 2011
Compuware Pushes dynaTrace to get their APM 4 Product out the Door
Okay, maybe the whole 'pushing' thing isn't quite the truth. Maybe there wasn’t any ‘strong arming.’ And the release of version four less than a month after the Compuware acquisition is purely coincidental. But it has been about two years since the previous dynaTrace release. It does beg the questions as to why version four has taken this long to come along. Continue Reading
-
News
21 Jun 2011
Not doing Code Reviews? What’s your excuse?
All of us have known for a long time that code reviews find defects, and that reviews are cheaper and can be more effective than most kinds of testing. In Code Complete, Steve McConnell builds an overwhelming case for code reviews: disciplined code inspections can find between 45%-70% of all defects in code, while even fast, informal reviews can find 20%-30%. 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
By- Dr. Wolfgang Winter
-
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
By- Ruchir Choudhry
-
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
By- Frank Teti
-
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
By- Brian Goetz
-
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
By- Chris Richardson
-
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
By- Kirk Pepperdine
-
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
By- Alex Vollmer
-
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
By- Wellie Chao