Revision: 2185
Author: [email protected]
Date: Mon Jul 20 12:10:40 2009
Log: Fixed compilation after r2180.
http://code.google.com/p/openmeetings/source/detail?r=2185

Modified:
  /trunk/webapp/src/test/org/openmeetings/test/navi/TestNavi.java

=======================================
--- /trunk/webapp/src/test/org/openmeetings/test/navi/TestNavi.java     Sat Apr 
 
19 13:45:38 2008
+++ /trunk/webapp/src/test/org/openmeetings/test/navi/TestNavi.java     Mon Jul 
 
20 12:10:40 2009
@@ -8,7 +8,7 @@
  import org.openmeetings.app.hibernate.beans.user.Users;
  import org.openmeetings.app.remote.MainService;
  import org.openmeetings.app.hibernate.beans.basic.*;
-
+import org.openmeetings.app.hibernate.beans.domain.Organisation_Users;
  import junit.framework.TestCase;

  public class TestNavi extends TestCase {
@@ -26,26 +26,34 @@

                System.out.println("us: "+us.getFirstname());

-               List ll = mService.getNavi(sessionData.getSession_id(),1);
-
-               System.out.println("NaviGlobal size: "+ll.size());
-
-               for (Iterator it2 = ll.iterator(); it2.hasNext();) {
-                       Naviglobal navigl = (Naviglobal) it2.next();
-                       System.out.println(navigl.getLabel().getValue());
-                       Set s = navigl.getMainnavi();
-
-                       for (Iterator it3 = s.iterator(); it3.hasNext();) {
-                               Navimain navim = (Navimain) it3.next();
-                               
System.out.println("-->"+navim.getLabel().getValue());
-
-                               for (Iterator it4 = 
navim.getSubnavi().iterator(); it4.hasNext();) {
-                                       Navisub navis = (Navisub) it4.next();
-                                       
System.out.println("---->"+navis.getLabel().getValue());
-                               }
-
-                       }
-               }
+        for (Iterator<Organisation_Users> iter = us.getOrganisation_users()
+                .iterator(); iter.hasNext();) {
+
+            Long organization_id = iter.next().getOrganisation()
+                    .getOrganisation_id();
+            List ll = mService.getNavi(sessionData.getSession_id(), 1,  
organization_id);
+
+            System.out.println("NaviGlobal size: " + ll.size());
+
+            for (Iterator it2 = ll.iterator(); it2.hasNext();) {
+                Naviglobal navigl = (Naviglobal) it2.next();
+                System.out.println(navigl.getLabel().getValue());
+                Set s = navigl.getMainnavi();
+
+                for (Iterator it3 = s.iterator(); it3.hasNext();) {
+                    Navimain navim = (Navimain) it3.next();
+                    System.out.println("-->" +  
navim.getLabel().getValue());
+
+                    for (Iterator it4 = navim.getSubnavi().iterator(); it4
+                            .hasNext();) {
+                        Navisub navis = (Navisub) it4.next();
+                        System.out.println("---->"
+                                + navis.getLabel().getValue());
+                    }
+
+                }
+            }
+        }

        }


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenMeetings developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/openmeetings-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to