Ignore:
Timestamp:
09/04/12 17:15:28 (12 years ago)
Author:
sherbold
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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 
Note: See TracChangeset for help on using the changeset viewer.