@@ -0,0 +1,2127 @@
+package com.yammer.stresstime.managers;%0A%0Aimport com.google.common.collect.Lists;%0Aimport com.yammer.stresstime.entities.Employee;%0Aimport com.yammer.stresstime.entities.AssignmentType;%0Aimport com.yammer.stresstime.entities.Group;%0Aimport com.yammer.stresstime.entities.User;%0Aimport com.yammer.stresstime.test.DatabaseTest;%0Aimport com.yammer.stresstime.test.TestUtils;%0Aimport org.junit.Before;%0Aimport org.junit.BeforeClass;%0Aimport org.junit.Test;%0A%0Aimport java.util.List;%0A%0Aimport static com.yammer.stresstime.test.TestUtils.assertCauses;%0Aimport static org.hamcrest.MatcherAssert.assertThat;%0Aimport static org.hamcrest.core.IsEqual.equalTo;%0Aimport static org.junit.Assert.assertNotNull;%0Aimport static org.junit.Assert.assertNull;%0A%0Apublic class AssignmentTypeManagerTest extends BaseManagerTest%3CAssignmentType%3E %7B%0A%0A    private AssignmentTypeManager assignmentTypeManager;%0A    private List%3CAssignmentType%3E testAssignmentTypes;%0A    private List%3CGroup%3E groups;%0A%0A    @Override%0A    protected EntityManager%3CAssignmentType%3E getEntityManager() %7B%0A        return assignmentTypeManager;%0A    %7D%0A%0A    @Override%0A    protected List%3CAssignmentType%3E getEntities() %7B%0A        return testAssignmentTypes;%0A    %7D%0A%0A    @Override%0A    protected void initialize() %7B%0A        assignmentTypeManager = new AssignmentTypeManager(getSessionFactory());%0A        groups = Lists.newArrayList(new Group(%22group 1%22), new Group(%22group 2%22), new Group(%22group 3%22));%0A        GroupManager groupManager = new GroupManager(getSessionFactory());%0A        groups.stream().forEach(g -%3E groupManager.save(g));%0A        testAssignmentTypes = Lists.newArrayList(new AssignmentType(%22Primary%22, groups.get(0)),%0A                new AssignmentType(%22Secondary%22, groups.get(0)),%0A                new AssignmentType(%22Primary Support%22, groups.get(0)),%0A                new AssignmentType(%22AT 1%22, groups.get(1)),%0A                new AssignmentType(%22AT 2%22, groups.get(1)),%0A                new AssignmentType(%22AT 3%22, groups.get(1)),%0A                new AssignmentType(%22AT 4%22, groups.get(1)),%0A                new AssignmentType(%22Name%22, groups.get(2)));%0A    %7D%0A%0A    @Override%0A    protected void clean() %7B%7D%0A%7D%0A

Create AssignmentTypeManagerTest