OpenNTF.org - Domino Unit Framework

My Links (Not logged in)
User Name Password
Rate This Project
5 - brilliant stuff
4 - very nice
3 - average
2 - needs work
1 - bad
Advert: Your ad here

Hosted by Prominic.NET

   Project: Domino Unit Framework (Managed by tony palmer)
Actions:

Project Overview

Introduction
Categories

Rating:
Not Rated Yet 
Project Category:
Software Development Tools 
Target Release:
 
Primary Contact:
tony palmer 
Team
Releases (last 3)
Chef(s):
tony palmer
02/20/2008 - Domino Unit Framework (Beta 0.3)
12/19/2007 - Domino Unit Framework (Beta)

Total downloads (all releases): 310

Details
A Unit Testing framework in a similar manner to JUNIT. Currently supports the following object types and your own custom classes.

Numeric Assertions
- integer
- long
- double
- currency
LS Date
Boolean (Integer)
String
NotesObjects
- NotesDocument (based on UNID)
- NotesDatabase (based on Replica Id)

Code Examples.

' -- set the place for the results to go
Dim OutputStream As NotesDatabaseOutputStream
Set OutputStream = New NotesDatabaseOutputStream(session, "", "tools/DominoUnit.nsf")

' -- creating a new test
Dim testObject As New Test("Test Objects", Outputstream)

' -- assertions
Call test.AssertEqual("Test",1)
Call test.AssertTrue(True)
Call test.AssertFalse(False)

' -- test suites
Dim testSuite As New TestSuite("isMemberTests", OutputStream)

' -- add the test to the suite
Call testSuite.Add(test1)
Call test1.AssertEqual(True,isMember(vArray2,vArray1))

' -- custom classes
Dim tony As New Person
Dim emp As New Person

Call tony.init("Tony","A","Palmer")
Call emp.init("Tony","A","Palmer")

Call Test101.AssertEqual(tony,emp)

Class Person
...
Function isEqual(people As Person) As Integer
' add in your own code that determines equality or not.
End Function
..
End Class



Latest activity


Check out other projects
Switch to project: