mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 04:52:07 -08:00
Tests: added sets implementation statistics in test_checkMissingSets
This commit is contained in:
parent
735588cc0d
commit
66a8994318
4 changed files with 150 additions and 119 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue