ArimaSpec extends DefaultArimaSpec { @Override public void setQ(int value) { if (value > MAXQ) { throw new TramoException("Q must be <= "+Integer.toString(MAXQ)); } super.setQ(value); } ArimaSpec(); @Override ArimaSpec clone(); @Override void setP(int value); @Override void setD(int value); @Override void setQ(int value); @Override void setBP(int value); @Override void setBD(int value); @Override void setBQ(int value); static final int MAXP; }
@Test(expected = TramoException.class) public void testSetQUpperBound() { ArimaSpec spec = new ArimaSpec(); spec.setQ(5); }