Home » Java » Enterprise Java

Enterprise Java

KivaKit applications

java-interview-questions-answers

The kivakit-application module contains building blocks for creating applications and servers. In the diagram below, we can see that the Application class extends BaseComponent. Server, in turn, extends Application. BaseComponent inherits Repeater functionality from BaseRepeater, and handy default methods from the Component interface. ComponentMixin (shown in the next diagram) also inherits these methods from Component. Application provides command-line parsing (see ...

Read More »

Testing Scenarios You Should Avoid While Automating With Selenium

Selenium is a widely used web automation testing platform, and Selenium Automation is in great demand today. There are plenty of real-time test scenarios in selenium testing where the need for Automation is justifiable. But, according to some testing experts, it is not always recommended to test all the test scenarios using Selenium. As a web automation tool, Selenium primarily ...

Read More »

Configuring plain Java projects using MicroProfile Config

java-interview-questions-answers

If you’re in the Enterprise Java space, you’re probably aware that you can use MicroProfile Config to configure your applications. This also works with plain Java projects, without an enterprise runtime, by using a MicroProfile implementation such as Smallrye. In this video, I’m showing how to do this, and in which circumstances it might be helpful: The example uses a ...

Read More »

A Comprehensive Guide On JUnit 5 Extensions

JUnit is one of the most popular unit testing frameworks in the Java ecosystem. The JUnit 5 version (also known as Jupiter) contains many exciting innovations, including support for new features in Java 8 and above. However, many developers still prefer to use the JUnit 4 framework since certain features like parallel execution with JUnit 5 are still in the ...

Read More »

TestNG vs. JUnit Testing Framework: Which One Is Better?

Introduction Software Development goes through many phases like requirement gathering & analysis, communication, design, code building, testing, and release. A business has to ensure that the product they deliver is up to the mark, which is possible when the product goes through multidimensional quality checks. Testing is an indispensable part of the SDLC and can be achieved either manually or ...

Read More »

Using R2DBC with a Reactor Application

spring-interview-questions-answers

Since Reactor has taken over the Java world it was inevitable the a reactive sql library would be there.In this blog we shall use r2dbc with h2 and reactor. We shall start with the dependencies needed. <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.5.2</version> </parent> <groupId>com.gkatzioura</groupId> <artifactId>r2dbc-reactor</artifactId> <version>1.0-SNAPSHOT</version> <properties> <maven.compiler.source>11</maven.compiler.source> <maven.compiler.target>11</maven.compiler.target> </properties> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> ...

Read More »

Obtaining TLS Client Certificates In Spring Integration

java-interview-questions-answers

Spring Integration is a very powerful and extensible framework for, well, integrations. But sometimes it’s not trivial how to get some information that yo need. In my case – a certificate used for mutual authentication in a TLS (syslog over TLS) connection. You have a Java method that receives a Message and ideally you’d want to get the certificate chain ...

Read More »

How To Speed Up Selenium Test Cases?

java-interview-questions-answers

When we talk about automation, one of the tools that comes first to our mind is Selenium. We all know that the Selenium WebDriver is a remarkable tool for web automation. The primary reason for implementing Selenium automation testing is to speed up selenium tests. In most of the cases, Selenium performs extraordinarily well than the manual ones. But, sometimes ...

Read More »