Update of /cvsroot/nhibernate/nhibernate/src/NHibernate.Test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5037/src/NHibernate.Test
Modified Files:
TestCase.cs
Log Message:
Made DDL output feature depend on a constant in TestCase
Index: TestCase.cs
===================================================================
RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/TestCase.cs,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** TestCase.cs 10 Dec 2004 16:40:02 -0000 1.13
--- TestCase.cs 24 Apr 2005 15:47:08 -0000 1.14
***************
*** 17,20 ****
--- 17,21 ----
public abstract class TestCase
{
+ private const bool OUTPUT_DDL = true;
protected Configuration cfg;
protected Dialect.Dialect dialect;
***************
*** 55,59 ****
}
! if(exportSchema) new SchemaExport(cfg).Create(true, true);
sessions = cfg.BuildSessionFactory( );
--- 56,60 ----
}
! if(exportSchema) new SchemaExport(cfg).Create(OUTPUT_DDL, true);
sessions = cfg.BuildSessionFactory( );
***************
*** 66,70 ****
public void DropSchema()
{
! new SchemaExport(cfg).Drop(true, true);
}
--- 67,71 ----
public void DropSchema()
{
! new SchemaExport(cfg).Drop(OUTPUT_DDL, true);
}
***************
*** 92,101 ****
tran.Commit();
}
! catch(Exception exc)
{
if (tran != null)
tran.Rollback();
if (error)
! throw exc;
}
finally
--- 93,102 ----
tran.Commit();
}
! catch(Exception)
{
if (tran != null)
tran.Rollback();
if (error)
! throw;
}
finally
|