| || |
Problem of using JMUnit in Netbean
i noticed that JMUnit is a derived version of JUnit which is mainly for J2ME testing.
i doing unit testing on the j2me mobile application which developed in netbean.
netbean itself has jmunit installed, that why we choose to use it.
it allows us to create test file by right-clicking on the target java file and then create JMUnit test.
now i try to move all these test files into a independent package. so that next time i can still use the tests package when i get another updated source code. basically, we update the source code through our svn source code repository. but we don't want to save any test files to the svn source code repository.
now i till figure how merge the test code to the updated source code every time.
and ClassNotFound Exception always occurs on certain class which i don't intend to create test case for it.
for example i have
then i have only created JMUnit test for class 2,3
however, i try to run the test suite in WTK. it starts executing the test from class 1
i know i having complicated problem
but please kindly advising me if your guys have any solution.
Re: Problem of using JMUnit in Netbean
since our project is to develop a j2me application, so i guess jmunit is one of the few unit testing framework we can use. (unfortunately we can't use junit at this point)
it is till easy to create jmunit test for every class in our project.
if you have a classA.java, then it auto generates classATest.java for you within the same package.
however, we try to centralize all the jmunit tests , means put all of the test .java into a package.
the reason of doing this is because of the source code that we having now will be kept updating. we will get the updated source from our svn repository. but we should not check in our test files. now i till thinking how should i store my test files. should i store test files alone or with every version of the source code.
if i store the test files with source code, how can i retrieve only test files to be used in the new source code
1 more problem i have is that, the default test suite run tests for every class we have. but i didn't create test for certain classes. so when i execute the test suite in WTK, it complained for noClassFoundException.
so i just wanna know how can include / exclude test case/test suite that i want to execute?
hi i have rewritten my question..
waiting for reply...thx