01: /*
02: * Copyright 2006-2007 The Kuali Foundation.
03: *
04: * Licensed under the Educational Community License, Version 1.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.opensource.org/licenses/ecl1.php
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package org.kuali.test.suite;
17:
18: import junit.framework.TestSuite;
19:
20: /**
21: * The suite of all test classes or methods which {@link RelatesTo} a Kuali JIRA issue which is currently in an open or in-progress
22: * state. IDEs or Ant can run this as JUnit tests. It takes well over a minute to get the list of open issues from JIRA, so have
23: * patience.
24: *
25: * @see org.kuali.test.suite.RelatesTo
26: */
27: public class OpenOrInProgressSuite extends JiraRelatedSuite {
28:
29: public static TestSuite suite() throws Exception {
30: return new OpenOrInProgressSuite()
31: .getSuite(State.OPEN_OR_IN_PROGRESS);
32: }
33:
34: /**
35: * The suite of all test methods (including those within test class sub-suites) which do not {@link RelatesTo} a JIRA issue
36: * which is currently in an open or in-progress state. IDEs or Ant can run this as JUnit tests. It takes well over a minute to
37: * get the list of open issues from JIRA, so have patience.
38: */
39: public static class Not extends JiraRelatedSuite {
40: public static TestSuite suite() throws Exception {
41: return new OpenOrInProgressSuite()
42: .getNegativeSuite(State.OPEN_OR_IN_PROGRESS);
43: }
44: }
45: }
|