Java/JVM

Say No to H2, Yes to Test-Container

Developers get confused over the priority of unit test cases and integration test cases. Though both are important, when we are building services for clients, we are on a tight schedule, so completing the development is itself a challenge, let alone writing test cases. I always strive to write test cases, irrespective of the time […]

AdobeJava/JVMTechnology

Exploring Apache Sling Sitemap Generator With Customization in AEM

Prerequisite  AEM 6.5 installed with Service Pack 11+ or  AEMaaCs SDK. What is Apache Sling Sitemap Generator As we all know, one crucial aspect of any website is its Sitemap, a file that provides a roadmap of all the pages of a website for search engines to crawl and index the website. Below is the sample […]

Java/JVM

Java Project Loom – Launching 10 million threads (Part 2)

In the previous blog, we discussed a detailed overview of Project Loom. Now it’s time for some code. If you have not read about part 2 of this series, please check it out here: Let us see how we can create virtual threads in Java. Thread.ofVirtual().unstarted(() -> System.out.println(“Thread is not started”)); Thread.ofVirtual().start(() -> System.out.println(“Thread is […]

Anil Gola
Anil Gola
Read

Java/JVM

Java Project Loom – Virtual Threads (Part 1)

This JEP No 425 is something I am waiting for with bated breath. It’s a new notion that has been added to the concurrent APIs of JDK 19. It’s in the preview stage, and soon it will be a permanent feature in JDK in the coming few releases. Virtual Threads are light weight that reduce the effort of writing, […]

Anil Gola
Anil Gola
Read

Java/JVM

Distributed Locks in Spring-boot Microservice Environment

Suppose we are in an environment where only one instance is running in production. We want to do an account update and synchronise the transaction where we are doing the update. This can easily be achieved with the help of Reentrant Locks api’s of java, as shown below. @Service @RequiredArgsConstructor @Slf4j public class AccountService { […]

Anil Gola
Anil Gola
Read

Java/JVMMobile Automation TestingTechnology

Healenium: Self-Healing Library for Selenium-based Automated Tests

AUTOMATION SELF-HEALING WITH HEALENIUM – [Part 1] Due to the altered layout and broken selectors, all automated UI tests eventually encounter NoSuchElementException. The build becomes red and the test crashes as a result. This discussion presents the new self-healing automation tool – Healenium that helps you to overcome problems of instability of automated tests automatically […]

Java/JVMMobile Automation TestingTesting

Automation testing with Robot Framework and Python

What is Robot Framework? Robot framework is a comprehensive open-source automation framework for robotic process automation, acceptance testing, and acceptance test-driven development. It employs a keyword-driven testing method strategy. Test libraries that are implemented in either Python or Java can expand the possibilities. Robot Framework is a generic test automation framework for acceptance testing. It […]

Java/JVMMobile Automation TestingTesting

Automated Software Testing with Puppeteer & amp; Jest

WHAT IS PUPPETEER? Puppeteer is a Node.js library developed by Google that lets you control headless Chrome through the DevTools Protocol. It is a tool for automating testing in your application using headless Chrome or Chromebit devices without requiring browser extensions like Selenium Webdriver or PhantomJS. WHAT IS JEST? Jest is a delightful JavaScript Testing […]

Java/JVMSoftware development

Step By Step Guide : Sending Emails in Spring Boot

Using the JavaMailSender interface, Spring Boot offers a simple method for sending emails. You may send an email with Gmail transport layer security by utilizing the spring boot restful web API. STEP 0: Add the Spring Boot Starter Mail dependency to your project STEP 1: Configuring mail settings in application.properties In the application.properties file, configure […]

Muskan Lama
Muskan Lama
Read
Services