SuperX-Kernmodul
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

39 lines
1.6 KiB

package de.superx.saiku.cube;
import java.io.IOException;
import org.junit.Ignore;
import org.junit.Test;
/**
* WIP
* Test res_publication_cube.
* @author rogat
* @version $Revision: 1.1 $
*/
public class ResCubeTest extends AbstractCubeTest {
@Test
@Ignore
public void testPublicationCube() throws IOException {
//validate that the cube exists/is visible
validateCubeExists("res_publication_cube");
//execute the mdx
executeMDX("res_publication_cube",
"WITH\n SET [~COLUMNS_bluep_res_qualifikationsschrift_Qualifikationsschrift] AS\n"
+ " {[bluep_res_qualifikationsschrift].[Qualifikationsschrift].[Qualifikationsschrift].Members}\n"
+ "SET [~COLUMNS_bluep_res_peer_reviewed_Peer-reviewed] AS\n"
+ " {[bluep_res_peer_reviewed].[Peer-reviewed].[Peer-reviewed].Members}\n" + "SET [~ROWS] AS\n"
+ " {[bluep_res_dokumenttyp].[Dokumenttyp].[Dokumenttyp].Members}\n" + "SELECT\n"
+ "NON EMPTY CrossJoin(NonEmptyCrossJoin([~COLUMNS_bluep_res_qualifikationsschrift_Qualifikationsschrift], [~COLUMNS_bluep_res_peer_reviewed_Peer-reviewed]), {[Measures].[Anzahl (Publikationen)]}) ON COLUMNS,\n"
+ "NON EMPTY [~ROWS] ON ROWS\n" + "FROM [res_publication_cube]");
//validate the result
validateResultEquals(0, 0, 4);
validateResultEquals(1, 0, 1);
validateResultEquals(2, 0, 3);
validateResultEquals(0, 2, 0);
validateResultEquals(6, 2, 15);
}
}