Package ejava.projects.eleague.ejb
Class ParserTestEJB
- java.lang.Object
-
- ejava.projects.eleague.ejb.ParserTestEJB
-
- All Implemented Interfaces:
ParserTestRemote
public class ParserTestEJB extends Object implements ParserTestRemote
This class provides a sanity parse check of the XML file when deployed to the server as an EJB. This test verifies the right XML classes get deployed.
-
-
Constructor Summary
Constructors Constructor Description ParserTestEJB()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
ingest()
void
init()
(package private) void
testClub(Club club)
(package private) void
testContact(Contact contact)
(package private) void
testContactRole(ContactRoleType role)
(package private) void
testDivision(Division d)
(package private) void
testLeagueMetadata(LeagueMetadata md)
(package private) void
testSeason(Season season)
(package private) void
testTeam(Team team)
(package private) void
testTeamSeason(TeamSeason ts)
private void
testVenue(Venue venue)
-
-
-
Field Detail
-
log
private static final org.slf4j.Logger log
-
xmlFile
private String xmlFile
-
-
Method Detail
-
init
@PostConstruct public void init()
-
ingest
public void ingest() throws Exception
- Specified by:
ingest
in interfaceParserTestRemote
- Throws:
Exception
-
testSeason
void testSeason(Season season)
-
testDivision
void testDivision(Division d)
-
testTeamSeason
void testTeamSeason(TeamSeason ts)
-
testLeagueMetadata
void testLeagueMetadata(LeagueMetadata md)
-
testContact
void testContact(Contact contact)
-
testClub
void testClub(Club club)
-
testVenue
private void testVenue(Venue venue)
-
testTeam
void testTeam(Team team)
-
testContactRole
void testContactRole(ContactRoleType role)
-
-