Skip to content
Snippets Groups Projects
Commit c7f9f2fd authored by tpylak's avatar tpylak
Browse files

LMS-544 fix unit tests

SVN: 9468
parent 8b1261dc
No related branches found
No related tags found
No related merge requests found
...@@ -24,6 +24,7 @@ import static org.testng.AssertJUnit.fail; ...@@ -24,6 +24,7 @@ import static org.testng.AssertJUnit.fail;
import java.util.List; import java.util.List;
import org.apache.commons.lang.StringUtils;
import org.springframework.dao.DataAccessException; import org.springframework.dao.DataAccessException;
import org.springframework.dao.DataIntegrityViolationException; import org.springframework.dao.DataIntegrityViolationException;
import org.springframework.test.annotation.NotTransactional; import org.springframework.test.annotation.NotTransactional;
...@@ -100,7 +101,7 @@ public final class PersonDAOTest extends AbstractDAOTest ...@@ -100,7 +101,7 @@ public final class PersonDAOTest extends AbstractDAOTest
{ {
final IPersonDAO personDAO = daoFactory.getPersonDAO(); final IPersonDAO personDAO = daoFactory.getPersonDAO();
final PersonPE testPerson = createPerson(); final PersonPE testPerson = createPerson();
testPerson.setUserId(EXCEED_40_CHARACTERS); testPerson.setUserId(StringUtils.repeat("A", 51));
// User id too long // User id too long
try try
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment