use of org.kuali.kfs.fp.document.AdvanceDepositDocument in project cu-kfs by CU-CommunityApps.
the class AdvanceDepositServiceImplTest method setUp.
@Before
public void setUp() {
advanceDepositService = new TestableAdvanceDepositServiceImpl();
advanceDepositService.setBusinessObjectService(new MockBusinessObjectService());
advanceDepositService.setDateTimeService(new DateTimeServiceImpl());
advanceDepositService.setParameterService(new MockParameterServiceImpl());
mapping = new IncomingWireAchMapping();
mapping.setShortDescription("ARMY");
ArrayList<String> methodNames = new ArrayList<>();
for (Method method : AdvanceDepositDocument.class.getMethods()) {
if (!Modifier.isFinal(method.getModifiers()) && !method.getName().startsWith("set") && !method.getName().startsWith("get")) {
methodNames.add(method.getName());
}
}
IMockBuilder<AdvanceDepositDocument> builder = EasyMock.createMockBuilder(AdvanceDepositDocument.class).addMockedMethods(methodNames.toArray(new String[0]));
advanceDepositDocument = builder.createNiceMock();
GlobalVariables.getMessageMap().clearErrorMessages();
}
Aggregations