18 package testsuite.clusterj;
 
   20 import com.mysql.clusterj.ClusterJException;
 
   22 import testsuite.clusterj.model.Employee;
 
   26     private static String name = 
 
   27         "11111111111111111111111111111111111111111111111111" +
 
   28         "11111111111111111111111111111111111111111111111111" +
 
   29         "11111111111111111111111111111111111111111111111111" +
 
   30         "11111111111111111111111111111111111111111111111111" +
 
   31         "11111111111111111111111111111111111111111111111111" +
 
   32         "11111111111111111111111111111111111111111111111111" +
 
   33         "11111111111111111111111111111111111111111111111111" +
 
   34         "11111111111111111111111111111111111111111111111111" +
 
   35         "11111111111111111111111111111111111111111111111111" +
 
   36         "11111111111111111111111111111111111111111111111111";
 
   40         createSessionFactory();
 
   47         for (
int i = 0; 
i < 500; ++
i) {
 
   49             e.setName(name.substring(0, 
i));
 
   56                     error(
"Expected exception not thrown for: " + 
i);
 
   58             } 
catch (ClusterJException ex) {
 
   61                     error(
"Unexpected exception for: " + 
i + 
" " + ex.getMessage());