FINERACT-823 Gradle modernizer fixing violations

This commit is contained in:
percyashu
2020-03-23 00:54:00 +01:00
committed by Michael Vorburger ⛑️
parent ef5bba4d52
commit 2e620b4de8
50 changed files with 179 additions and 155 deletions
@@ -125,7 +125,7 @@ public class StorageTest {
verify(this.notificationGeneratorWritePlatformService, times(1)).create(refEq(notification));
verify(this.notificationMapperWritePlatformService, times(1)).create(refEq(notificationMapper));
verify(this.notificationGeneratorReadRepositoryWrapper, times(1)).findById(1L);
assertEquals(actualGeneratedNotificationId, new Long(1));
assertEquals(actualGeneratedNotificationId, Long.valueOf(1));
}
private String getCurrentDateTime() {
@@ -79,7 +79,7 @@ public class TopicTest {
verify(this.roleRepository, times(1)).save(role);
verify(this.topicWritePltfService, times(1)).create(refEq(topic));
assertEquals(topicId, new Long(1));
assertEquals(topicId, Long.valueOf(1));
}
@@ -97,7 +97,7 @@ public class TopicTest {
Long subscriberId = this.topicSubscriberWritePltfService.create(topicSubscriber);
verify(this.topicSubscriberWritePltfService, times(1)).create(refEq(topicSubscriber));
assertEquals(subscriberId, new Long(1));
assertEquals(subscriberId, Long.valueOf(1));
}
@@ -20,7 +20,6 @@ package org.apache.fineract.template;
import static org.junit.Assert.assertEquals;
import com.google.common.base.Charsets;
import com.google.common.io.Resources;
import com.google.common.reflect.TypeToken;
import com.google.gson.Gson;
@@ -32,6 +31,7 @@ import java.lang.reflect.Field;
import java.lang.reflect.Type;
import java.math.RoundingMode;
import java.net.MalformedURLException;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
@@ -83,8 +83,8 @@ public class TemplateMergeServiceTest {
Map<String, Object> scopes = new HashMap<>();
scopes.put("installments", installments);
String templateText = Resources.toString(Resources.getResource("template.mustache"), Charsets.UTF_8);
String expectedOutput = Resources.toString(Resources.getResource("template-expected.html"), Charsets.UTF_8);
String templateText = Resources.toString(Resources.getResource("template.mustache"), StandardCharsets.UTF_8);
String expectedOutput = Resources.toString(Resources.getResource("template-expected.html"), StandardCharsets.UTF_8);
String output = compileTemplateText(templateText, scopes);
assertEquals(expectedOutput, output);