use of org.mule.runtime.module.extension.internal.runtime.objectbuilder.DefaultObjectBuilder in project mule by mulesoft.
the class DefaultObjectBuilderTestCase method abstractClass.
@Test(expected = IllegalArgumentException.class)
public void abstractClass() throws Exception {
builder = new DefaultObjectBuilder(TestAbstract.class);
builder.build(resolvingContext);
}
use of org.mule.runtime.module.extension.internal.runtime.objectbuilder.DefaultObjectBuilder in project mule by mulesoft.
the class DefaultObjectBuilderTestCase method noDefaultConstructor.
@Test(expected = IllegalArgumentException.class)
public void noDefaultConstructor() throws Exception {
builder = new DefaultObjectBuilder(TestNoDefaultConstructor.class);
builder.build(resolvingContext);
}
use of org.mule.runtime.module.extension.internal.runtime.objectbuilder.DefaultObjectBuilder in project mule by mulesoft.
the class DefaultObjectBuilderTestCase method before.
@Before
public void before() {
builder = new DefaultObjectBuilder(PROTOTYPE_CLASS);
nameField = getField(PROTOTYPE_CLASS, "name", reflectionCache).get();
ageField = getField(PROTOTYPE_CLASS, "age", reflectionCache).get();
when(resolvingContext.getEvent()).thenReturn(event);
when(resolvingContext.getConfig()).thenReturn(empty());
}
Aggregations