Package org.jmcdonnell.blackoutrugby.beans

Examples of org.jmcdonnell.blackoutrugby.beans.Fixture


*/
public class RequestManagerFixtureTest extends AbstractApiRequestTest {

    @Test
    public void testGetNationalFixtureByIdNotNull() throws BlackoutException {
        Fixture fixture
                = requestManager.getEntityFromApi(new Long(6537), Fixture.class, Boolean.TRUE, Boolean.FALSE);

        assertNotNull(fixture);
    }
View Full Code Here


        assertNotNull(fixture);
    }

    @Test
    public void testGetUnderTwentyFixtureByIdNotNull() throws BlackoutException {
        Fixture fixture
                = requestManager.getEntityFromApi(new Long(3716), Fixture.class, Boolean.TRUE, Boolean.TRUE);

        assertNotNull(fixture);
    }
View Full Code Here

        assertNotNull(fixture);
    }

    @Test
    public void testGetClubFixtureByIdNotNull() throws BlackoutException {
        Fixture fixture
                = requestManager.getEntityFromApi(new Long(System.getProperty("fixture.1.id")), Fixture.class, Boolean.FALSE, Boolean.FALSE);

        assertNotNull(fixture);
    }
View Full Code Here

        assertNotNull(fixture);
    }

    @Test
    public void testGetYouthFixtureByIdNotNull() throws BlackoutException {
        Fixture fixture
                = requestManager.getEntityFromApi(new Long(10023659), Fixture.class, Boolean.FALSE, Boolean.TRUE);

        assertNotNull(fixture);
    }
View Full Code Here

        assertNotNull(entitiesFromApi);
    }

    @Test
    public void testContentsOfSingleFixtureById() throws BlackoutException {
        Fixture LastFixture = requestManager.getLastFixtureForTeam(new Long(System.getProperty("team.id")), Boolean.FALSE, Boolean.FALSE);

        Fixture fixture
                = requestManager.getEntityFromApi(LastFixture.getFixtureId(), Fixture.class, Boolean.FALSE, Boolean.FALSE);

        assertNotNull(fixture.getBotMatch());
        assertNotNull(fixture.getCompetition());
        assertNotNull(fixture.getCountryIso());
        assertTrue(fixture.getFixtureId().equals(new Long(System.getProperty("fixture.1.id"))));
        assertNotNull(fixture.getGuestTeamId());
        assertNotNull(fixture.getHomeTeamId());
        assertNotNull(fixture.getLeagueId());
        assertNotNull(fixture.getMatchStart());
        assertNotNull(fixture.getRound());
        assertNotNull(fixture.getSeason());
    }
View Full Code Here

        fixtureIds.add(lastFixtures.get(0).getFixtureId());
        fixtureIds.add(lastFixtures.get(1).getFixtureId());
        List<Fixture> entitiesFromApi
                = requestManager.getEntitiesFromApi(fixtureIds, Fixture.class, Boolean.FALSE, Boolean.FALSE);

        Fixture fixture1 = entitiesFromApi.get(0);
        Fixture fixture2 = entitiesFromApi.get(1);

        assertNotNull(fixture1.getBotMatch());
        assertNotNull(fixture1.getCompetition());
        assertNotNull(fixture1.getCountryIso());
        assertTrue(fixture1.getFixtureId().equals(fixtureIds.get(0)));
        assertNotNull(fixture1.getGuestTeamId());
        assertNotNull(fixture1.getHomeTeamId());
        assertNotNull(fixture1.getLeagueId());
        assertNotNull(fixture1.getMatchStart());
        assertNotNull(fixture1.getRound());
        assertNotNull(fixture1.getSeason());

        assertNotNull(fixture2.getBotMatch());
        assertNotNull(fixture2.getCompetition());
        assertNotNull(fixture2.getCountryIso());
        assertTrue(fixture2.getFixtureId().equals(fixtureIds.get(0)));
        assertNotNull(fixture2.getGuestTeamId());
        assertNotNull(fixture2.getHomeTeamId());
        assertNotNull(fixture2.getLeagueId());
        assertNotNull(fixture2.getMatchStart());
        assertNotNull(fixture2.getRound());
        assertNotNull(fixture2.getSeason());
    }
View Full Code Here

TOP

Related Classes of org.jmcdonnell.blackoutrugby.beans.Fixture

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.