Index_J


J

J2EE. See also Hello World Model 2 example
components , building with Ant and XDoclet
Eclipse, 157167
filters (Ant), 154
generating deployment descriptors, 152154
init-params (Ant), 154
properties (Ant), 154
servlet example, 145150
taglibs , 154157
webdoclet tags, 150152
components supported by, 1112
deployment, 1213
enterprise application deployment, 125126
integration testing, 344
advantages, 344345
disadvantages, 345
servlet engine compliance, 110
J2EEUnit. See Cactus
JAR applications, 76
jar element (Maven), 466
JAR files (Java ARchive files), 1314. See also EAR files
applets, 1415
creating
enterprise beans project, 125
in master buildfiles , 125
EJB deployment, 257258
executable, 15
manifest files, 13
Web browser support, 1415
jar task (Ant), 63, 545546
Java ARchive files. See JAR files
Java Management Extensions (JMX), 496
java task (Ant), 542543
java.awt.Robot class, 447
javac task (Ant), 543544
Javadoc, 131133. See also XDoclet
comment blocks, 132
tags, 132133
JBoss, 105
JButtonOperator (Jemmy), 428
JButtons, testing
Jemmy, 427429
jfcUnit, 440441
jcoverage
advantages, 409
as Ant task, 411416
check task, 412
instrument task, 412
jtestrun task, 412
merge task, 412
report task, 412
basic block coverage, 411
branch coverage, 411, 417419
downloading, 409
exception handling, 419421
function coverage, 411
instrumentation, 409
byte-code , 410411
with modified JVMs, 410
source code, 410
as Maven plugin, 416
path coverage, 411
race coverage, 411
relational operator coverage, 411
setting percentage goals, 422
statement coverage, 411, 417
writing complete tests, 421422
JDialogOperator (Jemmy), 433
JDialogs, testing
Abbot, 453454
Jemmy, 431433
jfcUnit, 444445
jdodoclet task, 141
Jelly, 472474
adding Ant tasks to Maven with, 473474
downloading, 473
pet store example, 485
tag libraries, 472473
Jemmy, 425426
button test example, 427429
dialog test example, 431433
downloading, 425
exception handling, 426
JFrameOperator, 426
non-blocking variants, 432
primary frames , finding, 426427
selecting tabs, 428
supressing output, 436
table test example, 429431
timeouts, 433436
JFCTestCase class (jfcUnit), 438
jfcUnit, 437
advantages, 445446
button test example, 440441
ComponentFinder class, 439
dialog test example, 444445
downloading, 438
Finder class, 438
JFCTestCase class, 438
RobotTestHelper class, 438
selecting tabs, 440
table test example, 442443
TestHelper class, 438439
JFrame objects (Jemmy), finding, 426
JFrameOperator (Jemmy), 426
JMenuBarOperator (Jemmy), 432
JMeter
controllers, 321322
logic, 321
testing, 321
downloading, 319
incorporating JUnitPerf with, 274275
launching, 322
listeners, 321322, 325
overview, 319320
pet store form entry test
adding products, 328329
editing products, 332334
running, 329332
pet store navigation test
controller, setting up, 323325
graphing test data, 327
listeners, adding, 325
running, 325
ThreadGroup, setting up, 322323
timer, setting up, 325
tracking session information, 326327
pet store RDBMS test, 334335
relative worth testing, 337
saving tests, 333
TestPlans, 320321
ThreadGroups, 320, 322323
threads, 321
timers, 321, 325
WorkBench node, 321
JMX (Java Management Extensions), 496
jmxdoclet task, 141
JNDI API interface (enterprise beans project), 109110
accessing, 110
loading properties, 111
JSP
custom tags, 371372, 388390
attribute testing, 373375
body tag testing, 376377
BodyContent object, testing with, 380
iteration tag testing, 378379
simple tag test, 372373
tag library descriptor testing, 257259
TagExtraInfo classes, 384
nested tags, 381384
testing, 371
JspTestCase class (Cactus), 351
JspTestCases (Cactus), 371, 615616
attribute testing, 373375
body tag testing, 376377
iteration tag testing, 378379
JTabbedOperator (Jemmy), 428
JTabbedPaneOperators (Jemmy), 426427
JTableOperator (Jemmy), 430
JTables, testing
Abbot, 452453
Jemmy, 429431
jfcUnit, 442443
jtestrun task (Ant), 412
JUnit. See also unit testing
Ant integration
junitSample project, 229234
setting up JAR files, 229
decorating tests, 264
downloading, 222
EJBs, ProductTest code, 248250
IDE support, 250
nesting tests, 272
overview, 222223
reports
detailed report, 230231
output directory, 242
publishing to Web sites, 232
summary report, 230
test cases, 223
defining classes, 225
defining tests, 226227
HashMapTest example, 223228
overriding setUp(), 225
VectorTest, 223
writing, 223
test fixtures, 223
test suites, 223, 227228
junit task (Ant), 551552
junit.extensions package, 600
junit.framework package, 585
JUnitPerf, 263264
decorating tests, 264, 275276
downloading, 263
incorporating other tests with, 272
HTTPUnit, 273274
JMeter configuration, 274275
running combined tests, 275278
load tests, 264, 271272
Loop test case
creating tests, 264268
running, 269271
test data, 268
nesting tests, 272
timed tests, 264
junitreport task (Ant), 552553
junitSample project
buildfile, 229230
reports
detailed report, 230231
publishing to Web sites, 232
summary report, 230
test target, 229230



Professional Java Tools for Extreme Programming
Professional Java Tools for Extreme Programming: Ant, XDoclet, JUnit, Cactus, and Maven (Programmer to Programmer)
ISBN: 0764556177
EAN: 2147483647
Year: 2003
Pages: 228

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net