Project

General

Profile

« Previous | Next » 

Revision 9834

Added by Jing Tao over 8 years ago

Replaced the JiBXException by MarshallingException.

View differences:

test/edu/ucsb/nceas/metacat/dataone/D1NodeVersionCheckerTest.java
102 102
import org.dataone.service.types.v1.util.ChecksumUtil;
103 103
import org.dataone.service.types.v2.SystemMetadata;
104 104
import org.dspace.foresite.ResourceMap;
105
import org.jibx.runtime.JiBXException;
106 105
import org.junit.After;
107 106
import org.junit.Before;
108 107

  
test/edu/ucsb/nceas/metacat/dataone/MNodeServiceTest.java
64 64
import org.apache.commons.io.FileUtils;
65 65
import org.apache.commons.io.IOUtils;
66 66
import org.dataone.client.v2.formats.ObjectFormatCache;
67
import org.dataone.exceptions.MarshallingException;
67 68
import org.dataone.configuration.Settings;
68 69
import org.dataone.ore.ResourceMapFactory;
69 70
import org.dataone.service.util.Constants;
......
100 101
import org.dataone.service.types.v1.util.ChecksumUtil;
101 102
import org.dataone.service.types.v2.SystemMetadata;
102 103
import org.dspace.foresite.ResourceMap;
103
import org.jibx.runtime.JiBXException;
104 104
import org.junit.After;
105 105
import org.junit.Before;
106 106

  
......
898 898
      assertNotNull(node);
899 899
      // TODO: should probably test other parts of the node information
900 900
      
901
    } catch (JiBXException e) {
901
    } catch (MarshallingException e) {
902 902
        e.printStackTrace();
903 903
        fail("The node instance couldn't be parsed correctly:" + e.getMessage());
904 904
        

Also available in: Unified diff