Exemplo n.º 1
0
 @Test
 public void validImage() {
   application.ImageClassifier classifier = new application.ImageClassifier();
   try {
     classifier.findRiverImage("lib/about.jpg");
   } catch (Exception e) {
     // TODO Auto-generated catch block
     assertTrue(e == null);
     // This should popup saying that there is a file permission problem with opencv
   }
 }
Exemplo n.º 2
0
 @Test
 public void nullImage() {
   application.ImageClassifier classifier = new application.ImageClassifier();
   try {
     classifier.findRiverImage("lib/jpg");
   } catch (Exception e) {
     // TODO Auto-generated catch block
     assertTrue(e != null);
     // This should popup saying that opencv is not installed or no valid image
   }
 }