Java

JUnit HTML Report — step-by-step Programming tutorial on Progressive Robot

JUnit HTML Report

URL: https://www.progressiverobot.com/junit-html-report/ When we configure maven-surefire-plugin to run our JUnit tests, it generates surefire-reports directory. This directory contains a txt file and an XML file for every test class. However, reading these files is not easy and it's also not easily explainable to a non-techie person. JUnit HTML Report We can use maven-surefire-report-plugin plugin to […]

Read more
Mockito Mock Static Method - PowerMock — step-by-step Programming tutorial on Progressive Robot

Mockito Mock Static Method – PowerMock

URL: https://www.progressiverobot.com/mockito-mock-static-method-powermock/ Mockito allows us to create mock objects. Since static method belongs to the class, there is no way in Mockito to mock static methods. However, we can use PowerMock along with Mockito framework to mock static methods. Mockito Mock Static Method using PowerMock PowerMock provides different modules to extend [Mockito framework](/community/tutorials/mockito-tutorial) and run […]

Read more
SOAP Webservices in Java Example using Eclipse — step-by-step Programming tutorial on Progressive Robot

SOAP Webservices in Java Example using Eclipse

URL: https://www.progressiverobot.com/soap-webservices-in-java-example-eclipse/ Soap Webservices in java can be developed in may ways. We learned about [JAX-WS SOAP Web Services](/community/tutorials/jax-ws-tutorial) in our last tutorial, today we will learn how we can create SOAP web service and it's client program using Eclipse. Here we will not use JAX-WS, we will be using Apache Axis that is integrated […]

Read more
Thread Safety in Java Singleton Classes — step-by-step Programming tutorial on Progressive Robot

Thread Safety in Java Singleton Classes

Singleton is one of the most widely used creational design pattern to restrict the object creation by applications. In real world applications, resources like Database connections or Enterprise Information Systems (EIS) are limited and should be used wisely to avoid any resource crunch. To achieve this, we can implement Singleton design pattern to create a wrapper class around the resource and limit the number of object created at runtime to one.

Read more
AXIS2 Web Services Tutorial — step-by-step Programming tutorial on Progressive Robot

AXIS2 Web Services Tutorial

Recently I was trying to upgrade my Apache Axis2 skills from 1.3 to latest version 1.5.4 and I was not able to find out any tutorial that is self-explanatory and covering the latest release. So it forms the basis of my post for Axis2 Web Services Tutorial.

Read more
How to Compile and Run Java Program from another Java Program — step-by-step Programming tutorial on Progressive Robot

How to Compile and Run Java Program from another Java Program

Have you ever thought if it's possible to compile and run a java program from another java program? We can use Runtime.exec(String cmd) to issue commands to the underlying operating system. We will use the same approach to compile and run a java program from another java program. Compile and Run Java Program from another […]

Read more
eclipse.ini vm arguments - eclipse.ini File Location Mac, Windows — step-by-step Programming tutorial on Progressive Robot

eclipse.ini vm arguments – eclipse.ini File Location Mac, Windows

eclipse.ini is the configuration file used to control the Eclipse startup. We can configure Eclipse VM arguments such as JDK to be used (eclipse.ini vm), permgen space, maximum and minimum heap size using Xms, Xmx parameters. eclipe.ini File Location For windows, it's in the same directory as eclipse.exe file, as shown in below image. ![eclipse.ini […]

Read more
How to convert Java Date into Specific TimeZone format — step-by-step Programming tutorial on Progressive Robot

How to convert Java Date into Specific TimeZone format

In the last example, we learned how to [convert Date to String in Java](/community/tutorials/convert-string-date-java). In this example, I am converting a Java Date object from one timezone to another. We will use [SimpleDateFormat](/community/tutorials/java-simpledateformat-java-date-format) class to format the Date in a specific format and we will set its timezone to print the date in a specific […]

Read more
CHAT