Ignore:
Timestamp:
01/20/06 13:23:59 (19 years ago)
Author:
boris
Message:
  • changed the way modelica system library packages are handled for increased flexibility
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/org.modelica.mdt.test/src/org/modelica/mdt/test/TestOMCProxy.java

    r246 r270  
    4242package org.modelica.mdt.test;
    4343
    44 import java.util.Collections;
    4544import java.util.Vector;
    4645
     
    6160public class TestOMCProxy extends TestCase
    6261{
    63     private Vector<String> modelicaLibraryPackages = new Vector<String>(12);
    64    
    6562    /* a source code file use in some tests */
    6663    private IFile nested_models_mo;
     
    8077        nested_models_mo = proj.getFile("nested_models.mo");
    8178
    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();
    9579    }
    9680   
     
    10387            CompilerInstantiationException
    10488    {
     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       
    105101        if (CompilerProxy.getRestrictionType("Modelica") != Type.PACKAGE)
    106102        {
Note: See TracChangeset for help on using the changeset viewer.