Code Monkey home page Code Monkey logo

remitlytask's Introduction

Remitly Internship Home Exercise

Test

To run tests execute:

./mvnw test

Installation

To create an executable jar execute:

./mvnw clean package

After that the jar will be crated inside target directory

Execution

To run the program you can execute the following command from the project directory

java -jar ./target/Remitly-1.0-SNAPSHOT-spring-boot.jar <JSON path>

This program accepts a filepath of the JSON to be validated

Test description

All tests are contained within JSONParserTest class:

  • validateInvalid() - simple json which has a single star in Resources field
  • validateValidMultipleResources() - json has multiple Resources but none of them contains a single star
  • validateInvalidMultipleResources() - json has multiple Resources, one of them has a single star
  • validateValidMultipleStatementsOneResource() - json has an array of Statement, none resource consists of single star
  • validateInvalidMultipleStatementsOneResource() - json has an array of Statement, one Statement has a Resource consisting of a single star
  • validateEmpty() - json is empty
  • validateWrongSchemaRedundantLocationField() - json has one redundat field - Location, Resource doesn't have a star
  • validateNoResource() - json doesn't have a Resource field

remitlytask's People

Contributors

washindeiru 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.