As a software engineer, We all face some errors/exceptions while writing code! So what do we do when we face such a problem? If we are not sure, We google for solutions immediately. Don’t we? We google because we know that we would not be alone and someone would have already found the solution, for the problem
Today I will show you how to make your REST APIs secure and authenticate requests using Spring Security JWT (Json Web Token). Today, JWT is one of the most common methods for authenticating requests for Java WEB applications. And this is not casual. This type of protection and authentication has several advantages: convenience (you do
Cucumber is a very powerful testing framework written in the Ruby programming language, which follows the BDD (behavior-driven development) methodology. It enables developers to write high-level use cases in plain text that can be verified by non-technical stakeholders, and turn them into executable tests, written in a language called Gherkin. And the Cucumber-Spring Integration is intended to
How to Share Test Context between Cucumber Steps, in this post we will explain it and share our implementation Scenario Context class holds the test data information explicitly. It helps you store values in a key-value pair between the steps. Moreover, it helps in organizing step definitions better rather than using private variables in step definition classes.
Overview: As you might already know,Fluent APIs make your code readable and easily maintainable. We already have seen few articles on designing Page Objects and Business Workflows in fluent style. In this article, Lets see how we could include fluent assert statements for your automated tests using AssertJ library. Take a look at the examples
Let us return to the consideration of structural design patterns. This time we will look at a design pattern called Adapter (also called the Wrapper along with the Facade pattern). This article will talk about the following: Object adapter Class Adapter The difference between the adapter and the facade An example of using an adapter
Testing RESTful Web Services can be cumbersome because you have to deal with low-level concerns which can make your tests verbose, hard to read and to maintain. Fortunately, there are libraries and best practices helping you to keep your integration tests concise, clean, decoupled and maintainable. This post covers those best practices. Use Reusable RequestSpecifications
In this post we will explain type of constructors in java and what is the difference between constructors and methods. What is a constructor Constructor is a block of code that initializes the newly created object. A constructor resembles an instance method in java but it’s not a method as it doesn’t have a return