Project

General

Profile

« Previous | Next » 

Revision 1792

Added by Matt Jones over 21 years ago

Updated test so that the query test works. Now all tests should pass, but
still having the cntl-m issue on one server.

View differences:

test/edu/ucsb/nceas/metacattest/client/MetacatClientTest.java
52 52
public class MetacatClientTest extends TestCase
53 53
{
54 54
    private String metacatUrl = 
55
        "http://knb.ecoinformatics.org/knb/servlet/metacat";
55
        "http://dev.nceas.ucsb.edu/tao/servlet/metacat";
56 56
        //"http://dev.nceas.ucsb.edu/tao/servlet/metacat";
57 57
    private String username = "@mcuser@";
58 58
    private String password = "@mcpassword@";
......
188 188
            FileReader fr = new FileReader(queryFile);
189 189
            Reader r = m.query(fr);
190 190
            String result = IOUtil.getAsString(r, true);
191
            assertTrue(result.indexOf("jones.204.22")!=-1);
191
            assertTrue(result.indexOf(newdocid+".1")!=-1);
192 192
        } catch (MetacatInaccessibleException mie) {
193 193
            fail("Metacat Inaccessible:\n" + mie.getMessage());
194 194
        } catch (Exception e) {

Also available in: Unified diff