@Test (expected = TsException.class) public void testSetDurationUpperBound() { EasterSpec spec = new EasterSpec(); spec.setDuration(16); }
public void setDuration(int value) { if (value <= 0 || value > 15) { throw new TsException("Duration", "Should be inside [1, 15]"); } duration_ = value; }
EasterSpec implements Cloneable, InformationSetSerializable { public void setDuration(int value) { if (value <= 0 || value > 15) { throw new TsException("Duration", "Should be inside [1, 15]"); } duration_ = value; } }
EasterSpec implements Cloneable, InformationSetSerializable { public void setDuration(int value) { if (value <= 0 || value > 15) { throw new TsException("Duration", "Should be inside [1, 15]"); } duration_ = value; } EasterSpec(); }
EasterSpec implements Cloneable, InformationSetSerializable { public void setDuration(int value) { if (value <= 0 || value > 15) { throw new TsException("Duration", "Should be inside [1, 15]"); } duration_ = value; } EasterSpec(); static void fillDictionary(String prefix, Map<String, Class> dic); void reset(); int getDuration(); void setDuration(int value); Type getOption(); boolean isUsed(); void setOption(Type type); boolean isJulian(); void setJulian(boolean julian); boolean isDefault(); @Override EasterSpec clone(); @Override boolean equals(Object obj); @Override int hashCode(); @Override InformationSet write(boolean verbose); @Override boolean read(InformationSet info); }
EasterSpec implements Cloneable, InformationSetSerializable { public void setDuration(int value) { if (value <= 0 || value > 15) { throw new TsException("Duration", "Should be inside [1, 15]"); } duration_ = value; } EasterSpec(); static void fillDictionary(String prefix, Map<String, Class> dic); void reset(); int getDuration(); void setDuration(int value); Type getOption(); boolean isUsed(); void setOption(Type type); boolean isJulian(); void setJulian(boolean julian); boolean isDefault(); @Override EasterSpec clone(); @Override boolean equals(Object obj); @Override int hashCode(); @Override InformationSet write(boolean verbose); @Override boolean read(InformationSet info); static final String DURATION; static final int DEF_IDUR; static boolean DEF_JULIAN; }