Project PIVIC - Federal University of Paraíba.
Teacher: Ayla Rebouças - http://goo.gl/p2urH
Project Name: Evitando Falsos Positivos em Testes de Sistemas Multi-threaded com a abordagem “Thread Control for Tests”
More Information: http://goo.gl/8Ywy1
Requirements:
Web Server: Apache Tomcat 7+
JDK: Version 6+
IDE: Eclipse Java EE indigo+
AJDT (AspectJ Development Tools)¹
Maven: Version 2²
Database: PostgreSQL Preferably, but it is possible to use other banks,
since the framework is implemented JPA (Java Persistence API)
Configuring the Eclipse:
1 - To install AJDT:
In Eclipse go in -> Help -> Eclipse MarketPlace -> install AJDT corresponding to your version of eclipse.
2 - To install Maven:
In Eclipse go in -> Help -> Eclipse MarketPlace -> install the "Maven Integration for eclipse WTP".
To correctly import the application just follow the following steps.
1 - Using a Terminal or a Customer Git, do the clone within your workspace.
$ cd ~/workspace/
1.1 - Ctrl+C and Ctrl+Shift+V in terminal:
$ git clone git@github.com:DiegoSousa/MySimpleCRM.git
2 - In eclipse go in:
file -> import -> type in the search above "Existing maven projects" -> next -> Browser ->
select the project mySimpleCRM -> Finish.
3 - Wait until the maven download all libraries.
The End!
Configuring the project:
1 - Right-click in:
MySimpleCRM -> properties -> Java Build Path -> "Source" -> Add Folder -> threadControl_<version>_src ->
check the option srcAspectsTC and srcTC.
2 - Right-click in:
MySimpleCRM -> Configure -> Convert to AspectJ Project.
Configuring the Database:
1 - Install PostgreSQL
(http://www.postgresql.org/download/).
1.1 - If you think necessary, you can install the customer PostgreSQL
http://www.pgadmin.org/download/
1.2 -There are two ways of creating the database. Using the script creation (1.2.1) or creating manually using the client PostgreSQL PgAdmin (1.2.2). Choose the one that interests you.
1.2.1 - "Using the script creation"
Open your terminal type:
$ cd ~/workspace/MySimpleCRM/src/main/resources/Scripts_Database
Then type:
$ chmod +x createDatabase.sh
Then type:
$ ./createDatabaseAndTables.sh
1.2.2 - Creating manually using the client PostgreSQL PgAdmin:
Create a database with the name "mySimpleCRM" and set the "Login Role" default PostgreSQL,
which contains login and password 'postgres'.
The End!
Doubts?
Contact diego[at]diegosousa[dot]com or diego.sousa[at]dce.ufpb.br
Tutorial Versão em Português:
Configurando o Eclipse:
1 - Para instalar o AJDT:
No Eclipse vá em -> Ajuda -> Eclipse MarketPlace -> instale o AJDT correspondente a sua versão do eclipse.
2 - Para instalar o Maven:
No Eclipse vá em -> Ajuda -> Eclipse MarketPlace -> instale o "Maven Integration for eclipse WTP".
Para importar corretamente o aplicativo basta seguir os seguintes passos:
1 - Usando um Terminal ou um cliente Git, faça o clone em seu workspace.
$ cd ~/workspace/
1.1 - Ctrl+C and Ctrl+Shift+V no terminal:
$ git clone git@github.com:DiegoSousa/MySimpleCRM.git
2 - No Eclipse vá em:
file -> import -> digite na local da busca "Existing maven projects" -> next -> Browser ->
selecione o project mySimpleCRM -> Fim.
3 - Aguarde até que o maven faça o download de todas as bibliotecas.
Configurando o projeto:
1 - Botão direito em:
MySimpleCRM -> propriedades -> Java Build Path -> "Source" -> Adicionar pasta -> busque por threadControl_<version>_src ->
Marque as opções srcAspectsTC e srcTC.
2 - Botão direito em:
MySimpleCRM -> Configure -> Converter para Projeto AspectJ.
Configurando a Base de Dados:
1 - Instale PostgreSQL
(http://www.postgresql.org/download/).
1.1 - Se achar necessário, instale o cliente PostgreSQL
http://www.pgadmin.org/download/
1.2 - Existe duas formas de criar a base de dados. Usando o script Shell de criação (1.2.1) ou criando manualmente usando o cliente PostgreSQL PgAdmin (1.2.2). Escolhe a forma que mais lhe agradar.
1.2.1 - "Usando o script de criação"
Abra o terminal e digite:
$ cd ~/workspace/MySimpleCRM/src/main/resources/Scripts_Database/
Dê enter e digite:
$ chmod +x createDatabase.sh
Então digite:
$ ./createDatabase.sh
1.2.2 - Criando manualmente, usando o cliente PostgreSQL PgAdmin:
Crie a Base de Dados com o nome "mySimpleCRM" e set o "Login Role" default do PostgreSQL,
que contém o login e o password igual a 'postgres'.
Fim!
Duvidas?
Contato: diego[at]diegosousa[dot]com or diego.sousa[at]dce.ufpb.br