ORCentral

src/eu/coform/test/LocationQueryCommandTest.java

Go to the documentation of this file.
00001 package eu.coform.test;
00002 
00003 import junit.framework.TestCase;
00004 import eu.coform.ORException;
00005 import eu.coform.Session;
00006 import eu.coform.command.*;
00007 import eu.coform.command.location.LocationbyNameQueryCommand;
00008 import eu.coform.*;
00009 
00010 public class LocationQueryCommandTest extends TestCase {
00011 
00012    private String locationName = "Stadtarchiev Graz";
00013    
00014    public void testExecute(){
00015       
00016       LocationbyNameQueryCommand c = new LocationbyNameQueryCommand();
00017       c.setLocationName(locationName);
00018       Location s = null;
00019       
00020       try{
00021          s = c.execute();
00022       }catch(ORException e){
00023          assert(false);
00024       }
00025       
00026       assertNotNull(s);
00027       assertEquals(s.getName(), locationName);
00028    }
00029 }
 All Classes Namespaces Files Functions Variables Enumerations