dufoli commented on a change in pull request #721:
URL: https://github.com/apache/cxf/pull/721#discussion_r523397190
##########
File path: core/src/main/java/org/apache/cxf/common/util/ASMHelper.java
##########
@@ -342,7 +342,10 @@ public ClassWriter createClassWriter() {
TypeHelperClassLoader loader = getTypeHelperClassLoader(l);
return loader.lookupDefinedClass(className);
}
-
+ public static void addExternalClass(String className, ClassLoader l,
Class<?> cls) {
Review comment:
I have issue with test class. I use the mock system to create bus and
return the good ASMHelper.
```
Bus bus = control.createMock(Bus.class);
EasyMock.expect(bus.getExtension(ASMHelper.class)).andReturn(new
ASMHelperImpl()).anyTimes();
ExtensionClassCreator extr = new ExtensionClassGenerator(bus);
EasyMock.expect(bus.getExtension(ExtensionClassCreator.class)).andStubReturn(extr);
```
but I get error:
java.lang.IllegalStateException:
missing behavior definition for the preceding method call:
Bus.getExtension(interface org.apache.cxf.common.util.ASMHelper)
Usage is: expect(a.foo()).andXXX()
at
org.apache.cxf.wsdl.JAXBExtensionHelperTest.testAddTestExtension(JAXBExtensionHelperTest.java:88)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]