/**
As I shown below I given abstract for a class which extends TestCase class.
But in the link you given they given same.Here at confused symbols I given abstract.I got error as "No
JUnit Test Found". What may be the problem
*/
package com.ejbpro;
import junit.framework.TestCase;
import com.mobiapps.business.framework.MobiDTO;
import com.mobiapps.business.framework.MobiSession;
import com.mobiapps.mtrak.drivers.*;
public abstract
class DriverStatelessRemoteTest extends TestCase
{
protected void tearDown() throws Exception
{
}
private DriverStatelessRemote driver;
public MobiDTO dto;
public static MobiSession session = new MobiSession();
public DriverStatelessRemoteTest(
String name)
{
super(name);
}
public final void setUp() throws Exception
{
driver=createDriverStatelessRemote();
assertNotNull("It should'nt be null",driver);
}
public abstract
DriverStatelessRemote createDriverStatelessRemote() throws Exception;
public void testAdd() throws Exception
{
boolean x=driver.add(dto,session);
System.out.println("Value is: "+x);
}
}