Project

General

Profile

« Previous | Next » 

Revision 9025

Added by Jing Tao almost 10 years ago

Change the test method base on the change of throwing a new sql exception on the getLocalId method.

View differences:

test/edu/ucsb/nceas/metacattest/IdentifierManagerTest.java
124 124
            
125 125
        } catch (McdbDocNotFoundException e) {
126 126
            fail(e.getMessage());
127
        } catch (SQLException e) {
128
            fail(e.getMessage());
127 129
        }
128 130
    }
129 131
    
......
138 140
                 "found exception but did not.");
139 141
        } catch (McdbDocNotFoundException e) {
140 142
            assertNotNull(e);
143
        } catch (SQLException e) {
144
            fail(e.getMessage());
141 145
        }
142 146
    }
143 147
    
......
204 208
        } catch (McdbDocNotFoundException e) {
205 209
            e.printStackTrace();
206 210
            fail("createMapping failed to create proper localId from guid: " + e.getMessage());
211
        } catch (SQLException e) {
212
            fail(e.getMessage());
207 213
        }
208 214
    }
209 215
    

Also available in: Unified diff