Pratical Java™ Topics
Summary
The Java platform has many powerful capabilities to help developers in
the day to day tasks of creating good software systems. Some of this
are built into the langauge, and some are separate tools that have
become widely adopted because of their usefulness.
This one day course looks at the following three tools that can be of
enoromous 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 simpleifies writing and maintaing
test code. This course uses JUnit 4, and the Java 5 annotations
associated with it.
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.
All labs can be done with the Eclipse IDE or a simple editor, and the
lab instructions include detailed directions on both environments.
Course Objectives
On completion of this course, the student should be able to
Understand how ant and buildfiles work
Use ant to control a build; create buildfiles
Be familiar with testing and test-driven development
Use JUnit to create good testing structures for your Java code
Be aware of the different logging choices available in Java
Use the most popular Java logging frameworks to create good logging
structures
Length
1 Day
Format
50% hands-on, 50% lecture
Course Outline
ant: Basics
ant Overview
Installing and Running ant
Buildfiles, Projects, Targets and Tasks
Properties
Creating Build Files
Paths(e.g. CLASSPATH, PATH)
Resource Collections - FileSets, DirSets, Files, PatternSets
Other Resource Collections and Selectors
LABS:
Running ant
Creating and Using Buildfiles
Using Basic ant Tasks
Working with Paths
Using Resource Collections
ant: Tasks
Overview of ant Tasks
The Task in Depth
The Task in Depth
Creating Java Archives - jar, war, ear
File Related Tasks
Other Useful Tasks
LABS:
Working with javac and java
Creating Archives
Working With File Tasks
ant: Modularity
Properties Files
The Task and SubProjects
The Task For Importing Buildfiles
LABS:
Working With Properties Files
Creating Modular Buildfiles
JUnit: Basics
JUnit Overview, Test Driven Development
Tests and Assertions
Running Tests
Working With Exceptions
LABS:
Writing Tests
Running Tests
Testing Exceptions
JUnit: Organizing Tests
Writing Fixtures - @Before, @After
Test Suites
Other Capabilities
The ant Task
LABS:
Using Fixtures
Using Suites
Logging: Basics
Logging Overview
log4j Overview
Loggers, Appenders, Layouts
Configuring log4j
Using log4j
LABS:
Setting Up log4j
Using Basic log4j Logging
Logging: More On log4j
Logger Heirarchy
Logging Levels
Working With Appenders
Using PatternLayout
LABS:
Working With Loggers
Working With Appenders
Using Layouts
Logging: Other Logging Frameworks
Java Logging
Apache Commons Logging
Notice: Undefined index: HTTP_REFERER in /var/www/datadeliverance/inc/trademarks.inc on line 3
Notice: Undefined index: HTTP_REFERER in /var/www/datadeliverance/inc/trademarks.inc on line 4
Notice: Undefined variable: REMOTE_USER in /var/www/datadeliverance/inc/trademarks.inc on line 7
Notice: Undefined index: HTTP_REFERER in /var/www/datadeliverance/inc/trademarks.inc on line 7
Notice: Undefined index: printer in /var/www/datadeliverance/inc/trademarks.inc on line 11
Go to course catalogue
Oracle and Java are registered trademarks of Oracle and/or its affiliates.
PL/SQL and SQL*Plus are trademarks or registered trademarks of Oracle
Corporation. Microsoft is either a registered trademark or trademark of Microsoft
Corporation in the United States and/or other countries. MVS is a registered
trademark of the International Business Machines Corp. in the U.S. or other
countries or both. Motif, OSF/1, UNIX, and the "X Device" are registered
trademarks and IT DialTone and The Open Group are trademarks of The Open Group
in the U.S. and other countries. All other trademarks are the property of
their respective owners.