07-22-2009 06:13 AM
From where i can download entire BUnit?
From this url "http://sourceforge.net/projects/b-unittesting/" i downloaded zip file which contains only src folder. how to make use of that...
07-22-2009 06:17 AM
the source contains everything you need.
there is no magic ![]()
jfisher\
contains an application with screen for showing results including:
DistanceConversion.java
is the class they test
DistanceConversionTest.java
contains the test code
unittestApp.java
show how the call the test
jmunit\
contains "unittesting framework" classes
07-23-2009 02:54 AM
03-12-2010 07:42 AM
06-24-2010 05:05 AM
Just copy bunit source code to your project
(I prefer to create a new source folder named test for it.)
Have a look at jfisher.logic.test.unittestApp and run this class (it contains a main() function) You will know how to test your application immediately,
- DistanceConversion is a sample class
- DistanceConversionTest is the testing class.
06-24-2010 05:16 AM
There is one problem :
In project there are 2 main() method:
- main() of bunit
- main() of our application.
Is there any quick way to choose which main() method is executed ?
Thanks
08-25-2010 07:19 AM
Yes there is.
You can define an Alternate Entry Point in the application descriptor xml and add an application argument (I used "bunit" for example).
Then, in the main() of my application I have the following code:
Now, on the blackberry home screen I have an additional application icon for unit tests.
10-14-2010 09:06 AM