Monday, September 28, 2020

Testing with Hoverfly and Java Part 3: State

Previously we simulated a delay scenario using Hoverfly. Now it’s time to dive deeper and go for a state-based testing. By doing a stateful simulation we can change the way the tests endpoints behave based on how the state changed.Hoverfly does have a state capability. State in a...

Wednesday, September 23, 2020

Difference between Core Java and Advanced Java

Core Java: Core Java is the part of Java programming language that is used for creating or developing a general-purpose application.Advanced Java: Advanced Java is also a part of Java programming language that generally deals with online application like the website and mobile application.Below is the difference between...

Monday, September 21, 2020

Adding Partition To Existing Table In Oracle

Learn How To Add Partition To Existing Table In Oracle. New changes to partition in Oracle 12c. partitioned table using the ALTER TABLE … MODIFY command in 3 ways. 1) Basic offline operation 2) Online operation 3) Online operation with modification of index partitioningHow do I alter my...

Friday, September 18, 2020

Testing with Hoverfly and Java Part 2: Delays

On the previous post we implemented json and Java based Hoverfly scenarios..Now it’s time to dive deeper and use other Ηoverfly features.A big part of testing has to do with negative scenarios. One of them is delays. Although we always mock a server and we are successful to...

Wednesday, September 16, 2020

Introduction to Hypermedia REST APIs

Introduction When browsing the web we typically navigate from one site to another by following Hyperlinks. Those links make the web for humans discoverable. Hypermedia APIs provide the same discoverability for services. According to Roy Fielding Hypermedia is an essential part of a REST API and the Richardson...

Monday, September 14, 2020

REST: Retrieving resources

Retrieving resources is probably the simplest REST API operation. It is implemented by sending a GET request to an appropriate resource URI. Note that GET is a safe HTTP method, so a GET request is not allowed to change resource state. The response format is determined by Content-Negotiation....

Friday, September 11, 2020

Keeping the Caller Busy

There are ways we could refactor the displayCart function, but consider a second what the caller is doing each time it wants to use the function. Consider this simple code example: // caller String shoppingCartMessage = displayCart("You have %s", cart.size()); String otherMessage = displayCart("You saved %s", saved.size()); //...

Wednesday, September 9, 2020

Java 8 Base64 Encoding and Decoding (With Examples)

Learn different ways to do base64 encoding and decoding functionality in java and using java 8 api, and also examples using the apache commons-codec. 1. Overview In this article, you’ll learn the different ways to do the base 64 encoding and decoding techniques in java 8 and other...

Monday, September 7, 2020

Java 8 Optional Tutorial With Examples

A quick and in-depth tutorial to Optional API in java 8. Exploring various types of examples to understand the right usage. 1. Overview In this tutorial, You will learn in-depth about Java 8 Optional Class methods and its usages. Optional class is added to the java.util package. The...

Friday, September 4, 2020

Java 8 Collectors API Tutorial With Real Time Examples

A quick practical guide to Java 8’s Collectors api. Example programs on various useful reduction operations and accumulating elements into collections 1. Overview In this tutorial, We’ll be learning to Java 8 Collectors API in-depth with all methods and example programs. Collectors is a public final class that...

Pages (26)1234567 »