ORCentral

src/eu/coform/test/QueryAllLocationCommandTest.java

Go to the documentation of this file.
00001 package eu.coform.test;
00002 
00003 import static org.junit.Assert.*;
00004 
00005 import org.junit.Before;
00006 import org.junit.Test;
00007 
00008 import eu.coform.Location;
00009 import eu.coform.ORException;
00010 import eu.coform.command.location.QueryAllLocationCommand;
00011 
00012 public class QueryAllLocationCommandTest {
00013 
00014    @Before
00015    public void setUp() throws Exception {
00016    }
00017 
00018    @Test
00019    public void testErrorCode() {
00020       QueryAllLocationCommand com = new QueryAllLocationCommand();
00021    }
00022 
00023    @Test
00024    public void testExecute() {
00025       QueryAllLocationCommand com = new QueryAllLocationCommand();
00026       try {
00027          Location[] locs = com.execute();
00028          assertNotNull(locs);
00029          for(Location loc : locs){
00030             assertNotNull(loc);
00031             System.out.println(loc.getName());            
00032          }
00033       } catch (ORException e) {
00034          // TODO Auto-generated catch block
00035          e.printStackTrace();
00036          assert(false);
00037       }
00038       
00039    }
00040 
00041 }
 All Classes Namespaces Files Functions Variables Enumerations