ReferencingParserTest changes for revisions 5618:6157

For SIS we will avoid test based on parsing a file containing a large number of WKT, since they are difficult to debug when the parsing of a WKT in the middle of that file fails. Consequently this commit will not be ported.

Command line:

svn diff --extensions "--unified --ignore-space-change --ignore-all-space --ignore-eol-style" -r5618:6157 https://svn.osgeo.org/geotools/trunk/modules/library/referencing/src/test/java/org/geotools/referencing/wkt/ParserTest.java
Revision 5618Revision 6157
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;


/**
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import org.geotools.resources.TestData;


/**
 * stream once finished is the user's responsability.
 */
private BufferedReader open(final String path) throws IOException {
    return new BufferedReader(
           new InputStreamReader(
           getClass().getClassLoader().getResourceAsStream(path)));
}

/**
     * stream once finished is the user's responsability.
     */
    private BufferedReader open(final String path) throws IOException {
        System.out.println(getClass().getResource(path).openStream());

        return new BufferedReader(
               new InputStreamReader(
               getClass().getResource(path).openStream()));
//        return new BufferedReader(
//               new InputStreamReader(
//               getClass().getClassLoader().getResourceAsStream(path)));
    }

    /**
 * coordinate system objects.
 */
public void testParsing() throws IOException, ParseException, FactoryException {
    final BufferedReader reader = open("test-data/test-cs.txt");
    final Collection       pool = new HashSet();
    String line;
    while ((line=reader.readLine()) != null) {
 * coordinate system objects.
 */
public void testParsing() throws IOException, ParseException, FactoryException {
    final BufferedReader reader = TestData.getReader(this, "test-cs.txt");
    final Collection       pool = new HashSet();
    String line;
    while ((line=reader.readLine()) != null) {