<commit_before>package edu.duke.cabig.c3pr.xml;

import java.io.ByteArrayInputStream;
import java.io.Reader;
import java.io.StringReader;

import edu.duke.cabig.c3pr.domain.HealthcareSite;
import edu.duke.cabig.c3pr.domain.LocalHealthcareSite;
import edu.duke.cabig.c3pr.domain.Participant;
import edu.duke.cabig.c3pr.domain.ScheduledEpoch;
import edu.duke.cabig.c3pr.domain.Study;
import edu.duke.cabig.c3pr.domain.StudySite;
import edu.duke.cabig.c3pr.domain.StudySubject;
import gov.nih.nci.common.exception.XMLUtilityException;

/**
 * Will test the XML marshalling framework for c3prv2
 * 
 * @testType unit <p/> Created by IntelliJ IDEA. User: kherm Date: Mar 11, 2007 Time: 2:08:16 PM To
 *           change this template use File | Settings | File Templates.
 */
public class RegistrationMarshallingTestCase extends AbstractXMLMarshalling {

    String marshalledRegistration;

    /**
     * @throws Exception
     * @Before
     */
    protected void setUp() throws Exception {
        super.setUp(); // To change body of overridden methods use File | Settings | File
                        // Templates.
    }

    /**
     * @throws Throwable
     * @Test main test method. Runs methods in a sequence.
     */
    public void testSerializationDeserializationTest() {
    }

    /**
     * Test serialization of message
     */
    private void registrationSerializationTest() {
        StudySubject registration = new StudySubject();
        registration.setInformedConsentSignedDate(dateValue);
        registration.setStartDate(dateValue);

        registration.getIdentifiers().addAll(getIdentifiers());

        StudySite studySite = new StudySite();
<commit_msg>CPR-854 : updated for removing informedConsentSignedDate and informedConsentSignedVersion from StudySubject<commit_after>package edu.duke.cabig.c3pr.xml;

import java.io.ByteArrayInputStream;
import java.io.Reader;
import java.io.StringReader;

import edu.duke.cabig.c3pr.domain.HealthcareSite;
import edu.duke.cabig.c3pr.domain.LocalHealthcareSite;
import edu.duke.cabig.c3pr.domain.Participant;
import edu.duke.cabig.c3pr.domain.ScheduledEpoch;
import edu.duke.cabig.c3pr.domain.Study;
import edu.duke.cabig.c3pr.domain.StudySite;
import edu.duke.cabig.c3pr.domain.StudySubject;
import gov.nih.nci.common.exception.XMLUtilityException;

/**
 * Will test the XML marshalling framework for c3prv2
 * 
 * @testType unit <p/> Created by IntelliJ IDEA. User: kherm Date: Mar 11, 2007 Time: 2:08:16 PM To
 *           change this template use File | Settings | File Templates.
 */
public class RegistrationMarshallingTestCase extends AbstractXMLMarshalling {

    String marshalledRegistration;

    /**
     * @throws Exception
     * @Before
     */
    protected void setUp() throws Exception {
        super.setUp(); // To change body of overridden methods use File | Settings | File
                        // Templates.
    }

    /**
     * @throws Throwable
     * @Test main test method. Runs methods in a sequence.
     */
    public void testSerializationDeserializationTest() {
    }

    /**
     * Test serialization of message
     */
    private void registrationSerializationTest() {
        StudySubject registration = new StudySubject();
        registration.getStudySubjectStudyVersion()
 		.getStudySubjectConsentVersions().get(0).setInformedConsentSignedDate(dateValue);
        registration.setStartDate(dateValue);

        registration.getIdentifiers().addAll(getIdentifiers());

        StudySite studySite = new StudySite();

{'fraction_non_alphanumeric': 0.09552154195011338, 'fraction_numerical': 0.013038548752834467, 'mean_word_length': 3.3893034825870645, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2659139', 'n_tokens_mistral': 1118, 'n_tokens_neox': 1065, 'n_words': 241}