Search in sources :

Example 6 with ByteString

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;
}
Also used : RolapSchema(mondrian.rolap.RolapSchema) RolapStar(mondrian.rolap.RolapStar) ByteString(mondrian.util.ByteString)

Aggregations

ByteString (mondrian.util.ByteString)6 java.io (java.io)2 FileSystemException (org.apache.commons.vfs2.FileSystemException)2 Parser (org.eigenbase.xom.Parser)2 RolapSchema (mondrian.rolap.RolapSchema)1 RolapStar (mondrian.rolap.RolapStar)1 AggregationManager (mondrian.rolap.agg.AggregationManager)1 SegmentCacheManager (mondrian.rolap.agg.SegmentCacheManager)1