@@ -0,0 +1,3251 @@
+/*%0A * ProActive Parallel Suite(TM):%0A * The Open Source library for parallel and distributed%0A * Workflows & Scheduling, Orchestration, Cloud Automation%0A * and Big Data Analysis on Enterprise Grids & Clouds.%0A *%0A * Copyright (c) 2007 - 2017 ActiveEon%0A * Contact: contact@activeeon.com%0A *%0A * This library is free software: you can redistribute it and/or%0A * modify it under the terms of the GNU Affero General Public License%0A * as published by the Free Software Foundation: version 3 of%0A * the License.%0A *%0A * This program is distributed in the hope that it will be useful,%0A * but WITHOUT ANY WARRANTY; without even the implied warranty of%0A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the%0A * GNU Affero General Public License for more details.%0A *%0A * You should have received a copy of the GNU Affero General Public License%0A * along with this program. If not, see %3Chttp://www.gnu.org/licenses/%3E.%0A *%0A * If needed, contact us to obtain a release under GPL Version 2 or 3%0A * or a different license than the AGPL.%0A */%0Apackage org.ow2.proactive.catalog.callgraph;%0A%0Aimport static com.google.common.truth.Truth.assertThat;%0Aimport static org.mockito.Matchers.any;%0Aimport static org.mockito.Matchers.anyString;%0Aimport static org.mockito.Matchers.eq;%0Aimport static org.mockito.Mockito.times;%0Aimport static org.mockito.Mockito.verify;%0A%0Aimport java.io.IOException;%0A%0Aimport org.apache.pdfbox.pdmodel.PDDocument;%0Aimport org.apache.pdfbox.pdmodel.PDPage;%0Aimport org.junit.Ignore;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.mockito.InjectMocks;%0Aimport org.mockito.Mock;%0Aimport org.mockito.runners.MockitoJUnitRunner;%0Aimport org.ow2.proactive.catalog.report.CellFactory;%0Aimport org.ow2.proactive.catalog.util.ReportGeneratorHelper;%0A%0Aimport be.quodlibet.boxable.BaseTable;%0Aimport be.quodlibet.boxable.Row;%0A%0A%0A@RunWith(MockitoJUnitRunner.class)%0Apublic class TableCallGraphsBuilderTest %7B%0A%0A    @InjectMocks%0A    private TableCallGraphsBuilder tableCallGraphsBuilder;%0A%0A    @Mock%0A    private CellFactory cellFactory;%0A%0A    @Test%0A    public void buildCallGraphsTableWithCallGraphHolder0Order() throws IOException %7B%0A%0A        CallGraphHolder callGraphHolder = new CallGraphHolder();%0A%0A        assertThat(callGraphHolder.order()).isEqualTo(0);%0A%0A        BaseTable baseTable = new ReportGeneratorHelper().initializeTable(new PDDocument(), 1f, new PDPage());%0A%0A        tableCallGraphsBuilder.buildCallGraphsTable(callGraphHolder, baseTable);%0A%0A        verify(cellFactory, times(1)).createDataHeaderCell(any(Row.class), eq(100f), anyString());%0A    %7D%0A%0A    @Test%0A    public void buildCallGraphsTableWithoutCallGraphHolder0Order() throws IOException %7B%0A%0A        final String bucketName = %22bucket%22;%0A%0A        CallGraphHolder callGraphHolder = new CallGraphHolder();%0A        callGraphHolder.addNode(bucketName, %22object%22, %22kind%22, true);%0A%0A        assertThat(callGraphHolder.order()).isNotEqualTo(0);%0A%0A        BaseTable baseTable = new ReportGeneratorHelper().initializeTable(new PDDocument(), 1f, new PDPage());%0A%0A        tableCallGraphsBuilder.buildCallGraphsTable(callGraphHolder, baseTable);%0A%0A        assertThat(baseTable.getRows()).hasSize(2);%0A%0A        verify(cellFactory, times(1)).createDataCellBucketName(any(Row.class), eq(100f), eq(bucketName));%0A%0A    %7D%0A%0A%7D%0A

add TableCallGraphsBuilder test that works only with oracle jdk