Package com.andrewswan.bgg4j

Examples of com.andrewswan.bgg4j.BoardGameSummary


        final List<BoardGameSummary> matches = repository.search(name);

        // Check
        assertNotNull(matches);
        assertEquals(1, matches.size());
        final BoardGameSummary boardGame = matches.get(0);
        assertEquals(1, boardGame.getBggId());
        assertEquals(name, boardGame.getPrimaryName());
        assertEquals(1986, boardGame.getYearPublished());
    }
View Full Code Here


        // Set up
        final String name = "Steam";
        assertTrue(repository.search(name).size() > 1);

        // Invoke
        final BoardGameSummary game = repository.searchExact(name);

        // Check
        assertNotNull(game);
        assertEquals(name, game.getPrimaryName());
    }
View Full Code Here

TOP

Related Classes of com.andrewswan.bgg4j.BoardGameSummary

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.