Changeset 7198


Ignore:
Timestamp:
10/11/18 12:18:08 (6 years ago)
Author:
Oliver Schonefeld
Message:
  • remove unused code
  • remove unnecessary code
Location:
FCSEndpointTester/trunk/src/main/java/eu/clarin/fcs/tester
Files:
3 edited

Legend:

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

    r7196 r7198  
    1717package eu.clarin.fcs.tester;
    1818
    19 import java.util.Collections;
    2019import java.util.List;
    2120import java.util.logging.LogRecord;
     
    2726import eu.clarin.sru.client.SRUScanResponse;
    2827import eu.clarin.sru.client.SRUSearchRetrieveResponse;
    29 import eu.clarin.sru.client.SRUTerm;
    3028
    3129
     
    106104
    107105
    108 //    protected int getDiagnosticCount(SRUExplainResponse res) {
    109 //        return doGetDiagnosticCount(res.getDiagnostics());
    110 //    }
    111 //
    112 //
    113 //    protected int getDiagnosticCount(SRUScanResponse res) {
    114 //        return doGetDiagnosticCount(res.getDiagnostics());
    115 //    }
    116 //
    117 //
    118 //    protected int getDiagnosticCount(SRUSearchRetrieveResponse res) {
    119 //        return doGetDiagnosticCount(res.getDiagnostics());
    120 //    }
    121 //
    122 //
    123 //    private int doGetDiagnosticCount(List<SRUDiagnostic> diagnostics) {
    124 //        return diagnostics != null ? diagnostics.size() : 0;
    125 //    }
    126 
    127     protected int getTermsCount(SRUScanResponse res) {
    128         return res.getTerms() != null ? res.getTerms().size() : 1;
    129     }
    130 
    131     protected List<SRUTerm> getTerms(SRUScanResponse res) {
    132         if (res.getTerms() != null) {
    133             return res.getTerms();
    134         } else {
    135            return Collections.emptyList();
    136         }
    137     }
    138 
    139 
    140106    protected boolean isDiagnostic(SRUDiagnostic d, String uri) {
    141107        return uri.equals(d.getURI());
  • FCSEndpointTester/trunk/src/main/java/eu/clarin/fcs/tester/tests/TestScan2.java

    r7196 r7198  
    6161        } else {
    6262            if (res.getDiagnosticsCount() == 0) {
    63                 if (getTermsCount(res) >= 1) {
     63                if (res.getTermsCount() >= 1) {
    6464                    return makeSuccess();
    6565                } else {
  • FCSEndpointTester/trunk/src/main/java/eu/clarin/fcs/tester/tests/TestScan3.java

    r7196 r7198  
    6464            }
    6565        } else {
    66             int count = getTermsCount(res);
     66            int count = res.getTermsCount();
    6767            if (count == 1) {
    6868                return makeSuccess();
Note: See TracChangeset for help on using the changeset viewer.