Examples of removeQuestion()


Examples of com.darkhonor.rage.model.GradedEvent.removeQuestion()

                        + "IllegalArgumentException");
                throw new IllegalArgumentException("Question not assigned to "
                        + "GradedEvent");
            }

            result.removeQuestion(question);
            tx.begin();
            em.merge(result);
            tx.commit();
        }
    }
View Full Code Here

Examples of com.darkhonor.rage.model.GradedEvent.removeQuestion()

                    LOGGER.debug("(removeQuestionFromAllGradedEvents) Question in " +
                            "event " + event.getId());
                    LOGGER.debug("Questions in Event " + event.getId() + " (pre): " +
                            event.getQuestions().size());
                    tx.begin();
                    event.removeQuestion(question);
                    event = em.merge(event);
                    tx.commit();
                    count++;
                    LOGGER.debug("Questions in Event " + event.getId() + " (post): " +
                            event.getQuestions().size());
View Full Code Here

Examples of com.darkhonor.rage.model.GradedEvent.removeQuestion()

            // we need to pull it's list of questions and then remove the selected
            // one from it's list and re-persist
            if (gevent != null)
            {
                Question quest = (Question) lstGradedEventQuestions.getSelectedValue();
                if (gevent.removeQuestion(quest))
                {
                    JOptionPane.showMessageDialog(this, "Question " + quest.getName()
                            + " removed from Graded Event " + gevent.getAssignment(),
                            "Success", JOptionPane.INFORMATION_MESSAGE);
                    modGradedEventQuestions.remove(lstGradedEventQuestions.getSelectedIndex());
View Full Code Here

Examples of com.darkhonor.rage.model.GradedEvent.removeQuestion()

        GradedEvent gradedEvent = instance.find(new Long(3L));
        assertEquals(1, gradedEvent.getQuestions().size());
        assertNotNull(gradedEvent.getQuestions());
        Question question = gradedEvent.getQuestions().get(0);
        gradedEvent.removeQuestion(question);

        // Make sure the updated GradedEvent is returned from the method
        GradedEvent result = instance.update(gradedEvent);
        assertNotNull(result);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.