@Test(expected = IllegalArgumentException.class) public void testException() { TimeSeriesVersions.check(-1); }
public static int check(int version) { if (version < 0) { throw new IllegalArgumentException("Bad version " + version); } return version; }
TimeSeriesVersions { public static int check(int version) { if (version < 0) { throw new IllegalArgumentException("Bad version " + version); } return version; } }
TimeSeriesVersions { public static int check(int version) { if (version < 0) { throw new IllegalArgumentException("Bad version " + version); } return version; } private  TimeSeriesVersions(); }
TimeSeriesVersions { public static int check(int version) { if (version < 0) { throw new IllegalArgumentException("Bad version " + version); } return version; } private  TimeSeriesVersions(); static int check(int version); }
TimeSeriesVersions { public static int check(int version) { if (version < 0) { throw new IllegalArgumentException("Bad version " + version); } return version; } private  TimeSeriesVersions(); static int check(int version);  }