Ejemplo n.º 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();
 }
Ejemplo n.º 2
0
 /**
  * Test method for {@link
  * edu.psu.iam.cpr.core.database.tables.validate.ValidateUserComment#validateGetUserCommentByTypeParameters(Database,
  * long, java.lang.String, java.lang.String, java.lang.String)}.
  *
  * @throws Exception
  * @throws Exception
  */
 @Test
 public final void testValidateUserCommentParameters36() throws Exception {
   openDbConnection();
   ValidateUserComment.validateGetUserCommentByTypeParameters(
       db, 100000, "tzj115", "USER_COMMENT_MISUSE", "cpruser");
   db.closeSession();
 }
Ejemplo n.º 3
0
 /**
  * Test method for {@link
  * edu.psu.iam.cpr.core.database.tables.validate.ValidateUserComment#validateArchiveUserCommentParameters(Database,
  * long, java.lang.String, java.lang.String, java.lang.String, String)}.
  *
  * @throws Exception
  * @throws Exception
  */
 @Test
 public final void testValidateUserCommentParameters27() throws Exception {
   openDbConnection();
   ValidateUserComment.validateArchiveUserCommentParameters(
       db, 100000, "tzj115", "USER_COMMENT_MISUSE", "cpruser", null);
   db.closeSession();
 }
Ejemplo n.º 4
0
 /**
  * Test method for {@link
  * edu.psu.iam.cpr.core.database.tables.validate.ValidateUserComment#validateGetUserCommentByTypeParameters(Database,
  * long, java.lang.String, java.lang.String, java.lang.String)}.
  *
  * @throws Exception
  * @throws Exception
  */
 @Test(expectedExceptions = Exception.class)
 public final void testValidateUserCommentParameters35() throws Exception {
   openDbConnection();
   ValidateUserComment.validateGetUserCommentByTypeParameters(
       db, 100000, "tzj115", "USER_COMMENT_MISUSE", "1234567890123456789012345678901");
   db.closeSession();
 }
Ejemplo n.º 5
0
 /**
  * Test method for {@link
  * edu.psu.iam.cpr.core.database.tables.validate.ValidateUserComment#validateArchiveUserCommentParameters(Database,
  * long, java.lang.String, java.lang.String, java.lang.String, String)}.
  *
  * @throws Exception
  * @throws Exception
  */
 @Test(expectedExceptions = Exception.class)
 public final void testValidateUserCommentParameters24() throws Exception {
   openDbConnection();
   ValidateUserComment.validateArchiveUserCommentParameters(
       db, 100000, "1234567890123456789012345678901", "USER_COMMENT_MISUSE", "cpruser", null);
   db.closeSession();
 }
Ejemplo n.º 6
0
 /**
  * Test method for {@link
  * edu.psu.iam.cpr.core.database.tables.validate.ValidateUserComment#validateUserCommentsParameters(Database,
  * long, java.lang.String, java.lang.String, java.lang.String, java.lang.String)}.
  *
  * @throws Exception
  */
 @Test
 public final void testValidateUserCommentParameters17() throws Exception {
   openDbConnection();
   ValidateUserComment.validateUserCommentParameters(
       db, 100000, "tuj355", "USER_COMMENT_MISUSE", "comment", "cpruser");
   db.closeSession();
 }
Ejemplo n.º 7
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();
 }
Ejemplo n.º 8
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();
 }
Ejemplo n.º 9
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);
 }
Ejemplo n.º 10
0
 /**
  * Test method for {@link
  * edu.psu.iam.cpr.core.database.tables.validate.ValidateUserComment#validateGetUserCommentByTypeParameters(Database,
  * long, java.lang.String, java.lang.String, java.lang.String)}.
  *
  * @throws Exception
  * @throws Exception
  */
 @Test(expectedExceptions = Exception.class)
 public final void testValidateUserCommentParameters33() throws Exception {
   ValidateUserComment.validateGetUserCommentByTypeParameters(
       db, 100000, "tzj115", "USER_COMMENT_MISUSE", "");
 }
Ejemplo n.º 11
0
 /**
  * Test method for {@link
  * edu.psu.iam.cpr.core.database.tables.validate.ValidateUserComment#validateGetUserCommentByTypeParameters(Database,
  * long, java.lang.String, java.lang.String, java.lang.String)}.
  *
  * @throws Exception
  * @throws Exception
  */
 @Test(expectedExceptions = Exception.class)
 public final void testValidateUserCommentParameters31() throws Exception {
   ValidateUserComment.validateGetUserCommentByTypeParameters(db, 100000, "tzj115", "", null);
 }
Ejemplo n.º 12
0
 /**
  * Test method for {@link
  * edu.psu.iam.cpr.core.database.tables.validate.ValidateUserComment#validateArchiveUserCommentParameters(Database,
  * long, java.lang.String, java.lang.String, java.lang.String, String)}.
  *
  * @throws Exception
  * @throws Exception
  */
 @Test(expectedExceptions = Exception.class)
 public final void testValidateUserCommentParameters23() throws Exception {
   ValidateUserComment.validateArchiveUserCommentParameters(
       db, 100000, "tzj115", "USER_COMMENT_MISUSE", "", null);
 }
Ejemplo n.º 13
0
 /**
  * Test method for {@link
  * edu.psu.iam.cpr.core.database.tables.validate.ValidateUserComment#validateArchiveUserCommentParameters(Database,
  * long, java.lang.String, java.lang.String, java.lang.String, String)}.
  *
  * @throws Exception
  * @throws Exception
  */
 @Test(expectedExceptions = Exception.class)
 public final void testValidateUserCommentParameters18() throws Exception {
   ValidateUserComment.validateArchiveUserCommentParameters(db, 100000, null, null, null, null);
 }