Project

General

Profile

« Previous | Next » 

Revision 8311

Added by Jing Tao over 10 years ago

Fixed compile error that an ioexception should be caught.

View differences:

test/edu/ucsb/nceas/metacat/dataone/RegisterDOITest.java
29 29
import java.io.ByteArrayInputStream;
30 30
import java.io.FileInputStream;
31 31
import java.io.FileNotFoundException;
32
import java.io.IOException;
32 33
import java.io.InputStream;
33 34
import java.util.HashMap;
34 35

  
......
151 152
		} catch (FileNotFoundException e) {
152 153
			e.printStackTrace();
153 154
			fail(e.getMessage());
154
		} finally {
155
		} catch (IOException e) {
156
		    e.printStackTrace();
157
            fail(e.getMessage());
158
	    } finally {
155 159
		    IOUtils.closeQuietly(content);
156 160
		}
157 161
	}

Also available in: Unified diff