use of mondrian.util.ByteString in project mondrian by pentaho.
the class GroupingSetsListTest method getStarMock.
private static RolapStar getStarMock() {
RolapStar mock = mock(RolapStar.class);
RolapStar.Table tableMock = mock(RolapStar.Table.class);
RolapSchema schemaMock = mock(RolapSchema.class);
ByteString md5 = new ByteString("test schema".getBytes());
when(mock.getSchema()).thenReturn(schemaMock);
when(schemaMock.getChecksum()).thenReturn(md5);
when(mock.getFactTable()).thenReturn(tableMock);
when(tableMock.getAlias()).thenReturn("Table Mock");
return mock;
}
Aggregations