Chapter 7. Practical Scripting in Java

Earlier in the book, we discussed the roles that scripting languages played (and still do play) in various systems. In this chapter, we see how scripting languages and technologies covered in the previous chapters can be used in those roles. This chapter does not focus on best practices for extending and implementing application functionalities with scripting languages; we cover that, along with scripting patterns and the use of scripting languages in system architecture, in Chapter 8, “Scripting Patterns.” Instead, in this chapter, we focus on using scripting languages for tasks that are a part of every development process. Specifically, we see the benefits (and limitations) of writing unit tests in Groovy. ...

Get Scripting in Java™: Languages, Frameworks, and Patterns now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.