Skip to content

Commit

Permalink
mojohaus#729: Ignoring the flipper. This test should be used for prof…
Browse files Browse the repository at this point in the history
…iling and not as part of integration testing
  • Loading branch information
jarmoniuk committed Oct 4, 2022
1 parent 267f3cc commit fd19f77
Showing 1 changed file with 22 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ protected void renderManagementSummaryTable()
@Override
protected void renderSummaryTable()
{
renderSummaryTable( "report.overview.property", model.getAllUpdates(),
renderTable( "report.overview.property", model.getAllUpdates(),
"report.overview.noProperty" );
}

Expand All @@ -80,7 +80,7 @@ protected void renderDetails()
model.getAllUpdates().forEach( this::renderPropertyDetail );
}

private void renderSummaryTable( String titleKey, Map<Property, PropertyVersions> contents, String emptyKey )
protected void renderTable( String titleKey, Map<Property, PropertyVersions> contents, String emptyKey )
{
sink.section2();
sink.sectionTitle2();
Expand All @@ -95,15 +95,28 @@ private void renderSummaryTable( String titleKey, Map<Property, PropertyVersions
}
else
{
sink.table();
renderPropertySummaryTableHeader();
contents.forEach( this::renderPropertySummaryTableRow );
renderPropertySummaryTableHeader();
sink.table_();
renderSummaryTable( contents );
}
sink.section2_();
}

protected void renderSummaryTable( Map<Property, PropertyVersions> contents )
{
sink.table();

sink.tableRow();
renderSummaryTableHeader( false, false );
sink.tableRow_();

contents.forEach( this::renderPropertySummaryTableRow );

sink.tableRow();
renderSummaryTableHeader( false, false );
sink.tableRow_();

sink.table_();
}

private void renderPropertySummaryTableRow( Property property, PropertyVersions versions )
{
sink.tableRow();
Expand Down Expand Up @@ -370,13 +383,12 @@ protected Set<String> getVersionsInRange( Property property, PropertyVersions ve
return rangeVersions;
}

private void renderPropertySummaryTableHeader()
@Override
protected void renderSummaryTableHeader( boolean hasScope, boolean hasType )
{
sink.tableRow();
renderTableHeaderCells( "report.status", "report.property", "report.currentVersion",
"report.latestSubIncremental", "report.latestIncremental", "report.latestMinor",
"report.latestMajor" );
sink.tableRow_();
}

@Override
Expand Down

0 comments on commit fd19f77

Please sign in to comment.