Ignore:
Timestamp:
10/11/18 12:13:58 (6 years ago)
Author:
Oliver Schonefeld
Message:
  • rewrite to use SRUClient instead of SRUSimpleClient
  • add Tests for Endpoint Description (FCS 1.0 and FCS 2.0)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • FCSEndpointTester/trunk/src/main/java/eu/clarin/fcs/tester/ui/ResultsView.java

    r7116 r7196  
    5252    private static final Resource ICON_ERROR   =
    5353            new ThemeResource("icons/result_error.png");
     54    private static final Resource ICON_SKIPPED =
     55            new ThemeResource("icons/weather_clouds.png");
    5456    private static final DateTimeFormatter dateFmt =
    5557            DateTimeFormat.forPattern("yyyy-MM-dd'T'HH:mm:ss");
     
    6466        int count_warning = 0;
    6567        int count_error   = 0;
     68        int count_skipped = 0;
    6669        for (FCSTestResult result : results) {
    6770            switch (result.getCode()) {
     
    7477            case ERROR:
    7578                count_error++;
     79                break;
     80            case SKIPPED:
     81                count_skipped++;
    7682                break;
    7783            } // switch
     
    115121
    116122        final Label resultsOverview = new Label(
    117                 String.format("Success: %d,  Warnings: %d, Errors: %d",
    118                         count_success, count_warning, count_error));
     123                String.format("Success: %d,  Warnings: %d, Errors: %d, Skipped: %d",
     124                        count_success, count_warning, count_error, count_skipped));
    119125        addComponent(resultsOverview);
    120126
     
    221227            case ERROR:
    222228                return ICON_ERROR;
     229            case SKIPPED:
     230                return  ICON_SKIPPED;
    223231            }
    224232        }
Note: See TracChangeset for help on using the changeset viewer.