From 95e9390681c30f524c589848d8826248961d9860 Mon Sep 17 00:00:00 2001 From: Alexandre Walsh Date: Mon, 22 Jul 2019 23:01:10 -0400 Subject: [PATCH 1/2] Removed slf4j-nop dependency --- README.md | 2 +- pom.xml | 230 ++++++++++++++++++++++++++---------------------------- 2 files changed, 113 insertions(+), 119 deletions(-) diff --git a/README.md b/README.md index a8b5541..3f83217 100644 --- a/README.md +++ b/README.md @@ -149,7 +149,7 @@ Then, you simply add the dependency as follows: ca.nexapp core - 0.1.0 + 0.1.1 ``` diff --git a/pom.xml b/pom.xml index d5a854a..2889c58 100644 --- a/pom.xml +++ b/pom.xml @@ -1,136 +1,130 @@ - 4.0.0 + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + 4.0.0 - ca.nexapp - core - 0.1.0 - jar + ca.nexapp + core + 0.1.1 + jar - Nexapp Core + Nexapp Core - - UTF-8 - 1.8 - github - + + UTF-8 + 1.8 + github + - - - - org.apache.maven.plugins - maven-compiler-plugin - 3.2 - - ${java.version} - ${java.version} - - + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.2 + + ${java.version} + ${java.version} + + - - maven-deploy-plugin - 2.8.1 - - internal.repo::default::file://${project.build.directory}/mvn-repo - - + + maven-deploy-plugin + 2.8.1 + + internal.repo::default::file://${project.build.directory}/mvn-repo + + - - com.github.github - site-maven-plugin - 0.12 - - Maven artifacts for ${project.version} - true - ${project.build.directory}/mvn-repo - refs/heads/mvn-repo - - **/* - - true - NexappCore - Nexapp - - - - - - site - - deploy - - - - - + + com.github.github + site-maven-plugin + 0.12 + + Maven artifacts for ${project.version} + true + ${project.build.directory}/mvn-repo + refs/heads/mvn-repo + + **/* + + true + NexappCore + Nexapp + + + + + + site + + deploy + + + + + - - - internal.repo - Temporary Staging Repository - file://${project.build.directory}/mvn-repo - - + + + internal.repo + Temporary Staging Repository + file://${project.build.directory}/mvn-repo + + - - - nexapp-math-mvn-repo - https://raw.github.com/nexapp/nexappmath/mvn-repo/ - - + + + nexapp-math-mvn-repo + https://raw.github.com/nexapp/nexappmath/mvn-repo/ + + - - - junit - junit - 4.12 - test - + + + junit + junit + 4.12 + test + - - com.pholser - junit-quickcheck-core - 0.7 - test - + + com.pholser + junit-quickcheck-core + 0.7 + test + - - org.mockito - mockito-all - 1.10.19 - test - + + org.mockito + mockito-all + 1.10.19 + test + - - com.google.truth - truth - 0.39 - test - + + com.google.truth + truth + 0.39 + test + - - ca.nexapp - math - 0.0.7 - + + ca.nexapp + math + 0.0.7 + - - com.google.maps - google-maps-services - 0.2.7 - - - - org.slf4j - slf4j-nop - 1.7.25 - + + com.google.maps + google-maps-services + 0.2.7 + - - commons-codec - commons-codec - 1.11 - - + + commons-codec + commons-codec + 1.11 + + \ No newline at end of file From ba1302bc464f638840736a627799563197757225 Mon Sep 17 00:00:00 2001 From: Alexandre Walsh Date: Mon, 22 Jul 2019 23:05:40 -0400 Subject: [PATCH 2/2] Fixed test --- .../ca/nexapp/core/geocoding/GoogleGeocoderAPIITest.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/test/java/ca/nexapp/core/geocoding/GoogleGeocoderAPIITest.java b/src/test/java/ca/nexapp/core/geocoding/GoogleGeocoderAPIITest.java index 99005ca..1aa0d8a 100644 --- a/src/test/java/ca/nexapp/core/geocoding/GoogleGeocoderAPIITest.java +++ b/src/test/java/ca/nexapp/core/geocoding/GoogleGeocoderAPIITest.java @@ -30,7 +30,7 @@ public void canFindAPublicPlace() { @Test public void canFindAPostalCode() { - String stGeorgesPostalCode = "G5Y"; + String stGeorgesPostalCode = "G5Y 0A8"; Optional location = geocoder.lookup(stGeorgesPostalCode); @@ -39,7 +39,7 @@ public void canFindAPostalCode() { @Test public void cannotFindAnInvalidAddress() { - String unexistingAddress = "as-qw-bc-zob-120200"; + String unexistingAddress = "blpasdadqwdqkdjnak"; Optional location = geocoder.lookup(unexistingAddress); @@ -56,5 +56,4 @@ private void assertThatLocationIsNearOf(Optional location, double e assertThat(latitude).isWithin(threshold).of(expectedLatitude); assertThat(longitude).isWithin(threshold).of(expectedLongitude); } - }