Skip to content

[Spring] Integrity and mock test with JUnit and Mockito for Spring RESTful

License

Notifications You must be signed in to change notification settings

Pio-Trek/Spring-Rest-API-Unit-Test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Integrity and mock test with JUnit and Mockito for Spring RESTful

Spring Boot RESTful logo

This is a Spring Boot Maven demo app showing how to perform integrity and mock test for Sprig Boot RESTful service using JUnit and Mockito Framework.

Pre-requisites

  • Java SE Development Kit 8
  • Maven 3.0+
  • H2 In-Memory Database (can work with any other relational database)

Getting Started

Import the Maven project straight to your Java IDE:

  • Intellij IDEA
  • Spring Tool Suite (STS)
  • Eclipse

(OPTIONAL) To work with other RDBMS you need to configure the project 'application.properties' file match to your database URL, username, password and add a required Maven dependency.

Technology Stack

The project uses the following technologies:

License

Copyright 2018 Piotr Przechodzki

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

[Spring] Integrity and mock test with JUnit and Mockito for Spring RESTful

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages