From 74c29c8ac135576d33c37b116819cdbe2ab776f5 Mon Sep 17 00:00:00 2001 From: Erik Forkalsrud Date: Sat, 6 Feb 2010 12:14:58 -0800 Subject: [PATCH] change maven repository to our new nexus instance and update junit version to 4.7 --- pom.xml | 44 ++++++++++++------- .../album/exif/OggIdentifierTest.java | 22 +++++----- .../forkalsrud/album/web/PictureScaler.java | 2 +- 3 files changed, 42 insertions(+), 26 deletions(-) diff --git a/pom.xml b/pom.xml index 2587ee3..b6635d4 100644 --- a/pom.xml +++ b/pom.xml @@ -123,29 +123,43 @@ je 4.0.92 + central forkalsrud.org maven proxy true + false + http://forkalsrud.org:8080/nexus/content/groups/public + + + snapshots + forkalsrud.org maven proxy + false true - http://forkalsrud.org:8081/nexus/content/groups/public + http://forkalsrud.org:8080/nexus/content/groups/public-snapshots - + + + central + forkalsrud.org maven proxy + true + false + http://forkalsrud.org:8080/nexus/content/groups/public + + + snapshots + forkalsrud.org maven proxy + false + true + http://forkalsrud.org:8080/nexus/content/groups/public-snapshots + + diff --git a/src/org/forkalsrud/album/exif/OggIdentifierTest.java b/src/org/forkalsrud/album/exif/OggIdentifierTest.java index bcda11f..f483c55 100644 --- a/src/org/forkalsrud/album/exif/OggIdentifierTest.java +++ b/src/org/forkalsrud/album/exif/OggIdentifierTest.java @@ -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); } } diff --git a/src/org/forkalsrud/album/web/PictureScaler.java b/src/org/forkalsrud/album/web/PictureScaler.java index 0859888..7fe7ae9 100644 --- a/src/org/forkalsrud/album/web/PictureScaler.java +++ b/src/org/forkalsrud/album/web/PictureScaler.java @@ -32,7 +32,7 @@ import org.forkalsrud.album.exif.Thumbnail; public class PictureScaler { ExecutorService executor; - BlockingQueue queue; + BlockingQueue queue; HashMap outstandingRequests;