Home » Java » Enterprise Java (page 2)

Enterprise Java

Efficient enterprise testing — unit & use case tests (2/6)

java-interview-questions-answers

In the first part of the series we saw some generally applicable principles and constraints that effective tests should fulfill. In this part, we will have a closer look at code-level unit tests and component or use case tests. Unit tests Unit tests verify the behavior of a single unit, usually a class, while all concerns that are external to ...

Read More »

Thoughts on efficient enterprise testing (1/6)

java-interview-questions-answers

Testing in the enterprise is still a topic that is not as extensively used as it should be. Writing and especially maintaining tests takes times and effort, however, cutting short on software tests can’t be the solution. Which scopes, approaches, and test technology should be pursue in order to make testing more efficient? I’ve put together a series with my ...

Read More »

@SpringBootConfiguration Annotation in Spring Boot

spring-interview-questions-answers

@SpringBootConfiguration annotation in Spring Boot is a class-level annotation which indicates that this class provides the application configuration. Generally, the class with the main() method is best-suited for this annotation. We usually use @SpringBootApplication annotation which automatically inherits the @SpringBootConfiguration annotation. Annotation Usage: When we mark a class with @SpringBootConfiguration, it means that the class provides @Bean definition methods. The ...

Read More »

Spring Boot CommandLineRunner and ApplicationRunner

spring-interview-questions-answers

In this quick tutorial, we’ll explore the two very popular interfaces in Spring Boot: CommandLineRunner and ApplicationRunner. One common use case of these interfaces is to load some static data at application startup. Though, I have seen such usages mostly for test data setup only. Both of them are functional interfaces with a run() method. This run() method gets executed soon ...

Read More »

Introduction to Spring Boot

spring-interview-questions-answers

In this tutorial, we’ll take a look at Spring Boot and see how it’s different from the Spring framework. We’ll also discuss various features offered by Spring Boot. What is the Spring Boot? Spring is a powerful framework when it comes to developing enterprise-level applications. It provides us with features like dependency injection along with supporting many other framework extensions. ...

Read More »

How to Launch an EC2 Instance in AWS

java-interview-questions-answers

Hello Friends, In this tutorial,we will see how we can spin an EC2 instance in AWS in no time. Prerequisite : You should have access to the AWS console.If you don’t have AWS account already,you can click  here and and create free tier Account on AWS. How to Launch an EC2 instance in AWS Step 1 : Login to Your AWS ...

Read More »

How to make an API call in Flutter (REST API)

java-interview-questions-answers

In this post, we’ll take a look at how we can make an API call in flutter and consume a simple REST API. Checkout some of my other posts on Flutter here: Flutter vs React NativeUnderstanding BLoC Architecture in Flutter (Highly Recommended)Building a ListView (RecyclerView) in Flutter (Recommended) We’ll be creating a simple application in which I’ll make an API ...

Read More »

Streaming live updates from a reactive Spring Data repository

This post details a naive implementation of streaming updates from a database to any other components that are interested in that data. More precisely, how to alter a Spring Data R2DBC repository to emit events to relevant subscribers. A little bit of background knowledge of R2DBC and Spring will be helpful for this post. My previous writings, Asynchronous RDBMS access ...

Read More »

Selenium Scripting Tips and Tricks

If you have just started learning selenium then the below tricks and tips will act as a saviour. These tips and tricks have all the basic things which you might forget and it will help you in remembering all those. You can just go through them once and you will get to know everything in few seconds. Let’s have a ...

Read More »