Changeset 7198
- Timestamp:
- 10/11/18 12:18:08 (6 years ago)
- 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 17 17 package eu.clarin.fcs.tester; 18 18 19 import java.util.Collections;20 19 import java.util.List; 21 20 import java.util.logging.LogRecord; … … 27 26 import eu.clarin.sru.client.SRUScanResponse; 28 27 import eu.clarin.sru.client.SRUSearchRetrieveResponse; 29 import eu.clarin.sru.client.SRUTerm;30 28 31 29 … … 106 104 107 105 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 140 106 protected boolean isDiagnostic(SRUDiagnostic d, String uri) { 141 107 return uri.equals(d.getURI()); -
FCSEndpointTester/trunk/src/main/java/eu/clarin/fcs/tester/tests/TestScan2.java
r7196 r7198 61 61 } else { 62 62 if (res.getDiagnosticsCount() == 0) { 63 if ( getTermsCount(res) >= 1) {63 if (res.getTermsCount() >= 1) { 64 64 return makeSuccess(); 65 65 } else { -
FCSEndpointTester/trunk/src/main/java/eu/clarin/fcs/tester/tests/TestScan3.java
r7196 r7198 64 64 } 65 65 } else { 66 int count = getTermsCount(res);66 int count = res.getTermsCount(); 67 67 if (count == 1) { 68 68 return makeSuccess();
Note: See TracChangeset
for help on using the changeset viewer.