- Timestamp:
- 11/18/05 21:25:10 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/org.modelica.mdt.test/src/org/modelica/mdt/test/util/Area51Projects.java
r128 r152 42 42 package org.modelica.mdt.test.util; 43 43 44 import java.io.ByteArrayInputStream;45 import java.io.InputStream;46 44 47 45 import junit.framework.Assert; … … 167 165 /* plain file */ 168 166 file = simple_project.getFile("plain_file"); 169 file.create( getByteStream(""), true, null);167 file.create(Utility.getByteStream(""), true, null); 170 168 171 169 /* root_folder */ … … 175 173 /* folder_file */ 176 174 file = folder.getFile("folder_file"); 177 file.create( getByteStream(""), true, null);175 file.create(Utility.getByteStream(""), true, null); 178 176 179 177 /* sub_folder */ … … 215 213 "\n" + 216 214 "end root_package;\n"; 217 file.create( getByteStream(contents), true, null);215 file.create(Utility.getByteStream(contents), true, null); 218 216 219 217 /* plain file inside root_package */ 220 218 file = folder.getFile("plain_file"); 221 file.create( getByteStream(""), true, null);219 file.create(Utility.getByteStream(""), true, null); 222 220 223 221 /* a model inside the root_package */ … … 227 225 "\n" + 228 226 "end root_package_model;\n"; 229 file.create( getByteStream(contents), true, null);227 file.create(Utility.getByteStream(contents), true, null); 230 228 231 229 /* a function inside the root_package */ … … 238 236 " y := 1 - x\n" + 239 237 "end root_package_function;\n"; 240 file.create( getByteStream(contents), true, null);238 file.create(Utility.getByteStream(contents), true, null); 241 239 242 240 /* a (non-package) folder inside the root_package */ … … 253 251 "\n" + 254 252 "end sub_package;\n"; 255 file.create( getByteStream(contents), true, null);253 file.create(Utility.getByteStream(contents), true, null); 256 254 257 255 /* sub_package_model inside sub_package */ … … 261 259 "\n" + 262 260 "end sub_package_model;\n"; 263 file.create( getByteStream(contents), true, null);261 file.create(Utility.getByteStream(contents), true, null); 264 262 265 263 … … 273 271 "\n" + 274 272 "end leaf_package;\n"; 275 file.create( getByteStream(contents), true, null);273 file.create(Utility.getByteStream(contents), true, null); 276 274 277 275 /* childless_root_package */ … … 284 282 "\n" + 285 283 "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); 292 285 } 293 286 }
Note: See TracChangeset
for help on using the changeset viewer.