Changeset 327 for trunk/tests


Ignore:
Timestamp:
09/25/08 11:58:55 (16 years ago)
Author:
ra33
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/org/expeditee/gui/DisplayIOTest.java

    r310 r327  
    33import java.awt.event.InputEvent;
    44import java.util.Collection;
    5 import java.util.HashMap;
    6 import java.util.Map;
    75
    86import junit.framework.TestCase;
     
    4341                Collection<Item> items = testFrame.getVisibleItems();
    4442                assertTrue(items.size() == 12);
    45                 Map<String, Integer> itemCounts = getItemCount(items);
     43                //Map<String, Integer> itemCounts = getItemCount(items);
    4644               
    4745        }
     
    6260        }
    6361
    64         private Map<String, Integer> getItemCount(Collection<Item> items) {
    65                 Map<String, Integer> itemCounts = new HashMap<String,Integer>();
    66                 for(Item i : items){
    67                         String className = i.getClass().toString();
    68                         if(itemCounts.containsKey(className)){
    69                                 itemCounts.put(className, itemCounts.get(className)+1);
    70                         }else{
    71                                 itemCounts.put(className, 1);
    72                         }
    73                        
    74                 }
    75                 return itemCounts;
    76         }
     62//      private Map<String, Integer> getItemCount(Collection<Item> items) {
     63//              Map<String, Integer> itemCounts = new HashMap<String,Integer>();
     64//              for(Item i : items){
     65//                      String className = i.getClass().toString();
     66//                      if(itemCounts.containsKey(className)){
     67//                              itemCounts.put(className, itemCounts.get(className)+1);
     68//                      }else{
     69//                              itemCounts.put(className, 1);
     70//                      }
     71//                     
     72//              }
     73//              return itemCounts;
     74//      }
    7775       
    7876        // public final void testReleaseMouse() {
Note: See TracChangeset for help on using the changeset viewer.