@@ -0,0 +1,1171 @@
+package edu.northwestern.bioinformatics.studycalendar.utils.hibernate;%0A%0Aimport edu.northwestern.bioinformatics.studycalendar.testing.StudyCalendarTestCase;%0Aimport edu.northwestern.bioinformatics.studycalendar.domain.Participant;%0Aimport edu.northwestern.bioinformatics.studycalendar.domain.StudyParticipantAssignment;%0Aimport edu.northwestern.bioinformatics.studycalendar.domain.Activity;%0A%0A/**%0A * @author Rhett Sutphin%0A */%0Apublic class StudyCalendarNamingStrategyTest extends StudyCalendarTestCase %7B%0A    private static final String DC = %22DON'T CARE%22;%0A%0A    private StudyCalendarNamingStrategy strategy = new StudyCalendarNamingStrategy();%0A%0A    public void testForeignKeyColumn() throws Exception %7B%0A        assertEquals(%22planned_event_id%22, strategy.foreignKeyColumnName(%22plannedEvent%22, DC, DC, DC));%0A    %7D%0A%0A    public void testTableName() throws Exception %7B%0A        assertEquals(%22participants%22, strategy.classToTableName(Participant.class.getName()));%0A        assertEquals(%22study_participant_assignments%22, strategy.classToTableName(StudyParticipantAssignment.class.getName()));%0A        assertEquals(%22activities%22, strategy.classToTableName(Activity.class.getName()));%0A    %7D%0A%7D%0A

Test for previously committed strategy