Skip to content
Permalink
Browse files
Merge pull request #6 from myrle-krantz/develop
Updating package names.
  • Loading branch information
myrle-krantz committed Apr 16, 2018
2 parents 052fbf1 + a7b380c commit 98774b17c588029901c3e012c3c4382ff457462a
Showing 2 changed files with 18 additions and 21 deletions.
@@ -1,7 +1,5 @@
# Apache Fineract CN default setup

[![Join the chat at https://gitter.im/mifos-initiative/mifos.io](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/mifos-initiative/mifos.io?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

This project provides resources which can be used to create a default setup for microservices in [Apache Fineract CN](https://github.com/search?q=org%3Aapache+fineract) deployment. It is dependent on the apis and importers of those microservices.

## Abstract
@@ -16,13 +16,22 @@
* specific language governing permissions and limitations
* under the License.
*/
package io.mifos;
package org.apache.fineract.cn;

import io.mifos.accounting.api.v1.client.LedgerManager;
import io.mifos.accounting.api.v1.domain.Account;
import io.mifos.accounting.api.v1.domain.Ledger;
import io.mifos.accounting.importer.AccountImporter;
import io.mifos.accounting.importer.LedgerImporter;
import java.io.IOException;
import java.net.URL;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import javax.validation.ConstraintViolation;
import javax.validation.Validation;
import javax.validation.Validator;
import javax.validation.ValidatorFactory;
import org.apache.fineract.cn.accounting.api.v1.client.LedgerManager;
import org.apache.fineract.cn.accounting.api.v1.domain.Account;
import org.apache.fineract.cn.accounting.api.v1.domain.Ledger;
import org.apache.fineract.cn.accounting.importer.AccountImporter;
import org.apache.fineract.cn.accounting.importer.LedgerImporter;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
@@ -35,16 +44,6 @@
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.test.context.junit4.SpringRunner;

import javax.validation.ConstraintViolation;
import javax.validation.Validation;
import javax.validation.Validator;
import javax.validation.ValidatorFactory;
import java.io.IOException;
import java.net.URL;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;

/**
* @author Myrle Krantz
*/
@@ -87,7 +86,7 @@ class CollectCreatedLedgers implements Answer {
}

@Override
public Void answer(InvocationOnMock invocation) throws Throwable {
public Void answer(InvocationOnMock invocation) {
final Ledger ledger = invocation.getArgumentAt(indexOfLedger, Ledger.class);

final ValidatorFactory factory = Validation.buildDefaultValidatorFactory();
@@ -103,7 +102,7 @@ public Void answer(InvocationOnMock invocation) throws Throwable {

class ReturnLedgers implements Answer {
@Override
public Ledger answer(InvocationOnMock invocation) throws Throwable {
public Ledger answer(InvocationOnMock invocation) {
final String ledgerIdentifier = invocation.getArgumentAt(0, String.class);
return createdLedgers.get(ledgerIdentifier);
}
@@ -119,7 +118,7 @@ public Ledger answer(InvocationOnMock invocation) throws Throwable {
}

@Override
public Void answer(InvocationOnMock invocation) throws Throwable {
public Void answer(InvocationOnMock invocation) {
final T thingy = invocation.getArgumentAt(indexOfArgument, thingyClass);

final ValidatorFactory factory = Validation.buildDefaultValidatorFactory();

0 comments on commit 98774b1

Please sign in to comment.