@Test (expected = IllegalStateException.class) public void getIntRangeMaxWhenKindIsNotIntRangeTest() { question.getIntRangeMax(); }
public int getIntRangeMax() { Matcher matcher = intRangeMatcher(); if (matcher.matches()) { return Integer.parseInt(matcher.group(2)); } else { throw new IllegalStateException("Not an intrange"); } }
FeedbackQuestion { public int getIntRangeMax() { Matcher matcher = intRangeMatcher(); if (matcher.matches()) { return Integer.parseInt(matcher.group(2)); } else { throw new IllegalStateException("Not an intrange"); } } }
FeedbackQuestion { public int getIntRangeMax() { Matcher matcher = intRangeMatcher(); if (matcher.matches()) { return Integer.parseInt(matcher.group(2)); } else { throw new IllegalStateException("Not an intrange"); } } FeedbackQuestion();  FeedbackQuestion(int id, String question, String kind); }
FeedbackQuestion { public int getIntRangeMax() { Matcher matcher = intRangeMatcher(); if (matcher.matches()) { return Integer.parseInt(matcher.group(2)); } else { throw new IllegalStateException("Not an intrange"); } } FeedbackQuestion();  FeedbackQuestion(int id, String question, String kind); int getId(); void setId(int id); String getQuestion(); void setQuestion(String question); String getKind(); void setKind(String kind); boolean isText(); boolean isIntRange(); int getIntRangeMin(); int getIntRangeMax(); }
FeedbackQuestion { public int getIntRangeMax() { Matcher matcher = intRangeMatcher(); if (matcher.matches()) { return Integer.parseInt(matcher.group(2)); } else { throw new IllegalStateException("Not an intrange"); } } FeedbackQuestion();  FeedbackQuestion(int id, String question, String kind); int getId(); void setId(int id); String getQuestion(); void setQuestion(String question); String getKind(); void setKind(String kind); boolean isText(); boolean isIntRange(); int getIntRangeMin(); int getIntRangeMax();  }