I have camel route as below
public class MainRouteBuilder extends RouteBuilder {
@Autowired
private CcsRouteCommonProperties commonProps;
/**
* {@inheritDoc}
*/
@Override
public void configure() throws Exception {
}
}
I have written test using ExchangeTestSupport as below
public class MainRouteBuilderTest extends ExchangeTestSupport {
/**
* {@inheritDoc}
*/
@Override
public RoutesBuilder createRouteBuilder() throws Exception {
}
@Test
public void shouldProcess() throws Exception {
}
}
I am trying to mock CcsRouteCommonProperties something like below @Mock private CcsRouteCommonProperties commonProps;
How to mock the above field using mockito(@RunWith(MockitoJUnitRunner.class))