Project

General

Profile

« Previous | Next » 

Revision 3588

Added by Jing Tao about 17 years ago

In reuseSession and reuseInvalidSession method, metacat.logout statement were added to make sure it will use fresh Metacat object.

View differences:

test/edu/ucsb/nceas/metacattest/client/MetacatClientTest.java
589 589
            Metacat m2 = null;
590 590
            try {
591 591
                m2 = MetacatFactory.createMetacatConnection(metacatUrl);
592
                m2.logout();
592 593
            } catch (MetacatInaccessibleException mie) {
593 594
                System.err.println("Metacat is: " + metacatUrl);
594 595
                fail("Metacat connection failed." + mie.getMessage());
......
625 626
            Metacat m3 = null;
626 627
            try {
627 628
                m3 = MetacatFactory.createMetacatConnection(metacatUrl);
629
                m3.logout();
628 630
            } catch (MetacatInaccessibleException mie) {
629 631
                System.err.println("Metacat is: " + metacatUrl);
630 632
                fail("Metacat connection failed." + mie.getMessage());

Also available in: Unified diff