Skip to content

Commit b45a8fe

Browse files
committed
Dependency updates
1 parent eac1811 commit b45a8fe

10 files changed

Lines changed: 60 additions & 53 deletions

File tree

.circleci/config.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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" }}

.travis.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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

55
A [SEER*API](https://api.seer.cancer.gov) client for Java applications. This library supports most of the APIs and

build.gradle

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@ import org.gradle.internal.jvm.Jvm
33
plugins {
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

1211
group = 'com.imsweb'
@@ -52,18 +51,16 @@ jar {
5251
}
5352
}
5453

55-
// checkstyle plugin settings
5654
checkstyle {
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-
6562
wrapper {
66-
gradleVersion = '4.10.2'
63+
gradleVersion = '5.1.1'
6764
distributionType = Wrapper.DistributionType.ALL
6865
}
6966

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
#Mon Oct 08 13:02:30 EDT 2018
21
distributionBase=GRADLE_USER_HOME
32
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip

src/main/java/com/imsweb/seerapi/client/mph/MphService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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")

src/test/java/com/imsweb/seerapi/client/disease/DiseaseTest.java

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff 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

src/test/java/com/imsweb/seerapi/client/glossary/GlossaryTest.java

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@
1515
import com.imsweb.seerapi.client.SeerApi;
1616
import 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+
1822
public 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

src/test/java/com/imsweb/seerapi/client/rx/RxTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)