concept George in category java

This is an excerpt from Manning's book JUnit in Action.
As discussed in chapter 9, one of the projects under development at Test It is a flight-management application. To start such an application, George, a project developer, creates the C:\Work\ folder, which will become the working directory and the one where he will set up the Maven project. He types the following on the command line:
mvn archetype:generate -DgroupId=com.testeddatasystems.flights -DartifactId=flightsmanagement -DarchetypeArtifactid=maven-artifact-mojoAfter pressing Enter and waiting for the appropriate artifacts to be downloaded, George accepts the default options (figure 10.6). Figure 10.7 shows the structure of the project: src/main/java/ is the Maven folder in which the Java code for the project resides, and src/main/test/ is the unit tests.
Figure 10.7 The newly created flight-management project
Figure 10.6 Creating a Maven 3 project and accepting the default options
![]()
![]()
George invoked the maven-archetype-plugin from the command line and told it to generate a new project from scratch with the given parameters. As a result, the Maven plugin created a new project with the default folder structure, as well as a sample App.java class with the main method and a corresponding AppTest.java file that is a unit test for the application.
At Tested Data Systems, the flight-management application we have seen in previous chapters persists information into a database. It is George’s job to analyze the application and move it to present-day technologies. The JDBC application that George receives contains a Country class describing passengers’ countries.
We introduced the Spring Framework and testing Spring applications in previous chapters. George has decided to introduce Spring into the flight-management database application, to reduce the database burden and to handle some of the tasks of interacting with the database via Spring inversion of control (IoC).
The application’s Country class will remain untouched. George will make some other changes for the migration to Spring: first, he will introduce the new dependencies in the Maven pom.xml file.
Listing 19.8 New dependencies introduced in the Maven pom.xml file
<dependency> #1 <groupId>org.springframework</groupId> #1 <artifactId>spring-context</artifactId> #1 <version>5.2.1.RELEASE</version> #1 </dependency> #1 <dependency> #2 <groupId>org.springframework</groupId> #2 <artifactId>spring-jdbc</artifactId> #2 <version>5.2.1.RELEASE</version> #2 </dependency> #2 <dependency> #3 <groupId>org.springframework</groupId> #3 <artifactId>spring-test</artifactId> #3 <version>5.2.1.RELEASE</version> #3 </dependency>In this listing, George adds the following dependencies: