A quick and practical guide to Selenide.
Search Results for: junit
Check if a String Contains Non-Alphanumeric Characters
A quick and practical guide to checking if a String contains non-alphanumeric characters.
Check if a File Is Empty in Java
Explore a few efficient and straightforward ways to check if a file is empty in Java.
Asserting Equality on Two Classes Without an equals() Method
Learn a few ways of testing for the equality of two objects without the equals() method.
Generating WSDL Stubs With Gradle
Learn how to generate WSDL stubs with Gradle and use the generated stub classes.
Mocking Private Fields With Mockito
Explore how to mock private fields with Mockito.
Gray Box Testing Using the OAT Technique
Gray Box testing is a statistical technique that allows us to test a lot of edge cases without testing every single possible permutation of input. We look at how it works and how to implement it with parameterized tests in JUnit.
Convert Hashmap to JSON Object in Java
Learn how to convert a Map to JSON in Java.
Generating Javadoc With Gradle
Learn how to generate Javadoc using the Gradle build system.
Write Console Output to Text File in Java
Lern how to make System.out.println() print data to a file by replacing the default System.out
Execute a Method Only Once in Java
Discover different approaches to executing a method only once.
Send MultipartFile Request With RestAssured
When testing, we may wish to send uploads to endpoints that use Multipart data. We look at how RestAssured can help us with these tests and how to mock those services with Wiremock.
Difference Between implementation and compile in Gradle
Learn the difference between “implementation” and “compile” in Gradle and provide best practices for effective dependency management
Uploading File Using Selenium Webdriver in Java
Learn how to upload files using Selenium WebDriver.
Print “” Quotes Around a String in Java
Explore three different approaches to printing a string with quotes (“) around it.
Retrieve the Value of an HTML Input in Selenium WebDriver
Learn how to set up a Selenium project and retrieve the value of an HTML input field from a web page.
StaleElementReferenceException in Selenium
Learn what a StaleElementReferenceException in Selenium is and why it occurs.
Cancel an Ongoing Flux in Spring WebFlux
A quick and practical guide to cancelling Flux in Spring Webflux.
Integer.parseInt(scanner.nextLine()) and scanner.nextInt() in Java
Learn the differences between Integer.parseInt(Scanner.nextLine()) and Scanner.nextInt() through examples.
Java Modularity and Unit Testing
Explore Java Modularity and learn how it affected the testing in Java applications.