Ignore:
Timestamp:
11/18/05 21:25:10 (19 years ago)
Author:
boris
Message:
  • added a test for problem marker creator (aka the builder)
File:
1 edited

Legend:

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

    r128 r152  
    4242package org.modelica.mdt.test.util;
    4343
    44 import java.io.ByteArrayInputStream;
    45 import java.io.InputStream;
    4644
    4745import junit.framework.Assert;
     
    167165        /* plain file */
    168166        file = simple_project.getFile("plain_file");
    169         file.create(getByteStream(""), true, null);
     167        file.create(Utility.getByteStream(""), true, null);
    170168       
    171169        /* root_folder */
     
    175173        /* folder_file */
    176174        file = folder.getFile("folder_file");
    177         file.create(getByteStream(""), true, null);
     175        file.create(Utility.getByteStream(""), true, null);
    178176       
    179177        /* sub_folder */
     
    215213            "\n" +
    216214            "end root_package;\n";
    217         file.create(getByteStream(contents), true, null);
     215        file.create(Utility.getByteStream(contents), true, null);
    218216           
    219217        /* plain file inside root_package */
    220218        file = folder.getFile("plain_file");
    221         file.create(getByteStream(""), true, null);
     219        file.create(Utility.getByteStream(""), true, null);
    222220           
    223221        /* a model inside the root_package */
     
    227225            "\n" +
    228226            "end root_package_model;\n";
    229         file.create(getByteStream(contents), true, null);
     227        file.create(Utility.getByteStream(contents), true, null);
    230228
    231229        /* a function inside the root_package */
     
    238236            "    y := 1 - x\n" +
    239237            "end root_package_function;\n";
    240         file.create(getByteStream(contents), true, null);
     238        file.create(Utility.getByteStream(contents), true, null);
    241239
    242240        /* a (non-package) folder inside the root_package */
     
    253251            "\n" +
    254252            "end sub_package;\n";
    255         file.create(getByteStream(contents), true, null);
     253        file.create(Utility.getByteStream(contents), true, null);
    256254           
    257255        /* sub_package_model inside sub_package */
     
    261259            "\n" +
    262260            "end sub_package_model;\n";
    263         file.create(getByteStream(contents), true, null);
     261        file.create(Utility.getByteStream(contents), true, null);
    264262
    265263
     
    273271            "\n" +
    274272            "end leaf_package;\n";
    275         file.create(getByteStream(contents), true, null);
     273        file.create(Utility.getByteStream(contents), true, null);
    276274           
    277275        /* childless_root_package */
     
    284282            "\n" +
    285283            "end childless_package;\n";
    286         file.create(getByteStream(contents), true, null);
    287     }
    288 
    289     private static InputStream getByteStream(String content)
    290     {
    291         return new ByteArrayInputStream(content.getBytes());
     284        file.create(Utility.getByteStream(contents), true, null);
    292285    }   
    293286}
Note: See TracChangeset for help on using the changeset viewer.