Course code Title Language Price # Unit Startdate Hour Enddate Location Signup
JVN003 Practical Java on your request on your request Contact Us

Practical Java

Practical Java

Overview

Course code: 
JVN003
Duration: 
1
Time Unit: 
Day(s)
Overview: 

This one day course looks at three tools that can be of enormous help to programmers that are writing Java systems: ant, a Java-based build tool that uses XML configuration files to control the build, JUnit, a testing framework that simplifies writing and maintaining test code, and logging with log4J, commons logging, or java logging, logging packages that make logging efficient and easy to use. These technologies are very powerful, yet it is easy to learn the basics in a very short time. This one day course provides those basics, and gives programmers the experience necessary to use these tools to be more productive and create better software systems

Topics

Topics: 

Introduction to ant

What is ant?
A Simple Buildfile
Installing and Running ant
Acquiring ant
ant Installation
Running ant
Command Line Options
ant Basics
ant Buildfiles and Projects
ant Targets
A More Complicated Buildfile
ant Tasks
The Task
The and Tasks
A Complete Buildfile
Running our Buildfile
How is ant Useful?
Working with Properties
Built-In Properties

Working with Paths and Resource Collections

Paths
Path-Like Strutures
Specifying the Classpath
Nested Element
Resource Collections
Patterns
Nested and
Other Use of
Using

ant Tasks

and
- Specifying Source Files
- Compiler Options
- Passing Argument
- Forking and JVM Arguments
Other Tasks
Creating Archives with
Creating Web Archives with
Other Archive Tasks
File Related Tasks
Other Useful Tasks
Including New Tasks

ant Modularity

Properties Files
- Importing Another Buildfile
Buildfile Defining Common Targets
Buidlfile Importing Another
- Invoking Another Building
Using

JUnit

JUnit Overview
Testing Overview – Unit Testing
Writing JUnit Tests
What is a Unit Test
The org.junit.assert Class
The Assert Class and Static Imports
Writing Tests
Testing for Exceptions
Running the Tests
The Result and Failure Classes
What to Test

Organizing Tests with JUnit

Fixtures and Suites
Test Fixtures
Test Suites
ant Task
Output
Setting Up ant for Using

Introduction to Logging & Log4J

Logging Overview
Apache Log4J Overview
Using Log4J
Configuring Log4J
Loggers, Levels, and Appenders
Log4J Loggers
Using Loggers
Log4J Appenders
Configuration File Details
Configuring Appenders and Loggers
Logger Hierarchy
Configuring Logger Levels
Level Inheritance
Log4J Appenders
Configuring Appenders
Appender Additivity
Layouts
PatternLayout
HTMLLayout
About Categories and Priorities
Other Details
Disabling Debugging and Performance
Java Logging
Apache Commons Logging

Prerequisites

Prerequisites: 

A working knowledge of Java.

Audience

Audience: 

Programmers interested in fine-tuning their Java skills, increasing their productivity, and creating better software systems.