Revision 1825
Added by Matt Jones almost 21 years ago
MetacatClientTest.java | ||
---|---|---|
152 | 152 |
assertTrue(response.indexOf("<login>") != -1); |
153 | 153 |
String sessionId = m.getSessionId(); |
154 | 154 |
System.err.println("Session ID: " + m.getSessionId()); |
155 |
//assertTrue(sessionId != null);
|
|
156 |
//assertTrue(response.indexOf(m.getSessionId()) != -1);
|
|
155 |
assertTrue(sessionId != null); |
|
156 |
assertTrue(response.indexOf(m.getSessionId()) != -1); |
|
157 | 157 |
} catch (MetacatAuthException mae) { |
158 | 158 |
fail("Authorization failed:\n" + mae.getMessage()); |
159 | 159 |
} catch (MetacatInaccessibleException mie) { |
Also available in: Unified diff
Fixed the sessionId handling code to now properly return the sessionId
in the login response message. Updated junit tests to test this issue.