Skip to content
testinfected edited this page Jan 27, 2013 · 4 revisions

Java

This application has been developed on Ubuntu and OSX using Java 6

Maven

You will need maven 2 or maven 3 to build the application

MySQL

You will need MySQL 5 installed locally to run the application. I use MySQL 5.1.48 on OSX 10.7.

To run the build with all the tests, you need to create the following databases on your MySQL instance:

  • petstore-dev (for running the application while in development)
  • petstore-test (all tests are run against this database)

The default username/password combo for the petstore-dev database is petstore/petstore.
The default username/password combo for the petstore-test database is testbot/petstore.

Have a look at the top level pom.xml file for details on the configuration.

jdbc.url: jdbc:mysql://localhost:3306/petstore-dev
jdbc.username: petstore
jdbc.password: petstore
test.jdbc.username: testbot
test.jdbc.url: jdbc:mysql://localhost:3306/petstore-test
test.jdbc.password: petstore

To prepare your databases, run the following commands in MySQL:

create database `petstore-dev`;
create user 'petstore'@'localhost' identified by 'petstore';
grant all on `petstore-dev`.* to 'petstore'@'localhost';
create database `petstore-test`;
create user 'testbot'@'localhost' identified by 'petstore';
grant all on `petstore-test`.* to 'testbot'@'localhost';

Clone this wiki locally