Skip to content

Commit

Permalink
Moved AnprLibTest to core, renamed to JavaAnprIT
Browse files Browse the repository at this point in the history
  • Loading branch information
oskopek committed Apr 18, 2014
1 parent f2010af commit 36d9c56
Showing 1 changed file with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,32 +14,27 @@
* limitations under the License.
*/

package org.carcv.web.test;
package org.carcv.impl.core.detect;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;

import java.io.IOException;

import javax.xml.parsers.ParserConfigurationException;

import net.sf.javaanpr.imageanalysis.CarSnapshot;
import net.sf.javaanpr.intelligence.Intelligence;

import org.junit.Test;
import org.xml.sax.SAXException;

/**
* Test case for checking if the ANPR library (JavaANPR) works as expected.
*/
public class AnprLibTest {
public class JavaAnprIT {

@Test
public void anprLibTest() throws IOException, ParserConfigurationException, SAXException {
public void anprLibTest() throws Exception {
Intelligence intel = new Intelligence();
assertNotNull(intel);

String spz = intel.recognize(new CarSnapshot("/img/skoda_oct.jpg"));
assertEquals("2SU358F", spz); // actually 2SU358F
}
}
}

0 comments on commit 36d9c56

Please sign in to comment.