@@ -0,0 +1,1503 @@
+package com.yammer.stresstime.resources;%0A%0Aimport com.sun.jersey.core.util.MultivaluedMapImpl;%0Aimport com.yammer.stresstime.entities.AssignmentType;%0Aimport com.yammer.stresstime.entities.Group;%0Aimport com.yammer.stresstime.fixtures.GroupsFixture;%0A%0Aimport javax.ws.rs.core.MultivaluedMap;%0A%0Apublic class AssignmentTypesResourceTest extends GetCreateDeleteResourceTest%3CAssignmentType%3E %7B%0A    private Group group;%0A    String name = %22Primary%22;%0A    String description = %22blah blah blah%22;%0A%0A    @Override%0A    protected MultivaluedMap getSamplePostForm() %7B%0A        MultivaluedMapImpl form = new MultivaluedMapImpl();%0A        form.add(%22name%22, name);%0A        form.add(%22description%22, description);%0A        return form;%0A    %7D%0A%0A    @Override%0A    protected String getResourcePath() %7B%0A        return String.format(%22/groups/%25d/assignment-types%22, group.getId());%0A    %7D%0A%0A    @Override%0A    protected boolean checkCreatedEntity(AssignmentType entity) %7B%0A        return entity.getName().equals(name) && entity.getDescription().equals(description);%0A    %7D%0A%0A    @Override%0A    protected Class%3CAssignmentType%3E getEntityClass() %7B%0A        return AssignmentType.class;%0A    %7D%0A%0A    @Override%0A    protected Class%3CAssignmentType%5B%5D%3E getEntityArrayClass() %7B%0A        return AssignmentType%5B%5D.class;%0A    %7D%0A%0A    @Override%0A    protected void initialize() %7B%0A        GroupsFixture groupsFixture = new GroupsFixture();%0A        groupsFixture.save(getSessionFactory());%0A        group = groupsFixture.getGroups().get(0);%0A        refresh(group);%0A    %7D%0A%7D%0A

Create AssignmentTypesResourceTest