Factor out labelValue length check to abstract base class and small name fix

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=131902964
This commit is contained in:
shikhman 2016-08-31 19:47:13 -07:00 committed by Ben McIlwain
parent a0f1a8b0bc
commit c11ac3129f
7 changed files with 80 additions and 42 deletions

View file

@ -69,7 +69,9 @@ public class StoredMetricTest {
Boolean.class);
thrown.expect(IllegalArgumentException.class);
thrown.expectMessage("The count of labelValues must be equal to");
thrown.expectMessage(
"The count of labelValues must be equal to the underlying Metric's count of labels.");
dimensionalMetric.set(true, "foo");
}