: 4582 | 108646 | 12353

Create a mock framework for Domino Java API 
Use this IdeaSpace to post ideas about Domino Designer.

: 5
: 10
: 5
: Domino Designer
: java
: Axel Janssen5023 05 Nov 2007
:
: / Email
Hi, 
 
I am a  big friend of developing  java agents or java Script-libraries with Eclipse. Following sound  design principles as low coupling,  high cohesion, the code which actually accesses the Java Api  for  Domino is well encapsulated  in a few  classes  or methods. All the rest is junit-Testable. The part uses the Java Api  for Domino is  not. For testing my usage  of  the Java Domino API, I have  to  access  a  real  Notes instance. Mock classes would provide  a implementation  of the  API, which does not need a Notes  instance.  
A mock framework at  least for the most  important Notes Domino  Java classes would make it possible  to write proper unit tests  and fasten the development process. Developers  would  not even have  to start Domino to use those  mock  objects.  I've started  to write one for myself and it appears to  work quite well  for the classes Database, View, ViewColumn, Document,  Item, DocumentCollection. Those are covering 98% of  the use  cases when I do  write something for Domino in Java as  for this code the point is the  opportunities Java  overs  and  not fancy code in Domino (I  do  that in formula  language, Lotus Script).
If I put  my  mock implementation open source, I drop a comment here.
 
 
 



1) Mika Heinonen3556 (07 Nov 2007)
C++ is faster than Java, LotusScript is faster to develop than Java. Java is useless.
2) Axel Janssen5023 (08 Nov 2007)
Maybe useless for you, for me its certainly usefull.
With such strong opinion, its certainly easy to find people to battle with.
I am tired of that.

peace
Axel
3) Matt White9280 (11 Nov 2007)
@1 - Got to disagree Mika, I use Java well over 50% of the time and find it great, easier to write complex code than LS and very flexible.

@2 - This would make a great OpenNTF project if you ever finish writing your Unit Test classes.
4) Kerr Rainey3860 (17 Dec 2007)
Hurm... How to you demote stupid comments?










:
:




Welcome to IdeaJam™


You can run IdeaJam™ in your company. It's easy to install, setup and customize. Your employees, partners and customers will immediately see results.

Use IdeaJam to:

  • Collect ideas from employees
  • Solicit feedback and suggestions from employees and customers
  • Run innovation contests and competitions
  • Validate concepts
  • Use the power of "crowd-sourcing" to rank ideas and allow the best ideas to rise to the top

IdeaJam™ works with:

  • IBM Connections
  • IBM Lotus Quickr
  • Blogs and Wikis
  • Websphere Portal
  • Microsoft Sharepoint
  • and other applications.

IdeaJam has an extensive set of widgets and API's that allow you to extend and integrate IdeaJam™ with other applications.

Learn more about IdeaJam >>






IdeaJam developed by

Elguji Software Logo