Systems | Development | Analytics | API | Testing

Java

A Guide to Math.random() in Java

The Math.random() method in Java is a built-in function which is a part of the java.Math class. One of the main benefits of the Math.random() method is its ease of use. It can be used to quickly generate random numbers within a specified range, making it a popular choice. Another advantage of Math.random() is its performance. It is optimized to generate random numbers quickly, making it an ideal choice for high-performance applications where speed is a concern.

Integrating Keploy With sample java application

In this video, we'll see how keploy has evolved. Presenting a new installation process of Keploy where the server of keploy can be installed using binary for Linux and macOS, and we can run the keploy server using the command "keploy" from the CLI. The test cases when you make an API call is reflected in the CLI where keploy is running, and the test runs details are also shown there. The test runs report is stored in yaml file format under the test-reports directory.

10 best Java testing frameworks for 2023

Java testing frameworks are a collection of rules pre-set up with Java to support the design and creation of test scripts. The general rules include multiple functions such as coding standards, test data handling, object repositories, and libraries. The Java frameworks equip teams with a standardized structure and automation guidelines, which serve as the backbone of an effective testing process, with less manual effort, enhanced testing speed, and efficiency.

Building a RESTful API with Java Spring Boot

Spring Boot is a popular framework for creating powerful RESTful APIs, and in this tutorial, we will use it to develop a simple API that simulates a credit score rating. The API endpoint we will create will allow a user to retrieve a credit score rating by sending a request to the API. However, it is important to note that we will not be linking up to any actual backend systems to pull a real credit score, instead we will use a random number generator to generate the score and return it to the user.

How to Avoid java.util.concurrent. TimeoutException

The java.util.concurrent.TimeoutException is a checked exception in Java that is thrown when a blocking operation times out. Since java.util.concurrent.TimeoutException is a checked exception, it must be explicitly handled in methods which can throw this exception - either by using a try-catch block or by throwing it using the throws clause.

Top 5 Java REST API Frameworks

The Java programming language is a high-level, object-oriented language that enables developers to create robust, reusable code. Java is known for its portability and platform independence, which means that Java code can run on any system that supports the Java Runtime Environment (JRE). Java was originally developed by James Gosling at Sun Microsystems in 1995. Since then, the language has undergone several changes and has become one of the most widely used programming languages in the world.

Exception Handling in Java

Let's say you were going for an interview; you are thoroughly prepared and confident that you will land this job. So you get in your car at the right time and drive to the company. You avoid the road that is usually congested and opt for a narrower but faster lane that day. But to your dismay, you find a big truck blocking that road! You see, exceptions are inevitable. Similarly, Exceptions in Java are neither uncommon.

Automating Flutter Apps with Appium Flutter Driver using Appium Java Client

In today’s world, mobile applications are essential for any business to thrive, and almost all developed products offer web and mobile support. This has made mobile application testing an integral part of the QA life cycle, and adding to it. The onus is on the test automation engineers to develop an E2E automation suite for mobile application testing. In this blog, I will explain how test automation engineers can start using Appium to automate mobile applications developed using Flutter.

End-to-End API Monetization with Java Spring, Stripe, and Moesif

Many API developers and companies struggle to find ways to easily set up systems to monetize their APIs. Some are simple but not customizable, some are complex and require massive engineering effort to actually get it all running. To make things easier, Moesif created a feature a few months ago called Billing Meters which gives massive customizability but with a minimal amount of code and engineering effort.