Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: replace update-task by update-taskaction
- Loading branch information
Showing
43 changed files
with
1,072 additions
and
833 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
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
plugins { | ||
kotlin("jvm") | ||
kotlin("plugin.serialization") | ||
} | ||
|
||
group = "me.2bab" | ||
|
||
java { | ||
withSourcesJar() | ||
sourceCompatibility = JavaVersion.VERSION_1_8 | ||
targetCompatibility = JavaVersion.VERSION_1_8 | ||
} | ||
|
||
dependencies { | ||
implementation(deps.kotlin.std) | ||
} | ||
|
||
testing { | ||
suites { | ||
val functionalTest by registering(JvmTestSuite::class) { | ||
useJUnitJupiter() | ||
testType.set(TestSuiteType.FUNCTIONAL_TEST) | ||
dependencies { | ||
implementation(deps.hamcrest) | ||
implementation("dev.gradleplugins:gradle-test-kit:7.4.1") | ||
implementation(deps.kotlin.coroutine) | ||
implementation(deps.kotlin.serialization) | ||
implementation(deps.fastJson) | ||
} | ||
} | ||
} | ||
} | ||
|
||
tasks.named("check") { | ||
dependsOn(testing.suites.named("functionalTest")) | ||
} | ||
|
||
tasks.withType<Test> { | ||
testLogging { | ||
this.showStandardStreams = true | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...onal-test/src/functionalTest/kotlin/me/xx2bab/koncat/CaseInsensitiveSubstringMatcher.java
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package me.xx2bab.koncat; | ||
|
||
import org.hamcrest.Description; | ||
import org.hamcrest.Matcher; | ||
import org.hamcrest.TypeSafeMatcher; | ||
|
||
public class CaseInsensitiveSubstringMatcher extends TypeSafeMatcher<String> { | ||
|
||
private final String subString; | ||
|
||
private CaseInsensitiveSubstringMatcher(final String subString) { | ||
this.subString = subString; | ||
} | ||
|
||
@Override | ||
protected boolean matchesSafely(final String actualString) { | ||
return actualString.toLowerCase().contains(this.subString.toLowerCase()); | ||
} | ||
|
||
@Override | ||
public void describeTo(final Description description) { | ||
description.appendText("containing substring \"" + this.subString + "\""); | ||
} | ||
|
||
public static Matcher<String> containsIgnoringCase(final String subString) { | ||
return new CaseInsensitiveSubstringMatcher(subString); | ||
} | ||
} |
Oops, something went wrong.