@Test public void testDiff() throws Exception { T a = createInitializedInstance(); T b = createInitializedInstance(); T diff = createInitializedInstance(); int index = 1; for (Field field : getClazz().getFields()) { if (MetricsUtil.isNumericField(field)) { field.set(a, 2 * index); index += 1; } } a.diff(b, diff); int increment = 1; for (Field field : getClazz().getFields()) { if (MetricsUtil.isNumericField(field)) { MetricsUtil.testValue(diff, field, increment); increment += 1; } } }
public abstract T diff(@Nullable T b, @Nullable T output);
SystemMetrics implements Serializable { public abstract T diff(@Nullable T b, @Nullable T output); }
SystemMetrics implements Serializable { public abstract T diff(@Nullable T b, @Nullable T output);  }
SystemMetrics implements Serializable { public abstract T diff(@Nullable T b, @Nullable T output);  abstract T sum(@Nullable T b, @Nullable T output); abstract T diff(@Nullable T b, @Nullable T output); abstract T set(T b); T sum(@Nullable T b); T diff(@Nullable T b); }
SystemMetrics implements Serializable { public abstract T diff(@Nullable T b, @Nullable T output);  abstract T sum(@Nullable T b, @Nullable T output); abstract T diff(@Nullable T b, @Nullable T output); abstract T set(T b); T sum(@Nullable T b); T diff(@Nullable T b);  }