assertEquals( positions.size(), columnCount );
}
@Test
public void testGetZeroColumnCount() {
Result nativeResultSet = mock( Result.class );
when( nativeResultSet.getAxes() ).thenReturn( new Axis[0] );
MDXMetaData metadata = new MDXMetaData( nativeResultSet );
int columnCount = metadata.getColumnCount();
assertEquals( 0, columnCount );
when( nativeResultSet.getAxes() ).thenReturn( new Axis[] { null } );
metadata = new MDXMetaData( nativeResultSet );
columnCount = metadata.getColumnCount();
assertEquals( 0, columnCount );
Axis axColumn = mockAxis( null );
when( nativeResultSet.getAxes() ).thenReturn( new Axis[] { axColumn } );
metadata = new MDXMetaData( nativeResultSet );
columnCount = metadata.getColumnCount();
assertEquals( 0, columnCount );