Changeset 766 for trunk/quest-core-testgeneration/src/main/java/de/ugoe/cs/quest/testgeneration/RandomWalkGenerator.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/RandomWalkGenerator.java
r655 r766 1 1 package de.ugoe.cs.quest.testgeneration; 2 2 3 import java.security.InvalidParameterException;4 3 import java.util.Collection; 5 4 import java.util.HashSet; … … 75 74 * <li>maxIter must be greater than or equal to numSequences 76 75 * </ul> 77 * If one of these conditions is violated an {@link I nvalidParameterException} is thrown.76 * If one of these conditions is violated an {@link IllegalArgumentException} is thrown. 78 77 * </p> 79 78 * … … 99 98 // check validity of the parameters 100 99 if (numSequences < 1) { 101 throw new I nvalidParameterException("number of sequences must be at least 1 but is " +100 throw new IllegalArgumentException("number of sequences must be at least 1 but is " + 102 101 numSequences); 103 102 } 104 103 if (maxLength < 1) { 105 throw new I nvalidParameterException(104 throw new IllegalArgumentException( 106 105 "maximal allowed length of test cases must be at least 1 but is " + 107 106 maxLength); 108 107 } 109 108 if (minLength > maxLength) { 110 throw new I nvalidParameterException(109 throw new IllegalArgumentException( 111 110 "minimal allowed length of test cases must be less than or equal to the maximal allowed length (min length: " + 112 111 minLength + " ; max length: " + maxLength + ")"); 113 112 } 114 113 if (maxIter < numSequences) { 115 throw new I nvalidParameterException(114 throw new IllegalArgumentException( 116 115 "maximal number of iterations must greater than or equal to the number of sequences (number of sequences: " + 117 116 numSequences + … … 138 137 public Collection<List<Event>> generateTestSuite(IStochasticProcess model) { 139 138 if (model == null) { 140 throw new I nvalidParameterException("model must not be null!");139 throw new IllegalArgumentException("model must not be null!"); 141 140 } 142 141
Note: See TracChangeset
for help on using the changeset viewer.