Skip to content
Permalink
Browse files
More Updates
Update Loan, Deposit, Teller, Income stat and balance sheet reports
  • Loading branch information
awasum committed Sep 29, 2017
1 parent a3dee1e commit 2408d218a7aa88d427b13f5f64d0459c6a12bfe8
Showing 23 changed files with 1,960 additions and 372 deletions.
@@ -1,3 +1,18 @@
/*
* Copyright 2017 The Mifos Initiative.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.mifos.reporting.api.v1.domain;

public class Sample {
@@ -0,0 +1,37 @@
/*
* Copyright 2017 The Mifos Initiative.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.mifos.reporting;

import io.mifos.reporting.api.v1.domain.ReportDefinition;
import org.junit.Assert;
import org.junit.Test;

import java.util.List;

public class TestBalanceSheetReportSpecification extends AbstractReportingSpecificationTest {

public TestBalanceSheetReportSpecification() {
super();
}

@Test
public void shouldReturnReportDefinition() {
final List<ReportDefinition> reportDefinitions = super.testSubject.fetchReportDefinitions("Accounting");
Assert.assertTrue(
reportDefinitions.stream().anyMatch(reportDefinition -> reportDefinition.getIdentifier().equals("Balancesheet"))
);
}
}
@@ -0,0 +1,36 @@
/*
* Copyright 2017 The Mifos Initiative.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.mifos.reporting;

import io.mifos.reporting.api.v1.domain.ReportDefinition;
import org.junit.Assert;
import org.junit.Test;

import java.util.List;

public class TestDepositListReportSpecification extends AbstractReportingSpecificationTest {
public TestDepositListReportSpecification() {
super();
}

@Test
public void shouldReturnReportDefinition() {
final List<ReportDefinition> reportDefinitions = super.testSubject.fetchReportDefinitions("Deposit");
Assert.assertTrue(
reportDefinitions.stream().anyMatch(reportDefinition -> reportDefinition.getIdentifier().equals("Listing"))
);
}
}
@@ -0,0 +1,36 @@
/*
* Copyright 2017 The Mifos Initiative.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.mifos.reporting;

import io.mifos.reporting.api.v1.domain.ReportDefinition;
import org.junit.Assert;
import org.junit.Test;

import java.util.List;

public class TestIncomeStatementReportSpecification extends AbstractReportingSpecificationTest {
public TestIncomeStatementReportSpecification() {
super();
}

@Test
public void shouldReturnReportDefinition() {
final List<ReportDefinition> reportDefinitions = super.testSubject.fetchReportDefinitions("Accounting");
Assert.assertTrue(
reportDefinitions.stream().anyMatch(reportDefinition -> reportDefinition.getIdentifier().equals("Incomestatement"))
);
}
}
@@ -0,0 +1,36 @@
/*
* Copyright 2017 The Mifos Initiative.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.mifos.reporting;

import io.mifos.reporting.api.v1.domain.ReportDefinition;
import org.junit.Assert;
import org.junit.Test;

import java.util.List;

public class TestLoanListReportSpecification extends AbstractReportingSpecificationTest{
public TestLoanListReportSpecification() {
super();
}

@Test
public void shouldReturnReportDefinition() {
final List<ReportDefinition> reportDefinitions = super.testSubject.fetchReportDefinitions("Loan");
Assert.assertTrue(
reportDefinitions.stream().anyMatch(reportDefinition -> reportDefinition.getIdentifier().equals("Listing"))
);
}
}

This file was deleted.

@@ -0,0 +1,36 @@
/*
* Copyright 2017 The Mifos Initiative.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.mifos.reporting;

import io.mifos.reporting.api.v1.domain.ReportDefinition;
import org.junit.Assert;
import org.junit.Test;

import java.util.List;

public class TestTellerListReportSpecification extends AbstractReportingSpecificationTest {
public TestTellerListReportSpecification() {
super();
}

@Test
public void shouldReturnReportDefinition() {
final List<ReportDefinition> reportDefinitions = super.testSubject.fetchReportDefinitions("Teller");
Assert.assertTrue(
reportDefinitions.stream().anyMatch(reportDefinition -> reportDefinition.getIdentifier().equals("Listing"))
);
}
}
@@ -0,0 +1,36 @@
/*
* Copyright 2017 The Mifos Initiative.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.mifos.reporting;

import io.mifos.reporting.api.v1.domain.ReportDefinition;
import org.junit.Assert;
import org.junit.Test;

import java.util.List;

public class TestTellerTransactionReportSpecification extends AbstractReportingSpecificationTest {
public TestTellerTransactionReportSpecification() {
super();
}

@Test
public void shouldReturnReportDefinition() {
final List<ReportDefinition> reportDefinitions = super.testSubject.fetchReportDefinitions("Teller");
Assert.assertTrue(
reportDefinitions.stream().anyMatch(reportDefinition -> reportDefinition.getIdentifier().equals("Transactions"))
);
}
}
@@ -1,6 +1,6 @@
#Fri Mar 17 17:54:20 CET 2017
#Sun Sep 10 13:58:36 WAT 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-all.zip
0 gradlew 100644 → 100755
Empty file.
@@ -1,5 +1,5 @@
/*
* Copyright 2016 The Mifos Initiative.
* Copyright 2017 The Mifos Initiative.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
/*
* Copyright 2016 The Mifos Initiative.
* Copyright 2017 The Mifos Initiative.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

0 comments on commit 2408d21

Please sign in to comment.