Changeset 766 for trunk/quest-core-testgeneration/src/main/java/de/ugoe/cs/quest/testgeneration/DrawFromAllSequencesGenerator.java
- Timestamp:
- 09/04/12 17:15:28 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/quest-core-testgeneration/src/main/java/de/ugoe/cs/quest/testgeneration/DrawFromAllSequencesGenerator.java
r655 r766 1 1 package de.ugoe.cs.quest.testgeneration; 2 2 3 import java.security.InvalidParameterException;4 3 import java.util.ArrayList; 5 4 import java.util.Collection; … … 73 72 * <li>minLength must be less than or equal to maxLength 74 73 * </ul> 75 * If one of these conditions is violated an {@link I nvalidParameterException} is thrown.74 * If one of these conditions is violated an {@link IllegalArgumentException} is thrown. 76 75 * </p> 77 76 * … … 97 96 // check validity of the parameters 98 97 if (numSequences < 1) { 99 throw new I nvalidParameterException("number of sequences must be at least 1 but is " +98 throw new IllegalArgumentException("number of sequences must be at least 1 but is " + 100 99 numSequences); 101 100 } 102 101 if (maxLength < 1) { 103 throw new I nvalidParameterException(102 throw new IllegalArgumentException( 104 103 "maximal allowed length of test cases must be at least 1 but is " + 105 104 maxLength); 106 105 } 107 106 if (minLength > maxLength) { 108 throw new I nvalidParameterException(107 throw new IllegalArgumentException( 109 108 "minimal allowed length of test cases must be less than or equal to the maximal allowed length (min length: " + 110 109 minLength + " ; max length: " + maxLength + ")"); … … 128 127 public Collection<List<Event>> generateTestSuite(IStochasticProcess model) { 129 128 if (model == null) { 130 throw new I nvalidParameterException("model must not be null!");129 throw new IllegalArgumentException("model must not be null!"); 131 130 } 132 131
Note: See TracChangeset
for help on using the changeset viewer.