@@ -0,0 +1,2606 @@
+/*%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.report;%0A%0Aimport static org.mockito.Matchers.any;%0Aimport static org.mockito.Matchers.anyString;%0Aimport static org.mockito.Mockito.times;%0Aimport static org.mockito.Mockito.verify;%0A%0Aimport java.io.IOException;%0Aimport java.util.Collections;%0Aimport java.util.Optional;%0A%0Aimport org.apache.pdfbox.pdmodel.PDDocument;%0Aimport org.apache.pdfbox.pdmodel.PDPage;%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.util.ReportGeneratorHelper;%0A%0Aimport be.quodlibet.boxable.BaseTable;%0Aimport be.quodlibet.boxable.Row;%0A%0A%0A/**%0A * Created by mael on 30/10/19.%0A */%0A@RunWith(value = MockitoJUnitRunner.class)%0Apublic class HeadersBuilderTest %7B%0A%0A    @InjectMocks%0A    private HeadersBuilder headersBuilder;%0A%0A    @Mock%0A    private CellFactory cellFactory;%0A%0A    @Test%0A    public void createInfoHeaderTest() throws IOException %7B%0A        BaseTable table = new ReportGeneratorHelper().initializeTable(new PDDocument(), 1f, new PDPage());%0A%0A        headersBuilder.createInfoHeader(table, Collections.EMPTY_SET, Optional.empty(), Optional.empty());%0A        headersBuilder.createInfoHeader(table,%0A                                        Collections.EMPTY_SET,%0A                                        Collections.EMPTY_SET,%0A                                        Optional.empty(),%0A                                        Optional.empty());%0A%0A        verify(cellFactory, times(2)).addSecondaryHeaderCell(any(Row.class), anyString());%0A    %7D%0A%7D%0A

add HeadersBuilderTest