- Timestamp:
- 01/20/06 13:23:59 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/org.modelica.mdt.test/src/org/modelica/mdt/test/TestOMCProxy.java
r246 r270 42 42 package org.modelica.mdt.test; 43 43 44 import java.util.Collections;45 44 import java.util.Vector; 46 45 … … 61 60 public class TestOMCProxy extends TestCase 62 61 { 63 private Vector<String> modelicaLibraryPackages = new Vector<String>(12);64 65 62 /* a source code file use in some tests */ 66 63 private IFile nested_models_mo; … … 80 77 nested_models_mo = proj.getFile("nested_models.mo"); 81 78 82 83 assertTrue(Collections.addAll(modelicaLibraryPackages,84 "Mechanics",85 "Electrical",86 "Math",87 "Blocks",88 "Thermal",89 "Icons",90 "Constants",91 "SIunits"));92 93 /* we need to load modelica package */94 CompilerProxy.loadSystemLibrary();95 79 } 96 80 … … 103 87 CompilerInstantiationException 104 88 { 89 /* we need to load modelica package */ 90 String[] stdPackages = CompilerProxy.getStandardLibrary(); 91 92 /* make some checks on the returned names of the standard packages */ 93 Vector<String> v = new Vector<String>(); 94 for (String name : stdPackages) 95 { 96 v.add(name); 97 } 98 assertTrue(v.size() >= 1); 99 assertTrue(v.contains("Modelica")); 100 105 101 if (CompilerProxy.getRestrictionType("Modelica") != Type.PACKAGE) 106 102 {
Note: See TracChangeset
for help on using the changeset viewer.