Search in sources :

Example 1 with Player

use of example.Player in project elide by yahoo.

the class MetaDataStoreTest method testHiddenTable.

@Test
public void testHiddenTable() {
    Table player = dataStore.getTable(ClassType.of(Player.class));
    Table playerStats = dataStore.getTable(ClassType.of(PlayerStats.class));
    assertTrue(player.isHidden());
    assertFalse(playerStats.isHidden());
    Namespace namespace = dataStore.getNamespace(ClassType.of(Player.class));
    assertTrue(namespace.getTables().contains(playerStats));
    assertFalse(namespace.getTables().contains(player));
}
Also used : Player(example.Player) Table(com.yahoo.elide.datastores.aggregation.metadata.models.Table) PlayerStats(example.PlayerStats) Namespace(com.yahoo.elide.datastores.aggregation.metadata.models.Namespace) Test(org.junit.jupiter.api.Test)

Aggregations

Namespace (com.yahoo.elide.datastores.aggregation.metadata.models.Namespace)1 Table (com.yahoo.elide.datastores.aggregation.metadata.models.Table)1 Player (example.Player)1 PlayerStats (example.PlayerStats)1 Test (org.junit.jupiter.api.Test)1