Code Monkey home page Code Monkey logo

beerinfo's Introduction

beerinfo

Table of Contents

  • Project summary

  • Disclaimer

  • Getting Started

  • Prerequisites

  • Technology Stack

  • Installation

  • Running Tests

  • Usage

  • Project Structure

  • Project summary

  • This project serves as a showcase of my endpoint testing skills while also providing a fully controlled testing environment. It involves interactions with Docker and Jenkins, enabling efficient and automated testing workflows.

  • Disclaimer

  • While the endpoint code and tests are good to go, I'm still working on Docker and Jenkins integration. They're currently under research and development.

  • Prerequisites

  • Java: 21

  • Maven: 3.9.4+

  • Technology Stack

This project utilizes the following technologies, libraries, and frameworks for development and testing:

  • Database: PostgreSQL

  • Testing Frameworks:

    • JUnit 5
    • Rest-assured
    • JSON Schema Validator
  • Persistence and Data Validation:

    • Hibernate Core 6
    • Hibernate Validator
    • Jakarta EL and Jakarta EL API: Used for Expression Language support.
    • Jakarta Validation API: Used for validation.
  • Other Dependencies:

    • Lombok
    • Jackson Databind: Used for JSON serialization/deserialization.
    • Javalin: Used for building web services.
    • JavaFaker
  • Testing Report Framework:

    • Allure JUnit5

Installation

For project working, environment postgresql.dev.uri in property file need to be updated to local ip address (IPv4 Address).

Console command to find local ip address: ipconfig

path: src/main/resources/properties/dev.properties

Running Tests

To execute JUnit tests from the console:

  • Run all tests: mvn test

  • Run a specific test package: mvn test -Dtest="pathToTestPackage.**"

  • Run a specific test class: mvn test -Dtest="TestClassName"

  • Run a specific test method: mvn test -Dtest="TestClassName#TestMethodName"

  • Run tests with specific tags: mvn clean test -Dgroups="tagName1, tagName2"

  • Project Structure

├───main
│   ├───java
│   │   └───org
│   │       └───beerinfo
│   │           ├───config
│   │           ├───db
│   │           ├───dto
│   │           │   ├───api
│   │           │   │   ├───beer
│   │           │   │   └───brewery
│   │           │   └───data
│   │           ├───entity
│   │           ├───enums
│   │           ├───handlers
│   │           │   ├───beer
│   │           │   └───brewery
│   │           ├───mapper
│   │           ├───service
│   │           └───utils
│   └───resources
│       ├───META-INF
│       ├───properties
│       └───sqlscripts
└───test
    ├───java
    │   └───api
    │       ├───api_specifications
    │       ├───beer_service
    │       ├───breweries_service
    │       ├───conversion
    │       ├───db_query
    │       ├───extensions
    │       │   ├───annotation
    │       │   │   ├───beer
    │       │   │   └───brewery
    │       │   └───resolver
    │       ├───pojo
    │       │   ├───request
    │       │   └───response
    │       │       ├───beer
    │       │       └───brewery
    │       ├───request
    │       └───test_utils
    │           └───data_generators
    └───resources
        └───schemas
            ├───beer_service
            └───brewery_service

beerinfo's People

Contributors

coldray125 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.