This project is an SouJava Team effort to get together many Automation test technologies like MapDB, Jackson, JUnit, Twitter Stream API, into something real, updated, tested and that is ready-made for use in a CI environment.
This project will get you going with your Automation testing in few minutes, you will be able to test the following technologies:
- MapDB
- Jackson (fasterxml) 2.x
- JUnit
- Twitter Stream API
- Maven
- Maven surefire, compiler, shade, exec plugin
- Docker
- Bash Scripts
This project exemplifies how to:
- Connect to the Twitter Streaming API
- Filter messages that track on "java".
- Retrieve the incoming messages for a period of seconds or up to a XYZ amount of messages.
- Application returns messages grouped by user (users sorted chronologically, ascending).
- Messages are sorted chronologically, ascending.
- All the twits found are saved into twitter.log.
- App keeps track of messages retrieved statistics across multiple runs of the application.
- The application can run as a Docker container.
- The application does not need to get PIN authorization after first successful authentication.
make install
make start
make docker
make docker-build
make clean
make test
make clean-db
mvn install
mvn exec:java
sudo docker build -t biever-tweets .
sudo docker run biever-tweets mvn exec:java
mvn clean
mvn test -P UnitTests
mvn test -P IntegrationTests
rm -rf ./stats.db;
rm -rf ./config.db;
rm -rf twitter.log;
Ivens F. V. Signorini StackOverflow LinkedIn
Thomas Modeneis StackOverflow LinkedIn
This module is licensed under the MIT license.