Ignore:
Timestamp:
09/04/12 17:15:28 (12 years ago)
Author:
sherbold
Message:
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  
    11package de.ugoe.cs.quest.testgeneration; 
    22 
    3 import java.security.InvalidParameterException; 
    43import java.util.ArrayList; 
    54import java.util.Collection; 
     
    7372     * <li>minLength must be less than or equal to maxLength 
    7473     * </ul> 
    75      * If one of these conditions is violated an {@link InvalidParameterException} is thrown. 
     74     * If one of these conditions is violated an {@link IllegalArgumentException} is thrown. 
    7675     * </p> 
    7776     *  
     
    9796        // check validity of the parameters 
    9897        if (numSequences < 1) { 
    99             throw new InvalidParameterException("number of sequences must be at least 1 but is " + 
     98            throw new IllegalArgumentException("number of sequences must be at least 1 but is " + 
    10099                numSequences); 
    101100        } 
    102101        if (maxLength < 1) { 
    103             throw new InvalidParameterException( 
     102            throw new IllegalArgumentException( 
    104103                                                "maximal allowed length of test cases must be at least 1 but is " + 
    105104                                                    maxLength); 
    106105        } 
    107106        if (minLength > maxLength) { 
    108             throw new InvalidParameterException( 
     107            throw new IllegalArgumentException( 
    109108                                                "minimal allowed length of test cases must be less than or equal to the maximal allowed length (min length: " + 
    110109                                                    minLength + " ; max length: " + maxLength + ")"); 
     
    128127    public Collection<List<Event>> generateTestSuite(IStochasticProcess model) { 
    129128        if (model == null) { 
    130             throw new InvalidParameterException("model must not be null!"); 
     129            throw new IllegalArgumentException("model must not be null!"); 
    131130        } 
    132131 
  • trunk/quest-core-testgeneration/src/main/java/de/ugoe/cs/quest/testgeneration/HybridGenerator.java

    r655 r766  
    11package de.ugoe.cs.quest.testgeneration; 
    22 
    3 import java.security.InvalidParameterException; 
    43import java.util.ArrayList; 
    54import java.util.Collection; 
     
    6160     * <li>length must be at least 1 
    6261     * </ul> 
    63      * If one of these conditions is violated an {@link InvalidParameterException} is thrown. 
     62     * If one of these conditions is violated an {@link IllegalArgumentException} is thrown. 
    6463     * </p> 
    6564     *  
     
    7776        // check validity of the parameters 
    7877        if (numSequences < 1) { 
    79             throw new InvalidParameterException("number of sequences must be at least 1 but is " + 
     78            throw new IllegalArgumentException("number of sequences must be at least 1 but is " + 
    8079                numSequences); 
    8180        } 
    8281        if (length < 1) { 
    83             throw new InvalidParameterException("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 " + 
    8483                length); 
    8584        } 
     
    102101    public Collection<List<Event>> generateTestSuite(IStochasticProcess model) { 
    103102        if (model == null) { 
    104             throw new InvalidParameterException("model must not be null!"); 
     103            throw new IllegalArgumentException("model must not be null!"); 
    105104        } 
    106105 
  • trunk/quest-core-testgeneration/src/main/java/de/ugoe/cs/quest/testgeneration/RandomWalkGenerator.java

    r655 r766  
    11package de.ugoe.cs.quest.testgeneration; 
    22 
    3 import java.security.InvalidParameterException; 
    43import java.util.Collection; 
    54import java.util.HashSet; 
     
    7574     * <li>maxIter must be greater than or equal to numSequences 
    7675     * </ul> 
    77      * If one of these conditions is violated an {@link InvalidParameterException} is thrown. 
     76     * If one of these conditions is violated an {@link IllegalArgumentException} is thrown. 
    7877     * </p> 
    7978     *  
     
    9998        // check validity of the parameters 
    10099        if (numSequences < 1) { 
    101             throw new InvalidParameterException("number of sequences must be at least 1 but is " + 
     100            throw new IllegalArgumentException("number of sequences must be at least 1 but is " + 
    102101                numSequences); 
    103102        } 
    104103        if (maxLength < 1) { 
    105             throw new InvalidParameterException( 
     104            throw new IllegalArgumentException( 
    106105                                                "maximal allowed length of test cases must be at least 1 but is " + 
    107106                                                    maxLength); 
    108107        } 
    109108        if (minLength > maxLength) { 
    110             throw new InvalidParameterException( 
     109            throw new IllegalArgumentException( 
    111110                                                "minimal allowed length of test cases must be less than or equal to the maximal allowed length (min length: " + 
    112111                                                    minLength + " ; max length: " + maxLength + ")"); 
    113112        } 
    114113        if (maxIter < numSequences) { 
    115             throw new InvalidParameterException( 
     114            throw new IllegalArgumentException( 
    116115                                                "maximal number of iterations must greater than or equal to the number of sequences (number of sequences: " + 
    117116                                                    numSequences + 
     
    138137    public Collection<List<Event>> generateTestSuite(IStochasticProcess model) { 
    139138        if (model == null) { 
    140             throw new InvalidParameterException("model must not be null!"); 
     139            throw new IllegalArgumentException("model must not be null!"); 
    141140        } 
    142141 
Note: See TracChangeset for help on using the changeset viewer.