You are viewing a plain text version of this content. The canonical link for it is here.
Posted to photark-commits@incubator.apache.org by su...@apache.org on 2011/08/03 20:31:33 UTC

svn commit: r1153648 - /incubator/photark/trunk/photark-face-recognition/src/test/java/org/apache/photark/face/facebook/test/GenericFaceRecognitionTestCase.java

Author: subash
Date: Wed Aug  3 20:31:32 2011
New Revision: 1153648

URL: http://svn.apache.org/viewvc?rev=1153648&view=rev
Log:
refactored the GenericFaceRecognition test case with new changes in service interface

Modified:
    incubator/photark/trunk/photark-face-recognition/src/test/java/org/apache/photark/face/facebook/test/GenericFaceRecognitionTestCase.java

Modified: incubator/photark/trunk/photark-face-recognition/src/test/java/org/apache/photark/face/facebook/test/GenericFaceRecognitionTestCase.java
URL: http://svn.apache.org/viewvc/incubator/photark/trunk/photark-face-recognition/src/test/java/org/apache/photark/face/facebook/test/GenericFaceRecognitionTestCase.java?rev=1153648&r1=1153647&r2=1153648&view=diff
==============================================================================
--- incubator/photark/trunk/photark-face-recognition/src/test/java/org/apache/photark/face/facebook/test/GenericFaceRecognitionTestCase.java (original)
+++ incubator/photark/trunk/photark-face-recognition/src/test/java/org/apache/photark/face/facebook/test/GenericFaceRecognitionTestCase.java Wed Aug  3 20:31:32 2011
@@ -20,6 +20,8 @@
 package org.apache.photark.face.facebook.test;
 
 import org.apache.photark.face.services.FaceRecognitionService;
+import org.apache.photark.face.services.beans.PhotArkFace;
+import org.apache.photark.face.services.beans.PhotarkPhoto;
 import org.apache.tuscany.sca.node.Contribution;
 import org.apache.tuscany.sca.node.ContributionLocationHelper;
 import org.apache.tuscany.sca.node.Node;
@@ -85,12 +87,12 @@ public class GenericFaceRecognitionTestC
         defaultFaceClient.saveTags(p2.getFace().getTID(), "jenifer@photark.com", "jenifer");
 
         defaultFaceClient.train("jenifer@photark.com");
-        Photo p =
+        PhotarkPhoto p =
             defaultFaceClient
                 .recognizeFromUrls("https://lh3.googleusercontent.com/-4I_Yn56XwAw/Thi6LIZSutI/AAAAAAAAABo/jOjx2cGgHao/s128/110306_latinjlo_400X400.jpg",
                                    "jenifer@photark.com").get(0);
 
-        for (Face f : p.getFaces()) {
+        for (PhotArkFace f : p.getPhotArkFaces()) {
             if (f.getGuess() == null) {
                 System.out.println(" > Cannot identify Jenifer Lopez :: " + f.toString());
             } else {