Testing a simple web app in Mule with JUnit
A simple JUnit test for when you just can’t remember the Mule JUnit testing syntax 😉 Mule flow A Mule flow that takes a username as input and concatenates it with a “Hello”. The request is done by a GET
Just another Tech blog from a forgetful mind
A simple JUnit test for when you just can’t remember the Mule JUnit testing syntax 😉 Mule flow A Mule flow that takes a username as input and concatenates it with a “Hello”. The request is done by a GET
System under test class example: import my.special.sclient … class App { Sclient sclient = getNewSclient(); public String methodA(String input) { return sclient.getValue(input); } protected Sclient getNewSclient() { return new Sclient(); } } Test class example: import org.mockito.InjectMocks; import org.mockito.Spy; import
From time to time I need to check so that a function correctly logs error messages to the application log. Here is one solution using Logback in a Spring application import ch.qos.logback.classic.Logger; import ch.qos.logback.classic.spi.LoggingEvent; import ch.qos.logback.core.Appender; import org.mockito.ArgumentMatcher; import org.slf4j.LoggerFactory;
In this tutorial I’m going to show how you can set up a Selenium Server as a service under Windows Server 2003. More information about Selenium testing is found here: SeleniumHQ. One thing to point out is that you can