CVSROOT: /cvs/gnome Module name: yarrr Changes by: dave_malcolm 05/02/28 20:36:57
Modified files: src/org/gnome/yarrr/tests: TestInitializerTests.java YarrrUsingTest.java DBUsingTest.java TopicTests.java MailingListTests.java MessageStoreTests.java PersonUsingTest.java . : ChangeLog src/org/gnome/yarrr: Message.hbm.xml Message.java src/org/gnome/yarrr/xmlrpc: DefaultMethods.java src/org/gnome/yarrr/hibernate: Persistent.java HibernateUtil.java Added files: src/org/gnome/yarrr/tests/test-emails: test-threading-1-2.email test-threading-1.email test-threading-1-1.email test-threading-1-2-1.email src/org/gnome/yarrr/email: Importer.java Email.hbm.xml Email.java EmailMessage.java Removed files: src/org/gnome/yarrr/email: Mailbox.java Log message: 2005-02-28 David Malcolm <[EMAIL PROTECTED]> * src/org/gnome/yarrr/email/Email.java - new class, representing an imported email * src/org/gnome/yarrr/email/Email.hbm.xml: hibernate mapping for the above. * src/org/gnome/yarrr/email/EmailMessage.java - new class, a subclass of Message; this is a Message generated from an Email. * src/org/gnome/yarrr/email/Importer.java - new file; split imported emails into Email and EmailMessage classes. Defer creation of an EmailMessage from an Email ("messagification") until we have an EmailMessage for the parent Email in the thread, to preserve the immutability constraint on Message instances (since a child Email might arrive before its parent). * src/org/gnome/yarrr/email/Mailbox.java: removed; this is now in Importer * src/org/gnome/yarrr/hibernate/HibernateUtil.java: added Email class * src/org/gnome/yarrr/hibernate/Persistent.java: moved Message.NoMatchFoundException here * src/org/gnome/yarrr/Message.hbm.xml: added EmailMessage subclass * src/org/gnome/yarrr/Message.java: moved NoMatchFoundException to Persistent; added boolean to constructor to allow subclasses to fully set themselves up before doing Hibernate-fu; added getTopics method * src/org/gnome/yarrr/tests/DBUsingTest.java: clean up Email instances * src/org/gnome/yarrr/tests/PersonUsingTest.java: clean up Email instances * src/org/gnome/yarrr/tests/YarrrUsingTest.java: clean up Email instances * src/org/gnome/yarrr/tests/MailingListTests.java: refactored test for injected emails into tests of topic selection and of persistence to reflect split into Email/EmailMessage classes; added new tests for email threading, one where the message arrive in the expected order, the other in which they arrive backwards. * src/org/gnome/yarrr/tests/MailingStoreTests.java: fixed up for NoMatchFoundException move * src/org/gnome/yarrr/tests/test-emails: added 4 new test emails, from desktop-devel-list@gnome.org (the start of the "Final 2.10 Modules List Proposal" thread from early February 2005) * src/org/gnome/yarrr/tests/TestInitializerTests.java: fixed bug in unit tests. Is no-one else running the unit tests? * src/org/gnome/yarrr/tests/TopicTests.java: extended testPersistMessages to test Message.getTopics * src/org/gnome/yarrr/xmlrpc/DefaultMethods.java: fixed to use new Importer API and report results URL : http://cvs.gnome.org/bonsai/cvsquery.cgi?branch=&dir=yarrr&who=dave_malcolm&date=explicit&mindate=2005-02-28%2020:35&maxdate=2005-02-28%2020:37 _______________________________________________ cvs-commits-list mailing list cvs-commits-list@gnome.org http://mail.gnome.org/mailman/listinfo/cvs-commits-list