Project

General

Profile

« Previous | Next » 

Revision 892efc69

Added by Andreas Kohlbecker almost 14 years ago

merging /branches/cdmlib/SPRINT-Chichorieae1/ to trunk

View differences:

cdmlib-commons/src/test/java/eu/etaxonomy/cdm/common/MediaMetaDataTest.java
12 12

  
13 13

  
14 14
import java.io.File;
15
import java.io.IOException;
15 16
import java.net.MalformedURLException;
16 17
import java.net.URL;
17 18

  
......
66 67
	public void tearDown() throws Exception {
67 68
	}
68 69
	
69
	/********************* TESTS ********************/
70
	/********************* TESTS 
71
	 * @throws IOException ********************/
70 72
	
71 73
	@Test
72
	public void readImageInfoFromFile() {
74
	public void readImageInfoFromFile() throws IOException {
73 75
		File imageFile = new File("./src/test/resources/images/OregonScientificDS6639-DSC_0307-small.jpg");
74 76
		MetaDataFactory metaFactory = MetaDataFactory.getInstance();
75 77
		ImageMetaData imageMetaData = (ImageMetaData) metaFactory.readMediaData(imageFile.toURI(), MimeType.JPEG, 0);
......
83 85
	}
84 86
	
85 87
	@Test
86
	public void readImageInfoFromUrl() {
88
	public void readImageInfoFromUrl() throws IOException {
87 89
		try {
88 90
			
89 91
			//TODO make ready for windows

Also available in: Unified diff