File tree Expand file tree Collapse file tree
main/java/com/imsweb/seerapi/client/mph
test/java/com/imsweb/seerapi/client Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ version : 2.0
2+ jobs :
3+ build :
4+ docker :
5+ - image : circleci/openjdk:8-jdk
6+ environment :
7+ JVM_OPTS : -Xmx512m
8+ steps :
9+ - checkout
10+ - restore_cache :
11+ keys :
12+ - gradle-{{ checksum "build.gradle" }}
13+ - run :
14+ name : Run tests
15+ command : gradle assemble test
16+ - run :
17+ name : Save test results
18+ command : |
19+ mkdir -p ~/junit/
20+ find . -type f -regex ".*/build/test-results/.*xml" -exec cp {} ~/junit/ \;
21+ when : always
22+ - store_test_results :
23+ path : ~/junit
24+ - store_artifacts :
25+ path : ~/junit
26+ - save_cache :
27+ paths :
28+ - ~/.gradle
29+ key : gradle-{{ checksum "build.gradle" }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11# seerapi-client-java
2- [ ![ Build Status ] ( https://travis-ci.org/ imsweb/seerapi-client-java.svg?branch=master )] ( https://travis-ci.org /imsweb/seerapi-client-java )
2+ [ ![ CircleCI ] ( https://circleci.com/gh/ imsweb/seerapi-client-java.svg?style=svg )] ( https://circleci.com/gh /imsweb/seerapi-client-java )
33[ ![ Maven Central] ( https://maven-badges.herokuapp.com/maven-central/com.imsweb/seerapi-client-java/badge.svg )] ( https://maven-badges.herokuapp.com/maven-central/com.imsweb/seerapi-client-java )
44
55A [ SEER* API] ( https://api.seer.cancer.gov ) client for Java applications. This library supports most of the APIs and
Original file line number Diff line number Diff line change @@ -3,10 +3,9 @@ import org.gradle.internal.jvm.Jvm
33plugins {
44 id ' java'
55 id ' checkstyle'
6- id ' findbugs '
6+ id " com.github.spotbugs " version " 1.6.5 "
77 id ' com.bmuschko.nexus' version ' 2.3.1'
8- id " io.codearte.nexus-staging" version " 0.11.0"
9- id ' net.ossindex.audit' version ' 0.1.1'
8+ id " io.codearte.nexus-staging" version " 0.20.0"
109}
1110
1211group = ' com.imsweb'
@@ -52,18 +51,16 @@ jar {
5251 }
5352}
5453
55- // checkstyle plugin settings
5654checkstyle {
5755 configFile = file(" config/checkstyle/checkstyle.xml" )
5856}
5957
60- // findbugs plugin settings
61- findbugs {
62- excludeFilter = file(" config/findbugs/findbugs -exclude.xml" )
58+ spotbugs {
59+ toolVersion = ' 3.1.8 '
60+ excludeFilter = file(' config/spotbugs/spotbugs -exclude.xml' )
6361}
64-
6562wrapper {
66- gradleVersion = ' 4.10.2 '
63+ gradleVersion = ' 5.1.1 '
6764 distributionType = Wrapper.DistributionType . ALL
6865}
6966
File renamed without changes.
Original file line number Diff line number Diff line change 1- # Mon Oct 08 13:02:30 EDT 2018
21distributionBase =GRADLE_USER_HOME
32distributionPath =wrapper/dists
3+ distributionUrl =https\://services.gradle.org/distributions/gradle-5.1.1-all.zip
44zipStoreBase =GRADLE_USER_HOME
55zipStorePath =wrapper/dists
6- distributionUrl =https\://services.gradle.org/distributions/gradle-4.10.2-all.zip
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ public interface MphService {
2323 /**
2424 * Uses multiple primary rules to compare two diseases
2525 * @param pair a pair of diseases
26- * @param matchMode
26+ * @param matchMode match mode
2727 * @return a result indicating whether the two diseases are the same primary
2828 */
2929 @ POST ("mph" )
Original file line number Diff line number Diff line change @@ -36,17 +36,12 @@ public void testDiseaseTypeCategory() {
3636 public void testDiseaseVersions () throws IOException {
3737 List <DiseaseVersion > versions = _DISEASE .versions ().execute ().body ();
3838
39- assertTrue (versions .size () > 0 );
40- for (DiseaseVersion version : versions ) {
41- assertTrue (version .getName ().length () > 0 );
42- assertTrue (version .getType ().length () > 0 );
43- assertNotNull (version .getLastModified ());
44- if (version .getName ().equals ("latest" )) {
45- assertNotNull (version .getType ());
46- assertNotNull (version .getFirstPublished ());
47- assertNotNull (version .getCount ());
48- }
49- }
39+ assertEquals (1 , versions .size ());
40+ DiseaseVersion version = versions .get (0 );
41+ assertEquals ("latest" , version .getName ());
42+ assertNull (version .getType ()); // type not returned when no permisisons
43+ assertNotNull (version .getFirstPublished ());
44+ assertNotNull (version .getCount ());
5045 }
5146
5247 @ Test
Original file line number Diff line number Diff line change 1515import com .imsweb .seerapi .client .SeerApi ;
1616import com .imsweb .seerapi .client .publishable .PublishableSearch ;
1717
18+ import static org .junit .Assert .assertEquals ;
19+ import static org .junit .Assert .assertNotNull ;
20+ import static org .junit .Assert .assertNull ;
21+
1822public class GlossaryTest {
1923
2024 private static GlossaryService _GLOSSARY ;
@@ -33,12 +37,12 @@ public void testGlossaryCategory() {
3337 public void testGlossaryVersions () throws IOException {
3438 List <GlossaryVersion > versions = _GLOSSARY .versions ().execute ().body ();
3539
36- Assert . assertTrue ( versions .size () > 0 );
37- for ( GlossaryVersion version : versions ) {
38- Assert . assertTrue ( version .getName (). length () > 0 );
39- Assert . assertTrue (version .getType (). length () > 0 );
40- Assert . assertNotNull (version .getLastModified ());
41- }
40+ assertEquals ( 1 , versions .size ());
41+ GlossaryVersion version = versions . get ( 0 );
42+ assertEquals ( "latest" , version .getName ());
43+ assertNull (version .getType ()); // type not returned when no permisisons
44+ assertNotNull (version .getFirstPublished ());
45+ assertNotNull ( version . getCount ());
4246 }
4347
4448 @ Test
Original file line number Diff line number Diff line change @@ -33,12 +33,12 @@ public static void setup() {
3333 public void testRxVersions () throws IOException {
3434 List <RxVersion > versions = _RX .versions ().execute ().body ();
3535
36- assertTrue ( versions .size () > 0 );
37- for ( RxVersion version : versions ) {
38- assertTrue ( version .getName (). length () > 0 );
39- assertTrue (version .getType (). length () > 0 );
40- assertNotNull (version .getLastModified ());
41- }
36+ assertEquals ( 1 , versions .size ());
37+ RxVersion version = versions . get ( 0 );
38+ assertEquals ( "latest" , version .getName ());
39+ assertNull (version .getType ()); // type not returned when no permisisons
40+ assertNotNull (version .getFirstPublished ());
41+ assertNotNull ( version . getCount ());
4242 }
4343
4444 @ Test
You can’t perform that action at this time.
0 commit comments