ORCentral

src/eu/coform/test/InsertFileStatusCommandTest.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.Filestatus;
00009 import eu.coform.database.DBException;
00010 import eu.coform.database.command.InsertFileStatusCommand;
00011 
00012 public class InsertFileStatusCommandTest {
00013 
00014    InsertFileStatusCommand undertest;
00015    Filestatus status = null;
00016    @Before
00017    public void setUp()  {
00018       status = new Filestatus();
00019       status.setDescription("adsas");
00020       status.setName("Incomplete");
00021       status.setUri("uri");
00022          }
00023 
00024    @Test
00025    public void testInsertFileStatusCommand() {
00026       undertest = new InsertFileStatusCommand(status);
00027    }
00028 
00029    @Test
00030    public void testExec() {
00031 
00032       setUp();
00033       
00034       undertest = new InsertFileStatusCommand(status);
00035       try {
00036          undertest.exec();
00037       } catch (DBException e) {
00038          e.printStackTrace();
00039       }
00040    }
00041 
00042 }
 All Classes Namespaces Files Functions Variables Enumerations