Example #1
0
 @Parameters(name = "{index}: scale={0}")
 public static Iterable<Object[]> data() {
   final List<Object[]> data = new ArrayList<Object[]>();
   for (final ScaleMetrics s : TestSettings.SCALES) {
     data.add(new Object[] {s, s.getDefaultArithmetic()});
   }
   return data;
 }
 @Parameters(name = "{index}: {0}, {1}")
 public static Iterable<Object[]> data() {
   final List<Object[]> data = new ArrayList<Object[]>();
   for (final ScaleMetrics s : TestSettings.SCALES) {
     for (final OverflowMode om : OverflowMode.values()) {
       final DecimalArithmetic arith =
           om.isChecked() ? s.getDefaultCheckedArithmetic() : s.getDefaultArithmetic();
       data.add(new Object[] {s, om, arith});
     }
   }
   return data;
 }