List of Listings – Agile ALM: Lightweight tools and Agile strategies

List of Listings

Chapter 4. Task-based development

Listing 4.1. The content of the start page (excerpt)

Chapter 5. Integration and release management

Listing 5.1. Basic POM

Listing 5.2. POM referencing a parent POM

Listing 5.3. Parent POM with central settings and multiple modules

Listing 5.4. Maven POM

Listing 5.5. A settings.xml file with server credentials and repositories

Listing 5.6. POM distribution management

Listing 5.7. POM configuring Wagon

Listing 5.8. Configuring credentials in settings.xml

Listing 5.9. Dependency resolution pointing to the repository

Listing 5.10. Repository settings with both staging and snapshot

Listing 5.11. Configuring SCM in project’s model (POM)

Listing 5.12. Maven Release plug-in in the project’s POM

Listing 5.13. Maven Enforcer plug-in ensuring no snapshots are used

Listing 5.14. Maven GPG plug-in signing files on every build

Listing 5.15. Maven Assembly plug-in

Listing 5.16. Assembly description file

Listing 5.17. Configuring Assembly as a profile

Listing 5.18. Maven Dependency plug-in to include Javadoc

Listing 5.19. Include the assembly as part of a release to update its version

Chapter 6. Creating a productive development environment

Listing 6.1. Different test groups with TestNG

Listing 6.2. Code to be tested with mocks

Listing 6.3. Code with dependency injection enabled

Listing 6.4. Your first sip of Mockito

Listing 6.5. The test for finding word feature

Listing 6.6. The test for keeping history feature

Listing 6.7. Using the @Mock annotation

Listing 6.8. Configuration of Cargo to use Tomcat

Listing 6.9. Configuration of execution

Chapter 7. Advanced CI tools and recipes

Listing 7.1. Generating bash script for uploading files

Listing 7.2. Generating touch script

Listing 7.3. Uploading artifacts by using FTP

Listing 7.4. A simple build script for .NET with MSBuild

Listing 7.5. Maven assembly plug-ins

Listing 7.6. Assembly for production (prod.xml)

Listing 7.7. Overriding default configuration in the POM

Listing 7.8. Accessing configuration properties

Listing 7.9. Profiles

Listing 7.10. POM with Cobertura, FindBugs, Checkstyle, and PMD configuration

Listing 7.11. A Maven profile activated by Jenkins

Listing 7.12. A Maven profile activated by Jenkins

Listing 7.13. Reading the version file

Chapter 8. Requirements and test management

Listing 8.1. TestNG test suite

Listing 8.2. Using data-driven tests with TestNG and its DataProvider

Listing 8.3. TestNG test class reading data from XML via XStream

Listing 8.4. Starting and stopping the Selenium server via Maven

Listing 8.5. Defining the tests in the POM

Listing 8.6. A simple TestNG test class, including Selenium

Listing 8.7. Integrating TestNG, Selenium, and XStream

Listing 8.8. Using profiles to decide which tests to run

Listing 8.9. Reading from Excel with POI

Listing 8.10. The Java fixture associated with the Fit HTML table (extract)

Listing 8.11. Calling the Fit application passing parameters (extract)

Listing 8.12. Integrating the Fit test into TestNG

Listing 8.13. Running TestNG with Ant (excerpt)

Listing 8.14. The TestNG mastersuite.xml defines which tests to run

Listing 8.15. TestNG test suite defining which tests to run

Listing 8.16. Providing Fit tests

Listing 8.17. Configuring Maven to include the Fit tests

Listing 8.18. Completed test page

Listing 8.19. GivWenZenForSlim script fixture

Listing 8.20. FlightSteps with default failing steps

Listing 8.21. Steps and flight

Listing 8.22. Delay flight with airport taxi time scenario

Chapter 9. Collaborative and barrier-free development with Groovy and Scala

Listing 9.1. Mixing Java and Groovy

Listing 9.2. Compiling Groovy with Maven

Listing 9.3. A Maven POM, written in Groovy

Listing 9.4. The CocaColaMachineSpec object

Listing 9.5. Specs2 in our example

Listing 9.6. Specs2 Forms in action

Listing 9.7. A Maven POM that includes Scala