Changeset 766 for trunk/quest-core-testgeneration/src/main/java/de
- Timestamp:
- 09/04/12 17:15:28 (12 years ago)
- Location:
- trunk/quest-core-testgeneration/src/main/java/de/ugoe/cs/quest/testgeneration
- Files:
-
- 3 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 -
trunk/quest-core-testgeneration/src/main/java/de/ugoe/cs/quest/testgeneration/HybridGenerator.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; … … 61 60 * <li>length must be at least 1 62 61 * </ul> 63 * If one of these conditions is violated an {@link I nvalidParameterException} is thrown.62 * If one of these conditions is violated an {@link IllegalArgumentException} is thrown. 64 63 * </p> 65 64 * … … 77 76 // check validity of the parameters 78 77 if (numSequences < 1) { 79 throw new I nvalidParameterException("number of sequences must be at least 1 but is " +78 throw new IllegalArgumentException("number of sequences must be at least 1 but is " + 80 79 numSequences); 81 80 } 82 81 if (length < 1) { 83 throw new I nvalidParameterException("length of test cases must be at least 1 but is " +82 throw new IllegalArgumentException("length of test cases must be at least 1 but is " + 84 83 length); 85 84 } … … 102 101 public Collection<List<Event>> generateTestSuite(IStochasticProcess model) { 103 102 if (model == null) { 104 throw new I nvalidParameterException("model must not be null!");103 throw new IllegalArgumentException("model must not be null!"); 105 104 } 106 105 -
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.