Skip to end of metadata
Go to start of metadata

Getting Started

Downloading, Installing and Running

Up and Running

Some of the Groovy Modules

    • Ant Scripting
    • Groovlets
    • Groovy Beans
    • Groovy Templates
    • GroovyMarkup
    • CLIBuilder

The basics

Language basics

  • Collections
  • Closures
  • Control Structures
    • Logical Branching
    • Looping
  • Builders
  • Bitwise Operations
  • Statements
  • Strings
  • Groovy Math
  • Input Output
  • Logging
  • Operator Overloading
  • Regular Expressions
  • GPath
  • Scoping and the Semantics of "def"
  • Scripts and Classes
  • Things to remember
  • Groovy Categories
  • Migration From Classic to JSR syntax

Groovy from the Command-Line

  • Groovy CLI
  • Groovy Console

Integrating Groovy into your build

  • Groovy Ant Task
  • Groovyc Ant Task
  • Ant Task Troubleshooting
  • Compiling Groovy

Working with Java

  • Bean Scripting Framework
  • Embedding Groovy

Working with XML

  • Processing XML
    • Creating XML using Groovy's MarkupBuilder
    • Creating XML using Groovy's StreamingMarkupBuilder
    • Creating XML with Groovy and DOM
    • Creating XML with Groovy and DOM4J
    • Creating XML with Groovy and JDOM
    • Creating XML with Groovy and XOM
    • Reading XML using Groovy's DOMCategory
    • Reading XML using Groovy's XmlParser
    • Reading XML using Groovy's XmlSlurper
    • Reading XML with Groovy and DOM
    • Reading XML with Groovy and DOM4J
    • Reading XML with Groovy and Jaxen
    • Reading XML with Groovy and JDOM
    • Reading XML with Groovy and SAX
    • Reading XML with Groovy and StAX
    • Reading XML with Groovy and XOM
    • Reading XML with Groovy and XPath
    • XML Example

More Advanced Topics

DSLs and Functional Programming

  • Functional Programming
  • Writing Domain-Specific Languages

Creating a Builder

  • BuilderSupport
  • Make a builder
  • Leveraging Spring
  • Mixed Java and Groovy Applications
  • Security
  • Advanced OO
    • Groovy way to implement interfaces

Testing with Groovy

  • Groovy Mocks — used to assist (typically unit) testing of classes in isolation
    • Developer Testing using Closures instead of Mocks
    • Developer Testing using Maps and Expandos instead of Mocks
    • Groovy Mocks and Java Mocks - An Extended Example
  • Integrating TPTP — some hints for using the Eclipse TPTP facilities with Groovy
  • Test Combinations — some hints for using Groovy to assist generate test data in particular all combinations and all pair combinations
    • Effectiveness of testing combinations with all pairs
  • Test Coverage — is a useful measure of the effectiveness of unit tests and can be derived for Groovy tests
    • Code Coverage with Cobertura
  • Testing Web Applications — how to use NekoHTML, HtmlUnit, Watij and WebTest to test web applications
  • Testing Web Services — how to test Web Services using Groovy directly and in conjunction with WebTest and SoapUI
  • Unit Testing — Groovy simplifies JUnit testing, making it more Groovy, in several ways
  • No labels