itemstats: Add tooltip string method tests

This commit adds tests to ensure proper formatting of the tooltip string
so as to prevent bugs like the one fixed by 7ca4a929.
This commit is contained in:
Jordan Atwood
2020-03-04 15:41:12 -08:00
parent 0451944522
commit bb0e693aea
2 changed files with 92 additions and 1 deletions

View File

@@ -236,7 +236,8 @@ public class ItemStatOverlay extends Overlay
return b.toString();
}
private String buildStatBonusString(ItemStats s)
@VisibleForTesting
String buildStatBonusString(ItemStats s)
{
ItemStats other = null;
final ItemEquipmentStats currentEquipment = s.getEquipment();