-
Gradle and JUnit example
In Gradle, you can declare the JUnit dependency like this:
Date: 2019-08-17 View: 1520
-
Hamcrest How to assertThat check null value?
Try to check null value with the Hamcrest assertThat assertion, but no idea how?
Date: 2019-08-17 View: 1520
-
JUnit How to test a List
First, exclude the JUnit bundled copy of hamcrest-core, and include the useful hamcrest-library, it contains many useful methods to test the List data type.
Date: 2019-08-17 View: 1520
-
JUnit How to test a Map
Forget about JUnit assertEquals(), to test a Map, uses the more expressive IsMapContaining class from hamcrest-library.jar
Date: 2019-08-17 View: 1520
-
JUnit Assert if a property exists in a class
Includes hamcrest-library and test the class property and its value with hasProperty() :
Date: 2019-08-17 View: 1520
-
MySQL Backup and restore a database or table
In this tutorial we will show you how to use backup and restore a MySQL database or tables.
Date: 2019-08-17 View: 1520
-
Spring Boot file upload example Ajax and REST
This article shows you how to upload files in Spring Boot web application (REST structure), using Ajax requests.
Date: 2019-08-11 View: 1520
-
cURL Post JSON data to Spring REST
This article shows you how to use cURL command to POST JSON data to a Spring REST API.
Date: 2019-08-11 View: 1520
-
cURL POST request examples
Some cURL POST request examples for self reference.
Date: 2019-08-11 View: 1520
-
Spring Boot Ajax example
This article will show you how to use jQuery.ajax to send a HTML form request to a Spring REST API and return a JSON response.
Date: 2019-08-11 View: 1520
-
Spring REST API Validation
In Spring MVC, just annotate a @Valid on the @RequestBody to fire the validation process.
Date: 2019-08-11 View: 1520
-
ElasticSearch Hello World Example
ElasticSearch is an Open-source Enterprise REST based Real-time Search and Analytics Engine. It’s core Search Functionality is built using Apache Lucene, but supports many other features.
Date: 2019-08-11 View: 1520
-
Spring REST Hello World Example
In this article, we will show you how to develop a Spring Boot REST style web service to handle CRUD operations from a H2 In-memory database.
Date: 2019-08-11 View: 1520
-
Spring REST Validation Example
In this article, we will enhance the previous Spring REST Hello World example, by adding bean validation and custom validator.
Date: 2019-08-11 View: 1520
-
Spring REST Error Handling Example
In this article, we will show you error handling in Spring Boot REST application.
Date: 2019-08-11 View: 1520