/** * Test to make sure you can get a single dimension in a cube. * * @throws SaikuOlapException */ @Test public final void testGetDimensionNull() throws SaikuOlapException { List<SaikuCube> cubes = olapMetaExplorer.getAllCubes(); SaikuDimension dim = olapMetaExplorer.getDimension(cubes.get(0), "No dimension"); assertNull(dim); }
/** * Test to make sure you can get a single dimension in a cube. * * @throws SaikuOlapException */ @Test public final void testGetDimension() throws SaikuOlapException { List<SaikuCube> cubes = olapMetaExplorer.getAllCubes(); SaikuDimension dim = olapMetaExplorer.getDimension(cubes.get(0), "Department"); assertNotNull(dim); assertEquals("Department", dim.getName()); }