package scoutmgr.server.entity.dao.internal;

import java.util.List;
import scoutmgr.server.entity.Person;
import org.testng.annotations.Test;
import static org.testng.Assert.*;

public class PersonRepositoryImplTest
  extends AbstractPersonRepositoryImplTest
{
  @Test
  public void findAllWhereNameLike()
    throws Exception
  {
    s.createPerson( "Bilbo" );
    s.createPerson( "Gorgon" );
    s.createPerson( "Greg" );
    s.createPerson();

    final List<Person> persons = dao().findAllWhereNameLike( "G%" );
    assertEquals( persons.size(), 2 );
  }
}

@@ -58,24 +58,68 @@
 .util.List;%0A
+import org.testng.annotations.BeforeMethod;%0A
 import scout
@@ -144,16 +144,16 @@
 Person;%0A
-
 import o
@@ -214,16 +214,46 @@
 ssert.*;
+%0Aimport org.postgresql.Driver;
 %0A%0Apublic
@@ -327,18 +327,189 @@
 mplTest%0A
-
 %7B%0A
+  @BeforeMethod%0A  @Override%0A  public void preTest()%0A    throws Exception%0A  %7B%0A    System.setProperty( %22test.db.driver%22, Driver.class.getName() );%0A    super.preTest();%0A  %7D%0A%0A
   @Test%0A

Define test.db.driver, so that postgres is used. Need to pull this up into an abstract at some point.