change maven repository to our new nexus instance and update junit version to 4.7
This commit is contained in:
parent
b39aad9fa3
commit
74c29c8ac1
3 changed files with 42 additions and 26 deletions
44
pom.xml
44
pom.xml
|
|
@ -123,29 +123,43 @@
|
|||
<artifactId>je</artifactId>
|
||||
<version>4.0.92</version>
|
||||
</dependency>
|
||||
<!--
|
||||
<dependency><groupId>com.caucho</groupId><artifactId>resin</artifactId><version>3.1.8</version></dependency>
|
||||
<dependency><groupId>org.springframework</groupId><artifactId>spring-webmvc</artifactId><version>3.0.0.RELEASE</version></dependency>
|
||||
<dependency><groupId>org.springframework</groupId><artifactId>spring-context</artifactId><version>3.0.0.RELEASE</version></dependency>
|
||||
<dependency><groupId>org.springframework</groupId><artifactId>spring-orm</artifactId><version>3.0.0.RELEASE</version></dependency>
|
||||
-->
|
||||
</dependencies>
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>central</id>
|
||||
<name>forkalsrud.org maven proxy</name>
|
||||
<releases><enabled>true</enabled></releases>
|
||||
<snapshots><enabled>false</enabled></snapshots>
|
||||
<url>http://forkalsrud.org:8080/nexus/content/groups/public</url>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>snapshots</id>
|
||||
<name>forkalsrud.org maven proxy</name>
|
||||
<releases><enabled>false</enabled></releases>
|
||||
<snapshots><enabled>true</enabled></snapshots>
|
||||
<url>http://forkalsrud.org:8081/nexus/content/groups/public</url>
|
||||
<url>http://forkalsrud.org:8080/nexus/content/groups/public-snapshots</url>
|
||||
</repository>
|
||||
<!--
|
||||
<repository>
|
||||
<id>oracleReleases</id>
|
||||
<name>Oracle Released Java Packages</name>
|
||||
<url>http://download.oracle.com/maven</url>
|
||||
<layout>default</layout>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>caucho</id>
|
||||
<name>caucho.com</name>
|
||||
<url>http://caucho.com/m2</url>
|
||||
<layout>default</layout>
|
||||
</repository>
|
||||
-->
|
||||
</repositories>
|
||||
<pluginRepositories>
|
||||
<pluginRepository>
|
||||
<id>central</id>
|
||||
<name>forkalsrud.org maven proxy</name>
|
||||
<releases><enabled>true</enabled></releases>
|
||||
<snapshots><enabled>false</enabled></snapshots>
|
||||
<url>http://forkalsrud.org:8080/nexus/content/groups/public</url>
|
||||
</pluginRepository>
|
||||
<pluginRepository>
|
||||
<id>snapshots</id>
|
||||
<name>forkalsrud.org maven proxy</name>
|
||||
<releases><enabled>false</enabled></releases>
|
||||
<snapshots><enabled>true</enabled></snapshots>
|
||||
<url>http://forkalsrud.org:8080/nexus/content/groups/public-snapshots</url>
|
||||
</pluginRepository>
|
||||
</pluginRepositories>
|
||||
</project>
|
||||
|
|
|
|||
|
|
@ -1,30 +1,32 @@
|
|||
package org.forkalsrud.album.exif;
|
||||
|
||||
import org.forkalsrud.album.exif.OggIdentifier.Codec;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
public class OggIdentifierTest extends TestCase {
|
||||
public class OggIdentifierTest {
|
||||
|
||||
@Test
|
||||
public void testVideoIdentifier() throws Exception {
|
||||
|
||||
Codec codec = OggIdentifier.getIdentifier(getClass().getResourceAsStream("videoheader.ogg"));
|
||||
assertNotNull(codec);
|
||||
assertEquals("video/ogg; codecs=theora", codec.getMimeType());
|
||||
Assert.assertNotNull(codec);
|
||||
Assert.assertEquals("video/ogg; codecs=theora", codec.getMimeType());
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Test
|
||||
public void testAudioIdentifier() throws Exception {
|
||||
|
||||
Codec codec = OggIdentifier.getIdentifier(getClass().getResourceAsStream("musicheader.ogg"));
|
||||
assertNotNull(codec);
|
||||
assertEquals("audio/ogg; codecs=vorbis", codec.getMimeType());
|
||||
Assert.assertNotNull(codec);
|
||||
Assert.assertEquals("audio/ogg; codecs=vorbis", codec.getMimeType());
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testInvalidIdentifier() throws Exception {
|
||||
|
||||
Codec codec = OggIdentifier.getIdentifier(getClass().getResourceAsStream("OggIdentifierTest.class"));
|
||||
assertNull(codec);
|
||||
Assert.assertNull(codec);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ import org.forkalsrud.album.exif.Thumbnail;
|
|||
public class PictureScaler {
|
||||
|
||||
ExecutorService executor;
|
||||
BlockingQueue queue;
|
||||
BlockingQueue<PictureRequest> queue;
|
||||
HashMap<String, PictureRequest> outstandingRequests;
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue