Skip to content

Commit

Permalink
☑️ add read tests
Browse files Browse the repository at this point in the history
  • Loading branch information
theapache64 committed Oct 16, 2021
1 parent 2206c09 commit d5347c3
Show file tree
Hide file tree
Showing 8 changed files with 274 additions and 206 deletions.
4 changes: 4 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ plugins {
allprojects {
repositories {
mavenCentral()
maven {url "https://jitpack.io"}
}
}

Expand Down Expand Up @@ -39,6 +40,9 @@ dependencies {

// OkHttp Logging Interceptor : Square’s meticulous HTTP client for Java and Kotlin.
implementation 'com.squareup.okhttp3:logging-interceptor:4.9.2'

//Expekt
testImplementation "com.github.theapache64:expekt:$expekt_version"
}

compileKotlin {
Expand Down
326 changes: 170 additions & 156 deletions gpm.json
Original file line number Diff line number Diff line change
@@ -1,158 +1,172 @@
{
"added": [
{
"id": 1,
"type": "implementation",
"installed_name": "retrofit",
"gpm_dep": {
"artifact_id": "retrofit",
"default_type": "implementation",
"docs": "https://mvnrepository.com/artifact/com.squareup.retrofit2/retrofit",
"get_from": "Central",
"group_id": "com.squareup.retrofit2",
"name": "Retrofit",
"description": "A type-safe HTTP client for Android and Java."
}
},
{
"id": 2,
"type": "implementation",
"installed_name": "moshi-convert",
"gpm_dep": {
"artifact_id": "converter-moshi",
"default_type": "implementation",
"docs": "https://mvnrepository.com/artifact/com.squareup.retrofit2/converter-moshi",
"get_from": "Central",
"group_id": "com.squareup.retrofit2",
"name": "Converter: Moshi",
"description": "A Retrofit Converter which uses Moshi for serialization."
}
},
{
"id": 3,
"type": "implementation",
"installed_name": "coroutines",
"gpm_dep": {
"artifact_id": "kotlinx-coroutines-core",
"default_type": "implementation",
"docs": "https://mvnrepository.com/artifact/org.jetbrains.kotlinx/kotlinx-coroutines-core",
"get_from": "Central",
"group_id": "org.jetbrains.kotlinx",
"name": "Kotlinx Coroutines Core",
"description": "Coroutines support libraries for Kotlin"
}
},
{
"id": 4,
"type": "kapt",
"installed_name": "moshi-codegen",
"gpm_dep": {
"artifact_id": "moshi-kotlin-codegen",
"default_type": "implementation",
"docs": "https://mvnrepository.com/artifact/com.squareup.moshi/moshi-kotlin-codegen",
"get_from": "Central",
"group_id": "com.squareup.moshi",
"name": "Moshi Kotlin Codegen",
"description": "Moshi Kotlin Codegen"
}
},
{
"id": 5,
"type": "implementation",
"installed_name": "moshi",
"gpm_dep": {
"artifact_id": "moshi",
"default_type": "implementation",
"docs": "https://mvnrepository.com/artifact/com.squareup.moshi/moshi",
"get_from": "Central",
"group_id": "com.squareup.moshi",
"name": "Moshi",
"description": "Moshi"
}
},
{
"id": 6,
"type": "implementation",
"installed_name": "fastcsv",
"gpm_dep": {
"artifact_id": "fastcsv",
"default_type": "implementation",
"docs": "https://mvnrepository.com/artifact/de.siegmar/fastcsv",
"get_from": "Central",
"group_id": "de.siegmar",
"name": "FastCSV",
"description": "Ultra fast and simple RFC 4180 compliant CSV library."
}
},
{
"id": 7,
"type": "implementation",
"installed_name": "json",
"gpm_dep": {
"artifact_id": "json",
"default_type": "implementation",
"docs": "https://mvnrepository.com/artifact/org.json/json",
"get_from": "Central",
"group_id": "org.json",
"name": "JSON In Java",
"description": "JSON is a light-weight, language independent, data interchange format.See http://www.JSON.org/The files in this package implement JSON encoders/decoders in Java.It also includes the capability to convert between JSON and XML, HTTPheaders, Cookies, and CDL.This is a reference implementation. There is a large number of JSON packagesin Java. Perhaps someday the Java community will standardize on one. Untilthen, choose carefully.The license includes this restriction: \"The software ..."
}
},
{
"id": 8,
"type": "implementation",
"installed_name": "expekt",
"gpm_dep": {
"artifact_id": "expekt",
"default_type": "implementation",
"docs": "https://mvnrepository.com/artifact/com.theapache64/expekt",
"get_from": "JCenter",
"group_id": "com.theapache64",
"name": "Expekt",
"description": "An assertion library for Kotlin"
}
},
{
"id": 9,
"type": "implementation",
"installed_name": "materialratingbar",
"gpm_dep": {
"artifact_id": "library",
"default_type": "implementation",
"docs": "https://mvnrepository.com/artifact/me.zhanghai.android.materialratingbar/library",
"get_from": "Central",
"group_id": "me.zhanghai.android.materialratingbar",
"name": "MaterialRatingBar Library",
"description": "A Material Design RatingBar with consistent appearance"
}
},
{
"id": 10,
"type": "implementation",
"installed_name": "scalars-converter",
"gpm_dep": {
"artifact_id": "converter-scalars",
"default_type": "implementation",
"docs": "https://mvnrepository.com/artifact/com.squareup.retrofit2/converter-scalars",
"get_from": "Central",
"group_id": "com.squareup.retrofit2",
"name": "Converter: Scalars",
"description": "A Retrofit Converter for Java's scalar value types."
}
},
{
"id": 11,
"type": "implementation",
"installed_name": "okhttp-interceptor",
"gpm_dep": {
"artifact_id": "logging-interceptor",
"default_type": "implementation",
"docs": "https://mvnrepository.com/artifact/com.squareup.okhttp3/logging-interceptor",
"get_from": "Central",
"group_id": "com.squareup.okhttp3",
"name": "OkHttp Logging Interceptor",
"description": "Square’s meticulous HTTP client for Java and Kotlin."
}
}
]
"added": [
{
"id": 1,
"type": "implementation",
"installed_name": "retrofit",
"gpm_dep": {
"artifact_id": "retrofit",
"default_type": "implementation",
"docs": "https://mvnrepository.com/artifact/com.squareup.retrofit2/retrofit",
"get_from": "Central",
"group_id": "com.squareup.retrofit2",
"name": "Retrofit",
"description": "A type-safe HTTP client for Android and Java."
}
},
{
"id": 2,
"type": "implementation",
"installed_name": "moshi-convert",
"gpm_dep": {
"artifact_id": "converter-moshi",
"default_type": "implementation",
"docs": "https://mvnrepository.com/artifact/com.squareup.retrofit2/converter-moshi",
"get_from": "Central",
"group_id": "com.squareup.retrofit2",
"name": "Converter: Moshi",
"description": "A Retrofit Converter which uses Moshi for serialization."
}
},
{
"id": 3,
"type": "implementation",
"installed_name": "coroutines",
"gpm_dep": {
"artifact_id": "kotlinx-coroutines-core",
"default_type": "implementation",
"docs": "https://mvnrepository.com/artifact/org.jetbrains.kotlinx/kotlinx-coroutines-core",
"get_from": "Central",
"group_id": "org.jetbrains.kotlinx",
"name": "Kotlinx Coroutines Core",
"description": "Coroutines support libraries for Kotlin"
}
},
{
"id": 4,
"type": "kapt",
"installed_name": "moshi-codegen",
"gpm_dep": {
"artifact_id": "moshi-kotlin-codegen",
"default_type": "implementation",
"docs": "https://mvnrepository.com/artifact/com.squareup.moshi/moshi-kotlin-codegen",
"get_from": "Central",
"group_id": "com.squareup.moshi",
"name": "Moshi Kotlin Codegen",
"description": "Moshi Kotlin Codegen"
}
},
{
"id": 5,
"type": "implementation",
"installed_name": "moshi",
"gpm_dep": {
"artifact_id": "moshi",
"default_type": "implementation",
"docs": "https://mvnrepository.com/artifact/com.squareup.moshi/moshi",
"get_from": "Central",
"group_id": "com.squareup.moshi",
"name": "Moshi",
"description": "Moshi"
}
},
{
"id": 6,
"type": "implementation",
"installed_name": "fastcsv",
"gpm_dep": {
"artifact_id": "fastcsv",
"default_type": "implementation",
"docs": "https://mvnrepository.com/artifact/de.siegmar/fastcsv",
"get_from": "Central",
"group_id": "de.siegmar",
"name": "FastCSV",
"description": "Ultra fast and simple RFC 4180 compliant CSV library."
}
},
{
"id": 7,
"type": "implementation",
"installed_name": "json",
"gpm_dep": {
"artifact_id": "json",
"default_type": "implementation",
"docs": "https://mvnrepository.com/artifact/org.json/json",
"get_from": "Central",
"group_id": "org.json",
"name": "JSON In Java",
"description": "JSON is a light-weight, language independent, data interchange format.See http://www.JSON.org/The files in this package implement JSON encoders/decoders in Java.It also includes the capability to convert between JSON and XML, HTTPheaders, Cookies, and CDL.This is a reference implementation. There is a large number of JSON packagesin Java. Perhaps someday the Java community will standardize on one. Untilthen, choose carefully.The license includes this restriction: \"The software ..."
}
},
{
"id": 8,
"type": "implementation",
"installed_name": "expekt",
"gpm_dep": {
"artifact_id": "expekt",
"default_type": "implementation",
"docs": "https://mvnrepository.com/artifact/com.theapache64/expekt",
"get_from": "JCenter",
"group_id": "com.theapache64",
"name": "Expekt",
"description": "An assertion library for Kotlin"
}
},
{
"id": 9,
"type": "implementation",
"installed_name": "materialratingbar",
"gpm_dep": {
"artifact_id": "library",
"default_type": "implementation",
"docs": "https://mvnrepository.com/artifact/me.zhanghai.android.materialratingbar/library",
"get_from": "Central",
"group_id": "me.zhanghai.android.materialratingbar",
"name": "MaterialRatingBar Library",
"description": "A Material Design RatingBar with consistent appearance"
}
},
{
"id": 10,
"type": "implementation",
"installed_name": "scalars-converter",
"gpm_dep": {
"artifact_id": "converter-scalars",
"default_type": "implementation",
"docs": "https://mvnrepository.com/artifact/com.squareup.retrofit2/converter-scalars",
"get_from": "Central",
"group_id": "com.squareup.retrofit2",
"name": "Converter: Scalars",
"description": "A Retrofit Converter for Java's scalar value types."
}
},
{
"id": 11,
"type": "implementation",
"installed_name": "okhttp-interceptor",
"gpm_dep": {
"artifact_id": "logging-interceptor",
"default_type": "implementation",
"docs": "https://mvnrepository.com/artifact/com.squareup.okhttp3/logging-interceptor",
"get_from": "Central",
"group_id": "com.squareup.okhttp3",
"name": "OkHttp Logging Interceptor",
"description": "Square’s meticulous HTTP client for Java and Kotlin."
}
},
{
"id": 12,
"type": "testImplementation",
"installed_name": "coroutines-test",
"gpm_dep": {
"artifact_id": "kotlinx-coroutines-test",
"default_type": "implementation",
"docs": "https://mvnrepository.com/artifact/org.jetbrains.kotlinx/kotlinx-coroutines-test",
"get_from": "Central",
"group_id": "org.jetbrains.kotlinx",
"name": "Kotlinx Coroutines Test",
"description": "Coroutines support libraries for Kotlin"
}
}
]
}
3 changes: 2 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ retrosheet_version=2.0.0-beta01
retrofit_version=2.9.0
moshi_version=1.12.0
coroutines_version=1.5.2-native-mt
junit_version=4.13.2
junit_version=4.13.2
expekt_version=1.0.0
2 changes: 1 addition & 1 deletion retrosheet/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ dependencies {
kapt "com.squareup.moshi:moshi-kotlin-codegen:$moshi_version"

// Expekt : An assertion library for Kotlin
testImplementation 'com.github.theapache64:expekt:1.0.0'
testImplementation "com.github.theapache64:expekt:$expekt_version"

// Mockito Core : Mockito mock objects library core API and implementation
testImplementation 'org.mockito:mockito-inline:4.0.0'
Expand Down
Loading

0 comments on commit d5347c3

Please sign in to comment.