Migrate to Java 8
This commit is contained in:
@@ -27,9 +27,9 @@ apply plugin: 'project-report'
|
|||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
|
|
||||||
/* define the valid syntax level for source files */
|
/* define the valid syntax level for source files */
|
||||||
sourceCompatibility = JavaVersion.VERSION_1_7
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||||
/* define binary compatibility version */
|
/* define binary compatibility version */
|
||||||
targetCompatibility = JavaVersion.VERSION_1_7
|
targetCompatibility = JavaVersion.VERSION_1_8
|
||||||
|
|
||||||
project.ext.springBootVersion = '1.1.6.RELEASE'
|
project.ext.springBootVersion = '1.1.6.RELEASE'
|
||||||
project.ext.springVersion = '4.0.7.RELEASE'
|
project.ext.springVersion = '4.0.7.RELEASE'
|
||||||
|
|||||||
Binary file not shown.
@@ -1,6 +1,6 @@
|
|||||||
#Tue Oct 22 19:36:27 IST 2013
|
#Fri Jan 29 13:04:36 IST 2016
|
||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
distributionUrl=http\://services.gradle.org/distributions/gradle-1.8-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-bin.zip
|
||||||
|
|||||||
Vendored
+1
-1
@@ -10,7 +10,7 @@
|
|||||||
DEFAULT_JVM_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=8005,server=y,suspend=n"
|
DEFAULT_JVM_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=8005,server=y,suspend=n"
|
||||||
|
|
||||||
CATALINA_OPTS="-Xms512m -Xmx2048m"
|
CATALINA_OPTS="-Xms512m -Xmx2048m"
|
||||||
JAVA_OPTS="-Xms512m -Xmx2048m -XX:PermSize=256m -XX:MaxPermSize=512m"
|
JAVA_OPTS="-Xms512m -Xmx2048m"
|
||||||
|
|
||||||
APP_NAME="Gradle"
|
APP_NAME="Gradle"
|
||||||
APP_BASE_NAME=`basename "$0"`
|
APP_BASE_NAME=`basename "$0"`
|
||||||
|
|||||||
Vendored
+2
-1
@@ -12,7 +12,8 @@ if "%OS%"=="Windows_NT" setlocal
|
|||||||
set DEFAULT_JVM_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8005,server=y,suspend=n
|
set DEFAULT_JVM_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8005,server=y,suspend=n
|
||||||
|
|
||||||
set CATALINA_OPTS=-Xms512m -Xmx512m
|
set CATALINA_OPTS=-Xms512m -Xmx512m
|
||||||
set JAVA_OPTS=-Xms512m -Xmx512m -XX:PermSize=256m -XX:MaxPermSize=512m
|
set JAVA_OPTS=-Xms512m -Xmx512m
|
||||||
|
|
||||||
|
|
||||||
set DIRNAME=%~dp0
|
set DIRNAME=%~dp0
|
||||||
if "%DIRNAME%" == "" set DIRNAME=.
|
if "%DIRNAME%" == "" set DIRNAME=.
|
||||||
|
|||||||
+3
-1
@@ -4990,7 +4990,9 @@ public class ClientLoanIntegrationTest {
|
|||||||
"inArrearsTolerance", "graceOnArrearsAgeing");
|
"inArrearsTolerance", "graceOnArrearsAgeing");
|
||||||
|
|
||||||
for (String comparisonAttribute : comparisonAttributes) {
|
for (String comparisonAttribute : comparisonAttributes) {
|
||||||
assertEquals(JsonPath.from(loanProductDetails).get(comparisonAttribute), JsonPath.from(loanDetails).get(comparisonAttribute));
|
Object val1 = JsonPath.from(loanProductDetails).get(comparisonAttribute);
|
||||||
|
Object val2 = JsonPath.from(loanDetails).get(comparisonAttribute);
|
||||||
|
assertEquals(val1, val2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+10
-3
@@ -19,9 +19,13 @@
|
|||||||
package org.apache.fineract.integrationtests.common;
|
package org.apache.fineract.integrationtests.common;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
import static org.junit.Assert.assertEquals;
|
import static org.junit.Assert.assertEquals;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
|
||||||
import org.apache.commons.lang3.StringUtils;
|
import org.apache.commons.lang3.StringUtils;
|
||||||
|
|
||||||
import com.google.common.reflect.TypeToken;
|
import com.google.common.reflect.TypeToken;
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import com.jayway.restassured.specification.RequestSpecification;
|
import com.jayway.restassured.specification.RequestSpecification;
|
||||||
@@ -38,7 +42,8 @@ public class CenterHelper {
|
|||||||
public static CenterDomain retrieveByID(int id, final RequestSpecification requestSpec, final ResponseSpecification responseSpec) {
|
public static CenterDomain retrieveByID(int id, final RequestSpecification requestSpec, final ResponseSpecification responseSpec) {
|
||||||
final String GET_CENTER_BY_ID_URL = CENTERS_URL + "/" + id + "?associations=groupMembers&" + Utils.TENANT_IDENTIFIER;
|
final String GET_CENTER_BY_ID_URL = CENTERS_URL + "/" + id + "?associations=groupMembers&" + Utils.TENANT_IDENTIFIER;
|
||||||
System.out.println("------------------------ RETRIEVING CENTER AT " + id + "-------------------------");
|
System.out.println("------------------------ RETRIEVING CENTER AT " + id + "-------------------------");
|
||||||
final String jsonData = new Gson().toJson(Utils.performServerGet(requestSpec, responseSpec, GET_CENTER_BY_ID_URL, ""));
|
Object get = Utils.performServerGet(requestSpec, responseSpec, GET_CENTER_BY_ID_URL, "");
|
||||||
|
final String jsonData = new Gson().toJson(get);
|
||||||
return new Gson().fromJson(jsonData, new TypeToken<CenterDomain>() {}.getType());
|
return new Gson().fromJson(jsonData, new TypeToken<CenterDomain>() {}.getType());
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -46,14 +51,16 @@ public class CenterHelper {
|
|||||||
final ResponseSpecification responseSpec) {
|
final ResponseSpecification responseSpec) {
|
||||||
final String GET_CENTER = CENTERS_URL + "?paged=true&limit=-1&" + Utils.TENANT_IDENTIFIER;
|
final String GET_CENTER = CENTERS_URL + "?paged=true&limit=-1&" + Utils.TENANT_IDENTIFIER;
|
||||||
System.out.println("------------------------ RETRIEVING CENTERS-------------------------");
|
System.out.println("------------------------ RETRIEVING CENTERS-------------------------");
|
||||||
final String jsonData = new Gson().toJson(Utils.performServerGet(requestSpec, responseSpec, GET_CENTER, "pageItems"));
|
Object get = Utils.performServerGet(requestSpec, responseSpec, GET_CENTER, "pageItems");
|
||||||
|
final String jsonData = new Gson().toJson(get);
|
||||||
return new Gson().fromJson(jsonData, new TypeToken<ArrayList<CenterDomain>>() {}.getType());
|
return new Gson().fromJson(jsonData, new TypeToken<ArrayList<CenterDomain>>() {}.getType());
|
||||||
}
|
}
|
||||||
|
|
||||||
public static ArrayList<CenterDomain> listCenters(final RequestSpecification requestSpec, final ResponseSpecification responseSpec) {
|
public static ArrayList<CenterDomain> listCenters(final RequestSpecification requestSpec, final ResponseSpecification responseSpec) {
|
||||||
final String GET_CENTER = CENTERS_URL + "?limit=-1&" + Utils.TENANT_IDENTIFIER;
|
final String GET_CENTER = CENTERS_URL + "?limit=-1&" + Utils.TENANT_IDENTIFIER;
|
||||||
System.out.println("------------------------ RETRIEVING CENTERS-------------------------");
|
System.out.println("------------------------ RETRIEVING CENTERS-------------------------");
|
||||||
final String jsonData = new Gson().toJson(Utils.performServerGet(requestSpec, responseSpec, GET_CENTER, ""));
|
Object get = Utils.performServerGet(requestSpec, responseSpec, GET_CENTER, "");
|
||||||
|
final String jsonData = new Gson().toJson(get);
|
||||||
return new Gson().fromJson(jsonData, new TypeToken<ArrayList<CenterDomain>>() {}.getType());
|
return new Gson().fromJson(jsonData, new TypeToken<ArrayList<CenterDomain>>() {}.getType());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+3
-2
@@ -38,9 +38,10 @@ public class OfficeHelper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public OfficeDomain retrieveOfficeByID(int id) {
|
public OfficeDomain retrieveOfficeByID(int id) {
|
||||||
final String json = new Gson().toJson(Utils.performServerGet(
|
Object get = Utils.performServerGet(
|
||||||
requestSpec, responseSpec, OFFICE_URL + "/" + id + "?"
|
requestSpec, responseSpec, OFFICE_URL + "/" + id + "?"
|
||||||
+ Utils.TENANT_IDENTIFIER, ""));
|
+ Utils.TENANT_IDENTIFIER, "");
|
||||||
|
final String json = new Gson().toJson(get);
|
||||||
return new Gson().fromJson(json, new TypeToken<OfficeDomain>() {
|
return new Gson().fromJson(json, new TypeToken<OfficeDomain>() {
|
||||||
}.getType());
|
}.getType());
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-1
@@ -64,7 +64,8 @@ public class PaymentTypeHelper {
|
|||||||
final Integer paymentTypeId) {
|
final Integer paymentTypeId) {
|
||||||
final String GET_PAYMENTTYPE_URL = PAYMENTTYPE_URL + "/" + paymentTypeId + "?" + Utils.TENANT_IDENTIFIER;
|
final String GET_PAYMENTTYPE_URL = PAYMENTTYPE_URL + "/" + paymentTypeId + "?" + Utils.TENANT_IDENTIFIER;
|
||||||
System.out.println("---------------------------------GET PAYMENT TYPE---------------------------------------------");
|
System.out.println("---------------------------------GET PAYMENT TYPE---------------------------------------------");
|
||||||
final String jsonData = new Gson().toJson(Utils.performServerGet(requestSpec, responseSpec, GET_PAYMENTTYPE_URL, ""));
|
Object get = Utils.performServerGet(requestSpec, responseSpec, GET_PAYMENTTYPE_URL, "");
|
||||||
|
final String jsonData = new Gson().toJson(get);
|
||||||
return new Gson().fromJson(jsonData, new TypeToken<PaymentTypeDomain>() {}.getType());
|
return new Gson().fromJson(jsonData, new TypeToken<PaymentTypeDomain>() {}.getType());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user