The document describes setting up a Grails application with domain classes, controllers, and MyBatis integration for database access. It includes:
1) Creating a Grails application, domain class, and scaffolding controller.
2) Configuring plugins and dependencies for Spring Boot and MyBatis.
3) Defining domain classes for Book and ISBN with constraints and mappings.
4) Implementing mappers and XML mapping files for MyBatis.
5) Creating repository interfaces and services to abstract data access.
This document contains code for two test specifications. The first specification tests that the length of strings match expected values. The second specification tests that scanning an OOO driver after attaching it and setting a core medal results in a combo type of TATOBA.
The document announces the Devlopers Summit 2011 conference covering topics like Java, Groovy, Grails, Griffon, CodeNarc, Geb, Grails plugins, Spock, Eclipse integration with Groovy, and Twitter. It also includes frequently asked questions and answers about Groovy and references resources from the Japanese Groovy and Grails Users Group and G*Magazine publication.
This document discusses Behavior Driven Development (BDD) and the Spock testing framework. It provides an overview of BDD principles and the Given-When-Then syntax. It also demonstrates how to write Spock specifications in Java and Groovy, including data-driven tests, mocks, rules, and extensions. Finally, it shows how to use Spock for testing Grails applications in Eclipse.
The document discusses Groovy, a dynamic language for the Java Virtual Machine (JVM). Some key points:
- Groovy runs on the JVM and is compatible with Java, allowing it to leverage existing Java libraries and infrastructure.
- It has features inspired by languages like Python, Ruby and Smalltalk that allow for code to be written more succinctly compared to Java.
- Examples show how a Java program that extracts error lines from a log file can be rewritten in fewer lines of code using Groovy.
- Questions are asked and answered about how Groovy compares to other JVM languages like Scala, its community and user groups like JGGUG, and how it can be used alongside tools like
26. GVMによるインストール
$ gvm i gradle
Downloading: gradle 2.6
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 354 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
100 62.4M 100 62.4M 0 0 3495k 0 0:00:18 0:00:18 --:--:-- 4370k
Installing: gradle 2.6
Done installing!
Do you want gradle 2.6 to be set as default? (Y/n): Y
Setting gradle 2.6 as default.