コード例 #1
0
 /**
  * Test method for {@link
  * edu.psu.iam.cpr.core.database.tables.validate.ValidateUserComment#validateGetUserCommentsParameters(Database,
  * long, java.lang.String)}.
  *
  * @throws Exception
  * @throws Exception
  */
 @Test(expectedExceptions = Exception.class)
 public final void testValidateUserCommentParameters3() throws Exception {
   openDbConnection();
   ValidateUserComment.validateGetUserCommentsParameters(
       db, 100000, "1234567890123456789012345678901", null, "N", null);
   db.closeSession();
 }
コード例 #2
0
 /**
  * Test method for {@link
  * edu.psu.iam.cpr.core.database.tables.validate.ValidateUserComment#validateGetUserCommentsParameters(Database,
  * long, java.lang.String)}.
  *
  * @throws Exception
  * @throws Exception
  */
 @Test
 public final void testValidateUserCommentParameters37() throws Exception {
   openDbConnection();
   UserCommentTable userCommentTable =
       ValidateUserComment.validateGetUserCommentsParameters(
           db, 100000, "cpruser", "USER_COMMENT_MISUSE", "Y", null);
   AssertJUnit.assertTrue(userCommentTable.isReturnHistoryFlag());
   AssertJUnit.assertEquals(
       userCommentTable.getUserCommentType(), UserCommentType.USER_COMMENT_MISUSE);
   db.closeSession();
 }
コード例 #3
0
 /**
  * Test method for {@link
  * edu.psu.iam.cpr.core.database.tables.validate.ValidateUserComment#validateGetUserCommentsParameters(Database,
  * long, java.lang.String)}.
  *
  * @throws Exception
  * @throws Exception
  */
 @Test
 public final void testValidateUserCommentParameters4() throws Exception {
   openDbConnection();
   ValidateUserComment.validateGetUserCommentsParameters(db, 100000, "cpruser", null, "Y", null);
   db.closeSession();
 }
コード例 #4
0
 /**
  * Test method for {@link
  * edu.psu.iam.cpr.core.database.tables.validate.ValidateUserComment#validateGetUserCommentsParameters(Database,
  * long, java.lang.String)}.
  *
  * @throws Exception
  * @throws Exception
  */
 @Test(expectedExceptions = Exception.class)
 public final void testValidateUserCommentParameters2() throws Exception {
   ValidateUserComment.validateGetUserCommentsParameters(db, 100000, "", null, "N", null);
 }