Home » Java » Enterprise Java (page 5)

Enterprise Java

Using metric tags with MicroProfile Metrics 2.0

java-interview-questions-answers

Business-related metrics that are emitted from our application might contain parameters (i.e. tags or labels) for which a specific metric is being measured. Since MicroProfile Metrics 2.0 it’s possible to assign tags to specific metrics using the API. Declarative approach Assuming we have the following resource: 01 02 03 04 05 06 07 08 09 10 11 12 13 14 ...

Read More »

Testing Spring Boot conditionals the sane way

spring-interview-questions-answers

If you are more or less experienced Spring Boot user, it is very luckily that at some point you may need to run into the situation when the particular beans or configurations have to be injected conditionally. The mechanics of it is well understood but sometimes the testing such conditions (and their combinations) could get messy. In this post we ...

Read More »

Java Single Dependency Dockerized HTTP Endpoint

In this article, we will create a Java-based HTTP endpoint, make an executable jar out of it, pack it up in Docker and run it locally in no time. This article is intended for beginners, who want to looking for a simple walk-through for running a Java application in Docker. The vast majority of examples out there describing Java applications ...

Read More »

(De)serialization and Validation of Custom Primitives and DTOs

java-interview-questions-answers

Lately, we presented you with our new HTTP framework – HttpMate. In the introduction article, we referred to the mapping of requests and responses to domain objects as “the most complicated technical detail”, and how another mate – MapMate, is there to help us out. Indeed, MapMate takes the load off of HttpMate when it comes to mapping the request ...

Read More »

Introducing HttpMate

java-interview-questions-answers

Nobody wants to write bad code. Nobody starts the application development with the thought “I’m going to create the most entangled and unreadable code and make sure it’s not extendable and hard to modify or navigate through”. One starts with good intentions, probably even having all the Clean Code and SOLID principals in mind. However, compromises start creeping in fast ...

Read More »

Difference Between Servlet and JSP

java-interview-questions-answers

Both JSP and Servlet are important concepts pertaining to using Java for building web-based applications. Basically, a Servlet is HTML in Java while a JSP is Java in HTML. Any typical web development interview can have several JSP and Servlet-based Java interview questions. Although much of the purpose served by JSP and Servlet is the same, there are several important ...

Read More »

Handling Multiple Browser Tabs With Selenium Automation Testing

Automation testing with Selenium has been a lifeline in grooming budding automation testers into professionals. Selenium being open-source is largely adopted on a global scale. As a result of which you get huge support from the community. There are multiple frameworks for different languages that offer bindings with Selenium. So you have got everything on board for getting started with ...

Read More »

How to Setup Selenium Grid For Parallel Execution In Different Browsers

Selenium is by far the most used web automation testing tools. One of the reasons behind this huge popularity is Selenium’s automated cross browser testing capabilities. Selenium automation testing can help you test on all major browsers, all major operating systems, and even on mobile device browsers. You can get a huge browser coverage in all your functional tests ensuring ...

Read More »

Using Selenium Webdriver For Full Page Screenshots

One of the most performed actions of any webpage tester is taking a screenshot of the webpage. Whenever a tester finds and reports a bug, that bug would not be taken seriously without supporting screenshots or even videos of the issue. This is equally true no matter the type of testing you are doing and that includes selenium automation testing. ...

Read More »