Hi guys. I was wondering if anyone has ever investigated the possibility of using a custom classloader to transparantly (to the tested code) provide non...
Dear Sir We have just starting using java we trying to import our existing application from Visual studio to java platform we need some suggestions to choose...
Hi everybody on this list, yesterday I finished my third junit-test-first project. It is amazing: The software runs as expected after deployed on the clients...
You guys might be able to help me. I want to be able to determine dynamically the number of tests that should be run. I have a number of tests to run that...
Hello, I am a beginner to the JUnit framework. I didn't understand an issue about the theory of JUnit. The test methods defined in a TestCase class are...
Hello Guys This is LP from Japan. I am writing applets , i want to unit test it with classes. Can i use JUnit framework for that . If( yes ){ 1. how ?? 2. can...
Hi, I have built a set of screens using tdk for maintaining a database. Tdk has generated the OM files for each of the tables, which i have modified later, for...
I wonder if list members might wish to share current strategies for unit testing of EJB, particularly CMP Entity Beans. I'm aware of Cactus, and have tested...
Hey all, First off, if this is the wrong place to ask this, could you point me to the right place? I am just starting up trying to get some junit tests put...
Ok...I posted my (ugly) implementation of a test suite builder. It just runs through the classpath looking for classes that are derived from TestCase, and...
It is not trivial to discover classes in the classpath that are not yet loaded, let alone discovering such classes that implement/extend a specific type. At...
I don't think that would be wise. That would then couple the framework to your business object. You would pass your object into the test suite, which would...
Writing a TestSuiteBuilder that uses reflection might be a good idea, but wouldn't it be better if the functionality we need was built into JUnit? Could we add...
Of course, you could have a utility class, like a TestSuiteBuilder, that will scan the classpath via reflection and build up the test suite. The code is...
Hi Everyone, Is it possible to automatically add all the tests of a test class to a suite without using 'suite.addTestSuite(MyTest.class)'? I have a test class...
This sounds like a good approach but still it couples the test class and the components it must test. In the future should I create a new component I will...
What about some reflection ? (note argumentTypes can easily made from arguments, and classes could be dynamicaly found, but that is not so simple) Jason's...
A little cleaner approach would be to set them in lists and have the tests iterate over the lists. Each test method then iterates over the list of Components...
That was my first thought as well, and the solution I currently have. But consider this...... You can instantiate a JTextField 5 different ways and a...
You are right. I was just checking for an easy (lazy?) solution to my problem. As a matter of fact I am creating an API! Good guess. And all constructors ...
The 'N problem' exists because Sun wants users of Java to have some choices. As long as you are implementing custom solutions for your software, why not ...
Sorry, Misunderstood, probably RTFM (Reda The F***ing Mail) syndrome on my part. What I think is the issue is that you should have an abstract test case ...
Hi Mark, Maybe I missed the point: I thought that the constructor of TestSuite took a class, but that class should contain some tests. In my situation I have...
public static Test suite() { TestSuite suite = new TestSuite(); suite.addTest(new TestSuite(ChildA.class)); suite.addTest(new TestSuite(ChildB.class)); return...
I am new to junit.Please tell me what test case i must write for the follwing code using junit. package Gic; import java.sql.*; import java.awt.*; public class...