-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #182 from Adyen/develop
Release 2.0.2
- Loading branch information
Showing
12 changed files
with
213 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,9 +24,9 @@ The Library supports all APIs under the following services: | |
* Java 7 or higher | ||
|
||
## Installation | ||
|
||
You can use Maven or simply download the release. | ||
|
||
### Maven | ||
|
||
Add this dependency to your project's POM: | ||
|
@@ -35,7 +35,7 @@ Add this dependency to your project's POM: | |
<dependency> | ||
<groupId>com.adyen</groupId> | ||
<artifactId>adyen-java-api-library</artifactId> | ||
<version>2.0.1</version> | ||
<version>2.0.2</version> | ||
</dependency> | ||
``` | ||
|
||
|
@@ -62,7 +62,7 @@ client.setHttpClient(httpURLConnectionClientWithProxy); | |
## Support | ||
|
||
If you have any problems, questions or suggestions, create an issue here or send your inquiry to [email protected]. | ||
|
||
## Licence | ||
|
||
MIT license. For more information, see the LICENSE file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,31 @@ | ||
package com.adyen; | ||
|
||
import org.junit.Test; | ||
import com.adyen.model.applicationinfo.ApplicationInfo; | ||
import com.adyen.model.applicationinfo.CommonField; | ||
import org.junit.Test; | ||
|
||
import static com.adyen.Client.LIB_NAME; | ||
import static com.adyen.Client.LIB_VERSION; | ||
import static org.junit.Assert.assertTrue; | ||
import static org.junit.Assert.assertEquals; | ||
import static org.junit.Assert.assertNotNull; | ||
|
||
public class ApplicationInfoTest { | ||
|
||
@Test | ||
public void TestApplicationInfoEquals() { | ||
ApplicationInfo applicationInfo = new ApplicationInfo(); | ||
ApplicationInfo applicationInfo2 = new ApplicationInfo(); | ||
|
||
CommonField adyenLibrary = new CommonField(); | ||
adyenLibrary.setName(LIB_NAME); | ||
adyenLibrary.setVersion(LIB_VERSION); | ||
assertEquals(applicationInfo, applicationInfo2); | ||
} | ||
|
||
@Test | ||
public void TestApplicationInfoPrefilledLibraryFields() { | ||
ApplicationInfo applicationInfo = new ApplicationInfo(); | ||
applicationInfo.setAdyenLibrary(adyenLibrary); | ||
|
||
ApplicationInfo applicationInfo2 = new ApplicationInfo(); | ||
applicationInfo2.setAdyenLibrary(adyenLibrary); | ||
|
||
assertTrue(applicationInfo.equals(applicationInfo2)); | ||
assertNotNull(applicationInfo.getAdyenLibrary()); | ||
assertNotNull(applicationInfo.getAdyenLibrary().getName()); | ||
assertEquals(LIB_NAME, applicationInfo.getAdyenLibrary().getName()); | ||
assertNotNull(applicationInfo.getAdyenLibrary().getVersion()); | ||
assertEquals(LIB_VERSION, applicationInfo.getAdyenLibrary().getVersion()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.