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/Utility.java

    r126 r152  
    4242package org.modelica.mdt.test.util;
    4343
     44import java.io.ByteArrayInputStream;
    4445import java.io.IOException;
    4546import java.io.InputStream;
     
    298299        return expectedContent.equals(new String(buf));
    299300    }
     301   
     302    /**
     303     * convinience method to 'convert' a string into a InputStream.
     304     *
     305     * @return an input stream that have the same content as the provided string
     306     */
     307    public static InputStream getByteStream(String content)
     308    {
     309        return new ByteArrayInputStream(content.getBytes());
     310    }
    300311
    301312}
Note: See TracChangeset for help on using the changeset viewer.