Enterprise Java Development@TOPIC@
The end-to-end scenario will test your business logic, DAO, and BOs in a "happy path" scenario. Any white-box or black-box testing of alternate and error paths would be appropriate to put in the separate unit tests.
Provide a JUnit test for your business objects (BOs) that test the manipulation of data. An example test might be to try forming a contest between teams in separate divisions or schedule a contest that conflicts with a team and/or venue schedule. These tests should be packaged with the BOs. There should be a separate project and test for both eLeague and eClub. It is anticipated that these tests will be a minimal demonstration of understanding.
Provide a JUnit test for your eLeague and eClub JPA DAOs. This should test the implementation for the required CRUD operations for each type of object. It is understood that some of the operations will be handled by cascades, so you might not have a set of methods handling each type of business object. This test should be packaged with the DAOs.
Provide a JUnit test for your business logic to test the basic functionality of your business logic design, including ingest. The ingestor test should be able to reference a known data file and ingest records into the database using the DAOs. These tests should be packaged with the business logic implementation.
Provide a set of JUnit test programs to verify the following end-to-end scenario in eLeague. This test should be implemented as a JUnit test and packaged with the business logic implementation.
reset (using LeagueTestUtil) -- reset the eLeague database to an initial starting state.
ingest data (using LeagueIngestor) -- ingest the full XML test data file.
createClub (using LeagueMgmtImpl)
addVenue (using ClubMgmtImpl)
addTeam (using ClubMgmtImpl)
updateContact for team (using ClubMgmtImpl)
assignTeamDivision (using LeagueMgmtImpl) - divisions already exist for current/next season within the test data.
scheduleSeason (using ContestMgmtImpl)
getDivisions (using LeagueMgmtImpl)
getDivisionStandings (using LeagueMgmtImpl)
getTeam with schedule and results (using LeagueMgmtImpl)
reportScore (using ContestMgmtImpl)
getTeam with schedule and results (using LeagueMgmtImpl)
getDivisionStandings (using LeagueMgmtImpl)
Provide a set of JUnit test programs to verify the following end-to-end scenario in eClub. This test should be implemented as a JUnit test and packaged with the business logic implementation. Note that it is anticipated that you may only have time to create one team, with one player, manager, parent, and coach for the club.
reset (using OrganizationTestUtil) -- reset the organization database to an initial starting state.
createParent (MemberMgmtImpl) - parent depicted as Individual
createPlayer (MemberMgmtImpl)
createCoach (MemberMgmtImpl)
createTeam (using OrgMgmtImpl)
assignPlayers (using OrgMgmtImpl)
assignCoach (using OrgMgmtImpl)
assignManager (using OrgMgmtImpl)
getTeamRoster (using OrgMgmtImpl)
getTeamSchedule (using OrgMgmtImpl) - this will later call eLeague for Contest information, but for now simply returns an empty list.