use of spoon.processing.FactoryAccessor in project spoon by INRIA.
the class IntercessionContractTest method testContract.
@Test
public void testContract() throws Throwable {
Factory factory = new FactoryImpl(new DefaultCoreFactory(), new StandardEnvironment());
Object element = instance;
if (element instanceof FactoryAccessor) {
((FactoryAccessor) element).setFactory(factory);
}
// we invoke the setter
toTest.invoke(element, new Object[] { null });
}
Aggregations