Ignore:
Timestamp:
09/25/14 15:41:50 (10 years ago)
Author:
sherbold
Message:
  • updated test to newer DSL model version
  • added createScheduling functionality to UMLUtils
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-plugin-uml-test/src/test/java/de/ugoe/cs/autoquest/plugin/uml/UMLUtilsTest.java

    r1759 r1763  
    2222import java.util.Random; 
    2323 
     24import org.apache.commons.lang.SerializationUtils; 
    2425import org.eclipse.uml2.uml.Interaction; 
    2526import org.eclipse.uml2.uml.Model; 
     
    3839import de.ugoe.cs.autoquest.testgeneration.RandomWalkGenerator; 
    3940import de.ugoe.cs.autoquest.usageprofiles.FirstOrderMarkovModel; 
     41import de.ugoe.cs.autoquest.usageprofiles.IStochasticProcess; 
    4042 
    4143/** 
     
    213215        } 
    214216    } 
     217     
     218    @Test 
     219    public void testCreateScheduling_1() throws Exception { 
     220        Model model = 
     221                ModelUtils.loadModel(ClassLoader 
     222                    .getSystemResourceAsStream("testCreateScheduling_1_testsuite.uml")); 
     223         
     224        IStochasticProcess usageProfile = (IStochasticProcess) SerializationUtils.deserialize(ClassLoader.getSystemResourceAsStream("testCreateScheduling_1_usageprofile.dat")); 
     225         
     226        UMLUtils.createScheduling(model, usageProfile); 
     227         
     228        ModelUtils.writeModelToFile(model, OUTPUT_DIR + "testCreateScheduling_1_result.uml"); 
     229    } 
    215230 
    216231    private void deleteFiles(File file) { 
Note: See TracChangeset for help on using the changeset viewer.