Changeset 1900 for trunk/autoquest-plugin-uml-test/src/test
- Timestamp:
- 03/06/15 10:24:54 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-plugin-uml-test/src/test/java/de/ugoe/cs/autoquest/plugin/uml/UMLUtilsTest.java
r1898 r1900 42 42 import de.ugoe.cs.autoquest.usageprofiles.FirstOrderMarkovModel; 43 43 import de.ugoe.cs.autoquest.usageprofiles.IStochasticProcess; 44 import de.ugoe.cs.util.console.Console;45 44 import de.ugoe.cs.util.console.TextConsole; 46 45 … … 58 57 @BeforeClass 59 58 public static void setUpBeforeClass() throws Exception { 60 Console.getInstance().registerTraceListener(new TextConsole(Level.INFO));59 new TextConsole(Level.INFO); 61 60 } 62 61 … … 316 315 .getSystemResourceAsStream("testCreateInteractionFromEventSequence_1_model.uml")); 317 316 318 UMLUtils.validateModelWithLog(httpSequences, model, null); 317 int violations = UMLUtils.validateModelWithLog(httpSequences, model, null); 318 if( violations==0 ) { 319 System.out.println("No problems found."); 320 } else { 321 System.out.println(violations + " violations found."); 322 } 319 323 } 320 324 … … 336 340 .getSystemResourceAsStream("testCreateInteractionFromEventSequence_2_model.uml")); 337 341 338 UMLUtils.validateModelWithLog(httpSequences, model, null); 342 int violations = UMLUtils.validateModelWithLog(httpSequences, model, null); 343 if( violations==0 ) { 344 System.out.println("No problems found."); 345 } else { 346 System.out.println(violations + " violations found."); 347 } 339 348 } 340 349 … … 356 365 .getSystemResourceAsStream("hl7model_v2.uml")); 357 366 358 UMLUtils.validateModelWithLog(httpSequences, model, "IXSTestSuite_1"); 367 int violations = UMLUtils.validateModelWithLog(httpSequences, model, "IXSTestSuite_1"); 368 if( violations==0 ) { 369 System.out.println("No problems found."); 370 } else { 371 System.out.println(violations + " violations found."); 372 } 359 373 } 360 374
Note: See TracChangeset
for help on using the changeset viewer.