Articles Section Index | Page 4
Files and Directories in Java
Java contains a lot of useful utility packages. One is java.util with its lists, maps, and calendar stuff--a lot to look into and use in your applications. Another package, java.io, contains what y...more
Files and Directories in Java | Directory Structure
For testing our programs we need a simple directory structure, with a few files and a few directories. Something along the lines of this:
Files and Directories in Java | HTML Output
Outputting results to System.out is not actually cutting edge technology, so let's consider showing the directory structure in some other formats. In the first one we'll present the output as an HT...more
Files and Directories in Java | The MyDir Class
The class for the directory is also rather simple, but this class also has to keep track of the files and directories it contains. Let's use two Vectors for this purpose. Since the code is so simpl...more
Files and Directories in Java | XML Output
If you show this jsp-file in an XML-aware browser like Microsoft Internet Explorer 5.5 you'll get this picture:
Load Testing with Apache JMeter | Measuring Web Services Response Times
The next application to test is from the article "Using Apache Axis version 1 to build Web Services". It’s currently not possible to record a web service (SOAP) application automatically so w...more
Load Testing with Apache JMeter | Recording a Use Case
One of the really useful features in JMeter is its ability to record what you do in your browser. If you want to make a test plan for a use case, where a user working with her browser goes through ...more
Load Testing with Apache JMeter | Remote Testing
The final application that we’ll test is a mixture of the two others, it’s a browser application using Struts to invoke the DVD web service system we have just tested. The response time...more
Load Testing with Apache JMeter | Resources
JMeter is an excellent tool for performing load testing, mainly because it’s so easy to use. You must however be prepared for minor bugs, and also allot enough use time for setting up a prope...more
Load Testing with Apache JMeter |Recording a Scenario
Now we’re ready to go. First we’ll record a scenario from the article "Coding your second Jakarta Struts Application". If you’re interested in using this application yourself you&...more
Unit Testing Java Programs
Testing programs can be very boring. Especially testing other people's programs. And especially if you're a programmer. But programmers love to write programs, so why not let the programmers write ...more
Unit Testing Java Programs | Collecting Test Cases
During the development of a web-project you'll build more and more test cases, which all may be run individually, but often you'll want to run more or all of them in one go.
Unit Testing Java Programs | Junit
JUnit is a Java open source project which offers an extremely useful framework for unit testing.
Unit Testing Java Programs | The Round Class
For the Round class we'll need a method--newScore--to enter the strokes for the hole we've just played. To get the current score we define a method called currentScore.
Writing Servlet Filters
Filters are an under-appreciated feature of the Java servlet platform, ideal for writing components that can be added transparently to any web application. A filter is like a lightweight servlet th...more