Project

General

Profile

« Previous | Next » 

Revision 1825

Fixed the sessionId handling code to now properly return the sessionId
in the login response message. Updated junit tests to test this issue.

View differences:

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