From: Peter S. <sz...@us...> - 2004-04-14 08:39:00
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate.Test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12069/NHibernate.Test Modified Files: FooBarTest.cs Log Message: Ignored test because of missing HQL keyword. Index: FooBarTest.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/FooBarTest.cs,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** FooBarTest.cs 13 Apr 2004 15:32:59 -0000 1.7 --- FooBarTest.cs 14 Apr 2004 08:38:51 -0000 1.8 *************** *** 35,39 **** [Test] ! //[Ignore("Bugs in quoteing kills other tests too")] public void FetchInitializedCollection() { --- 35,39 ---- [Test] ! [Ignore("Fetch keyword is missing from HQL")] public void FetchInitializedCollection() { *************** *** 52,65 **** s.Close(); ! // s = sessions.OpenSession(); ! // baz = (Baz) s.load( typeof(Baz), baz.getCode() ); ! // Object bag = baz.getFooBag(); ! // Assert.IsFalse( NHibernate.IsInitialized(bag) ); ! // s.Find("from Baz baz left join fetch baz.fooBag"); ! // Assert.IsFalse( NHibernate.IsInitialized(bag) ); ! // Assert.IsTrue( bag==baz.getFooBag() ); ! // Assert.IsTrue( baz.getFooBag().size()==2 ); ! // s.Delete(baz); ! // s.Flush(); s.Close(); --- 52,65 ---- s.Close(); ! s = sessions.OpenSession(); ! baz = (Baz) s.Load( typeof(Baz), baz.code ); ! Object bag = baz.fooBag; ! Assert.IsFalse( NHibernate.IsInitialized(bag) ); ! s.Find("from Baz baz left join fetch baz.fooBag"); ! Assert.IsFalse( NHibernate.IsInitialized(bag) ); ! Assert.IsTrue( bag==baz.fooBag ); ! Assert.IsTrue( baz.fooBag.Count==2 ); ! s.Delete(baz); ! s.Flush(); s.Close(); |