Java
Java is a high-level programming language that is widely used for developing applications and websites.
With its cross-platform compatibility, developers can write code once and run it on any device or operating system.
Posts about Java
Log all client requests and responses - Apache HTTP client, RESTEasy.
How to log requests and responses in Apache HTTP client, RESTEasy
August 20, 2022
|
HTTP
|
RESTEasy
|
Java
Spring RestTemplate - log all client requests and responses.
How to log requests and responses in Spring RestTemplate
March 12, 2022
|
HTTP
|
Spring Boot
|
Java
JSON to generic object or list of generic objects in Java
How to use generics for JSON deserialization
May 10, 2019
|
Java
|
Gson
Read files from resources folder
How to read files from resources folder - file system and jar.
JSON to Map in Java with Gson
Complete example
July 26, 2018
|
Java
|
Gson
Check if object is primitive in Java
Implement isPrimitive method for primitive wrappers (auto-boxed primitives)
Parse ISO-8601 time in Java
How to parse Date/Time in ISO-8601 format with Instant
Spring Boot + JUnit. How to get started
How to get started with JUnit and Spring Boot - minimal required code. Create your Spring Boot and JUnit based Test Automation Framework
May 11, 2018
|
Spring Boot
|
JUnit
|
Java
AssertJ. How to validate objects in Java
How to validate objects comparing field by field in Java using AssertJ
April 02, 2018
|
AssertJ
|
Java
How to merge lists in Java
How to merge lists in Java including Java 8
March 21, 2018
|
Java
|
Java 8
How to get method's annotation parameters. AspectJ
AspectJ. How to access method's annotation parameters
March 17, 2018
|
AspectJ
|
Java
How to log service client calls with AspectJ
AspectJ. How to log all service client calls for TestNG tests
March 14, 2018
|
AspectJ
|
HTTP
|
Spring Boot
|
Java
AspectJ. How to log method with parameters in Java
How to log method with parameters and returned result. How to use AspectJ for logging with parameters
March 05, 2018
|
AspectJ
|
Spring Boot
|
Java
REST API client for TestNG and Spring Boot using Apache Http Components. Part 2
Create Service Client for Test Framework for REST API with TestNG and Spring Boot using previously created Http Client
February 26, 2018
|
HTTP
|
TestNG
|
Spring Boot
|
Java
REST API client for TestNG and Spring Boot using Apache Http Components. Part 1
Create Http Client for Test Framework for REST API with TestNG and Spring Boot using Apache Http Client
February 21, 2018
|
HTTP
|
TestNG
|
Spring Boot
|
Java
Send PUT and DELETE HTTP requests and get HTTP response in Java with Apache Http Client
Simple example how to create Http Client to send PUT and DELETE HTTP requests and get HTTP response with Apache Http Client in Java
February 16, 2018
|
HTTP
|
Java
How to send POST HTTP request and get HTTP response in Java with Apache Http Client
Simple example how to create a Http Client to send POST HTTP request and get HTTP response with Apache Http Client in Java
February 09, 2018
|
HTTP
|
Java
How to send GET HTTP request and get HTTP response in Java with Apache Http Client
Simple example how to create a Http Client to send GET Http request and get Http response with Apache Http Client in Java
February 03, 2018
|
HTTP
|
Java
JUnit - retry failed tests
How to re-run failed tests using JUnit retry rule - TestRule
January 31, 2018
|
JUnit
|
Java
How to create array in Java
Different ways to create arrays in Java
How to get a Map from 2 arrays in Java
Different ways to create Map from 2 arrays in Java
December 28, 2017
|
Java
|
Java 8
How to get test data in TestNG tests from external file with Spring Boot
How to get started with using test data stored in an external file with Spring Boot in TestNG tests
December 18, 2017
|
Spring Boot
|
TestNG
|
Java
Spring Boot application.properties + TestNG tests
Spring Boot application.properties + TestNG tests. How to read parameters from application.properties file with @Value. TestNG example
December 14, 2017
|
Spring Boot
|
TestNG
|
Java
Guava and IOUtils. How to read file to list of Strings in Java
Example how to read file to list of String in Java with Guava and IOUtils
Guava and IOUtils. Read file to String in Java
Example how to read file to String in Java with Guava and IOUtils
Spring Boot + TestNG. How to get started
How to get started with TestNG and Spring Boot - minimal required code. Create your Spring Boot and TestNG based Test Automation Framework
December 01, 2017
|
Spring Boot
|
TestNG
|
Java
Clone List or Object in Java
Another way to clone any object or list in Java with Gson
November 20, 2017
|
Gson
|
Java
How to re-run failed tests in TestNG
How to re-run failed tests in TestNG using IRetryAnalyzer
November 02, 2017
|
TestNG
|
Java
How to decode JWT token in Java
Decode JWT token in Java and access information encoded in JWT.
October 20, 2016
|
JWT
|
Java
JSON to Array or JSON to List with GSON in Java
How to convert JSON String to Array or List with GSON. GSON array and GSON list with a code example in Java
May 07, 2016
|
Gson
|
Java
How to print object as JSON in Java
Example how to print an object in JSON format with GSON in Java. Print Java object as JSON
April 18, 2016
|
Gson
|
Java
JSON to Object and Object to JSON in Java with GSON
GSON is the easiest way to convert Object to JSON and JSON to Object in Java (serialize and deserialize objects to JSON in Java)
April 17, 2016
|
Gson
|
Java
Spring profiles in TestNG tests, spring.profiles.active
Spring profiles for switching between configurations. Using spring.profiles.active
December 03, 2015
|
Spring Boot
|
TestNG
|
Java
AspectJ. Simple blacklist example
AspectJ. Simple example that shows how to use AspectJ
November 30, 2015
|
AspectJ
|
Java
How to send Http requests and receive responses in Java
HTTP requests and responses. Example of implementation in Java
November 21, 2015
|
Java
|
HTTP
JUnit. Almost all you need to know
Basic knowledge - annotations, parameterized tests
October 15, 2015
|
Java
|
JUnit