[xmlWiki-developers] Foundation classes
Brought to you by:
elhugo
From: James J K. <Kal...@ca...> - 2001-10-26 17:48:05
|
Here are some thoughts I had concerning really basic classes that everyone will use. These are just my thoughts, not the result of pair work, so they are just suggestions at this point. Class - Description WikiPage - Encapsulates one page, however that is represented, and will be passed around from the database, parser, HTML generator, etc... WikiContext - This would be a singleton which would contain common configuration information. Users typically call getInstance() on it, and then use that object to learn about the environment, policies/setting, and get references to other objects. WikiDB - Abstracts the database functions. One would probably call getLocalDB() on a WikiContext object to get a reference, and then this class would handle page creation/deletion/retrieval/update. I would expect that most of the functions would be passing WikiPage references. The guts of this class would then attach to a production DB, text file interface, etc. Those are just some ideas, and I think that the Create/Save work will use all of those concepts. Let me know if I'm out in right field compared to your perspectives of the foundation classes. Unit Testing---I've used JUnit and SUnit quite a bit with good results, but for servlet and other web work we'll need something to augment those test fixtures. On the Apache site I saw references to both HTTPUnit and something called 'Cactus', and I wanted to know if anyone has experience with those or other test setups that accommodate web development. Regards, Jim Kalafut |