Tests: added sets implementation statistics in test_checkMissingSets

This commit is contained in:
Oleg Agafonov 2020-08-08 14:02:28 +04:00
parent 735588cc0d
commit 66a8994318
4 changed files with 150 additions and 119 deletions

View file

@ -256,19 +256,7 @@ public class DownloadPicturesService extends DefaultBoundedRangeModel implements
}
private String getSetNameWithYear(ExpansionSet exp) {
Calendar cal = Calendar.getInstance();
cal.setTime(exp.getReleaseDate());
String year = String.valueOf(cal.get(Calendar.YEAR));
return exp.getName() + " (" + exp.getCode() + ", " + year + ")";
/*
if (!exp.getName().contains(year)) {
return exp.getName() + " (" + year + ")";
} else {
return exp.getName();
}
*/
return exp.getName() + " (" + exp.getCode() + ", " + exp.getReleaseYear() + ")";
}
private ExpansionSet findSetByNameWithYear(String name) {