Hi I was wondering if it was possible to mock sections of my route in unit tests that are using a type converter. e.g.
convertBodyTo(PO.class)
My converter class looks something like
public class PurchaseOrderConverter implements TypeConverters {
@Converter
public PO convert(XYZ xyz) {
…..
}
}
From my understanding, these type converters aren’t spring beans so I can't
inject mocked beans. And I don’t believe @MockEndpoints will mock these things
either. Any ideas? I’m using Camel 2.16.1. Thanks.
