Home » Java » Enterprise Java

Enterprise Java

Coroutine based Spring boot webflux application

I have worked with Spring Framework for ages and it still manages to surprise me with how cutting edge it continues to be but at the same time enabling a developer to put together a fairly sane app. The most recent surprise was with how it enables programming a web application with Kotlin coroutines. Coroutines is a fairly complicated concept ...

Read More »

Testing the File Upload API in Spring Boot

spring-interview-questions-answers

In one of my previous post, I had created an API to upload file. In this post I will write a JUnit test to test the API. We will test the complete flow right from uploading till it is copied to the file system and then we will also see how to mock the FileService class so that the uploaded ...

Read More »

Open-source collaboration, or how we finally added merge-on-refresh to Apache Lucene

The open-source software movement is a clearly a powerful phenomenon. A diverse (in time, geography, interests, gender (hmm not really, not yet, hrmph), race, skills, use-cases, age, corporate employer, motivation, IDEs (or,Emacs (with all of its recursive parens)), operating system, …) group of passionate developers work together, using surprisingly primitive digital tooling and asynchronous communication channels, devoid of emotion and ...

Read More »

Apache Camel 3.9 – No more saw tooth JVM garbage collection

We continue our effort to optimize Apache Camel. This is blog post part 7 which covers are latest effort on dramatically reducing the object allocations caused by Camel while routing messages. The good news is that we have overachieved and was able to reduce object allocations to ZERO!!! – so no more JVM memory usage graphs with saw tooth (note: ...

Read More »

Parameterization with DataProvider in TestNG

java-interview-questions-answers

Parameterization in TestNG is also known as Parametric Testing which allows testing an application against multiple test data and configurations. Though we have to consider the fact that exhaustive testing is impossible, however, it is necessary to check the behavior of our application against different sets of data that an end-user can pass. Time and manual effort saving have always ...

Read More »

Connecting to Kibana Within an AWS VPC

java-interview-questions-answers

When you use the managed Elasticsearch service on AWS, you usually choose an encrypted connection (via KMS-managed keys), which means you can’t use just any tool to connect to your Elasticsearch cluster. In fact, in order to manually execute commands the easiest option is to use the built-in Kibana and its dev tools. However, connecting to Kibana is also not ...

Read More »

Creating effective UI system tests with Selenium

java-interview-questions-answers

In this video, I’m showing how to create effective UI system tests with Selenium. In my previous video course on effective testing, I’ve introduced the coffee shop application, which we now enhanced with some basic HTML views. Selenium is a powerful web driver technology, to programmatically simulate user behavior in a browser, and helps us to create UI system tests. ...

Read More »