From: Tim P. <ti...@pa...> - 2007-02-27 12:09:07
|
Update of /usr/cvsroot/melati/poem/src/test/java/org/melati/poem/test In directory rama.paneris.org:/tmp/cvs-serv14984/poem/src/test/java/org/melati/poem/test Modified Files: SettingTest.java Log Message: Javadoc Index: SettingTest.java =================================================================== RCS file: /usr/cvsroot/melati/poem/src/test/java/org/melati/poem/test/SettingTest.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- SettingTest.java 1 Feb 2007 21:49:28 -0000 1.4 +++ SettingTest.java 27 Feb 2007 11:11:56 -0000 1.5 @@ -3,6 +3,7 @@ */ package org.melati.poem.test; +import org.melati.poem.PoemThread; import org.melati.poem.PoemTypeFactory; import org.melati.poem.Setting; import org.melati.poem.Setting.SettingTypeMismatchException; @@ -114,7 +115,7 @@ } /** - * FIXME + * FIXME Should we be able to change nullability? * * @see org.melati.poem.Setting#getRaw() */ @@ -123,13 +124,19 @@ "eggs", "Test Setting", "A test setting"); getDb().getSettingTable().create(s); s.setNullable(true); + //System.err.println("Type:"+ s.getType()); + //System.err.println("Nullable:"+ s.toTypeParameter().getNullable()); assertEquals("eggs", s.getValue()); s.setValue(null); s.setNullable(false); + PoemThread.commit(); + //System.err.println("Nullable:"+ s.toTypeParameter().getNullable()); + //System.err.println("Type:"+ s.getType()); try { s.getRaw(); - // fail("Should have blown up."); + // fail("Should have blown up."); } catch (SettingValidationException e) { + e.printStackTrace(); e = null; } s.delete(); |