Probando a agregar tests xD
This commit is contained in:
@@ -62,7 +62,7 @@ public class InformesController {
|
||||
|
||||
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("MMMM YYYY");
|
||||
String formatedName = month.format(formatter);
|
||||
String capitalized = StringUtils.toUpperCase(formatedName);
|
||||
String capitalized = StringUtils.capitalize(formatedName);
|
||||
|
||||
Path saveFile = askForFile("Libro " + capitalized);
|
||||
if (saveFile == null) {
|
||||
@@ -89,7 +89,7 @@ public class InformesController {
|
||||
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("MMMM YYYY");
|
||||
String formatedMonth = month.format(formatter);
|
||||
|
||||
Path saveFile = askForFile("Informe Egresos - " + tipoEgreso.getNombre() + " - " + StringUtils.toUpperCase(formatedMonth));
|
||||
Path saveFile = askForFile("Informe Egresos - " + tipoEgreso.getNombre() + " - " + StringUtils.capitalize(formatedMonth));
|
||||
if (saveFile == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
package danielcortes.xyz.utils;
|
||||
|
||||
public class StringUtils {
|
||||
public static String toUpperCase(String string){
|
||||
public static String capitalize(String string){
|
||||
return string.substring(0, 1).toUpperCase() + string.substring(1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user