Last changes
This commit is contained in:
parent
8e49a66b14
commit
ba62652a05
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
-----------------------------------
|
-----------------------------------
|
||||||
|
|
||||||
A Java library to query with the Danish VAT API service <https://www.cvrapi.dk>. Work in progress.
|
A Java library to query <https://www.cvrapi.dk> (a Danish VAT API service). Work in progress.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
@ -20,7 +20,6 @@ The *Company* represents most of the same properties as seen in the example JSON
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile 'biz.nellemann.libs:libcvrapi:1.+'
|
compile 'biz.nellemann.libs:libcvrapi:1.+'
|
||||||
runtime "org.slf4j:slf4j-simple:1.7.28"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
## Development
|
## Development
|
||||||
|
|
|
@ -17,7 +17,6 @@ apply plugin: 'maven-publish'
|
||||||
apply plugin: 'com.jfrog.bintray'
|
apply plugin: 'com.jfrog.bintray'
|
||||||
//apply from: "${project.projectDir}/gradle/clover.gradle"
|
//apply from: "${project.projectDir}/gradle/clover.gradle"
|
||||||
|
|
||||||
version = "${version}-SNAPSHOT"
|
|
||||||
sourceCompatibility = 1.8
|
sourceCompatibility = 1.8
|
||||||
targetCompatibility = 1.8
|
targetCompatibility = 1.8
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
id = libcvrapi
|
id = libcvrapi
|
||||||
group = biz.nellemann.libs
|
group = biz.nellemann.libs
|
||||||
version = 1.0.2
|
version = 1.0.3
|
||||||
licenses = ['APACHE-2.0'] // or something else
|
licenses = ['APACHE-2.0'] // or something else
|
||||||
groovyVersion = 2.5.8
|
groovyVersion = 2.5.8
|
||||||
slf4jVersion = 1.7.28
|
slf4jVersion = 1.7.28
|
||||||
|
|
|
@ -42,7 +42,7 @@ class CvrApiSpec extends Specification {
|
||||||
thrown Exception
|
thrown Exception
|
||||||
}
|
}
|
||||||
|
|
||||||
void "test succesful parsing company with CVR 25063864"() {
|
void "test successful parsing company with CVR 25063864"() {
|
||||||
|
|
||||||
setup:
|
setup:
|
||||||
def testFile = new File(getClass().getResource('/25063864.json').toURI())
|
def testFile = new File(getClass().getResource('/25063864.json').toURI())
|
||||||
|
@ -60,7 +60,7 @@ class CvrApiSpec extends Specification {
|
||||||
company.info.employment.amountEmployeesHigh == 99
|
company.info.employment.amountEmployeesHigh == 99
|
||||||
}
|
}
|
||||||
|
|
||||||
void "test succesful parsing of company with CVR 15027800"() {
|
void "test successful parsing of company with CVR 15027800"() {
|
||||||
|
|
||||||
setup:
|
setup:
|
||||||
def testFile = new File(getClass().getResource('/15027800.json').toURI())
|
def testFile = new File(getClass().getResource('/15027800.json').toURI())
|
||||||
|
@ -78,7 +78,7 @@ class CvrApiSpec extends Specification {
|
||||||
company.info.employment.amountEmployeesHigh == 499
|
company.info.employment.amountEmployeesHigh == 499
|
||||||
}
|
}
|
||||||
|
|
||||||
void "test succesful HTTP GET company with CVR 15027800 as JSON"() {
|
void "test successful HTTP GET company with CVR 15027800 as JSON"() {
|
||||||
|
|
||||||
setup:
|
setup:
|
||||||
mockServer.enqueue(new MockResponse().setBody("{}"));
|
mockServer.enqueue(new MockResponse().setBody("{}"));
|
||||||
|
|
Loading…
Reference in a new issue