@Test public void removeQuestionTest_1() throws Exception { java.util.ArrayList<question.models.QuestionModel> questions = cloner.deepClone(getFieldValue(testObj, "questions", java.util.ArrayList.class)); int testComboIndex; String methodId = "removeQuestion_question.models.QuestionModel"; List<question.models.QuestionModel> testPoints_0 = javaTestutility.getSampleObjects( testObj, methodId, "question", question.models.QuestionModel.class); int[][] combinations = CombinationSupport.getCombinations(testPoints_0.size()); Class[] parameterClasses = {question.models.QuestionModel.class}; List<question.models.QuestionModel> qs_0 = javaTestutility.getUniversalValues(testObj, methodId, 0); boolean forall_59 = true; question.models.QuestionModel param_0; for (testComboIndex = 0; testComboIndex < combinations.length; testComboIndex++) { param_0 = testPoints_0.get(combinations[testComboIndex][0]); testObj.removeQuestion(param_0); for (question.models.QuestionModel q : qs_0) { forall_59 = forall_59 && (!(q.equals(question))); if (questions.contains(q)) { Assert.assertTrue( !(javaTestutility .getFieldValue(testObj, "questions", java.util.ArrayList.class) .contains(q))); } else { Assert.assertTrue( !(javaTestutility .getFieldValue(testObj, "questions", java.util.ArrayList.class) .contains(q))); } } Assert.assertTrue(forall_59); setUp(); } }
@Test public void setClassCodeTest_0() throws Exception { int testComboIndex; String methodId = "setClassCode_java.lang.String"; List<java.lang.String> testPoints_0 = javaTestutility.getSampleObjects(testObj, methodId, "code", java.lang.String.class); int[][] combinations = CombinationSupport.getCombinations(testPoints_0.size()); java.lang.String param_0; for (testComboIndex = 0; testComboIndex < combinations.length; testComboIndex++) { param_0 = testPoints_0.get(combinations[testComboIndex][0]); testObj.setClassCode(param_0); Assert.assertTrue(param_0.length() > 1); setUp(); } }