-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
190 additions
and
43 deletions.
There are no files selected for viewing
43 changes: 0 additions & 43 deletions
43
src/main/java/dev/iakunin/codexiabot/github/controller/GithubController.java
This file was deleted.
Oops, something went wrong.
33 changes: 33 additions & 0 deletions
33
src/test/java/dev/iakunin/codexiabot/codexia/cron/CodexiaParserIntegrationTest.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,33 @@ | ||
package dev.iakunin.codexiabot.codexia.cron; | ||
|
||
import dev.iakunin.codexiabot.AbstractIntegrationTest; | ||
import dev.iakunin.codexiabot.util.WireMockServer; | ||
import org.junit.jupiter.api.AfterEach; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.boot.test.util.TestPropertyValues; | ||
import org.springframework.context.ApplicationContextInitializer; | ||
import org.springframework.context.ConfigurableApplicationContext; | ||
import org.springframework.test.context.ContextConfiguration; | ||
|
||
@ContextConfiguration(initializers = CodexiaParserIntegrationTest.Initializer.class) | ||
public class CodexiaParserIntegrationTest extends AbstractIntegrationTest { | ||
|
||
@Autowired | ||
private CodexiaParser codexiaParser; | ||
|
||
// @todo #10 Implement CodexiaParserIntegrationTest | ||
|
||
@AfterEach | ||
void after() { | ||
WireMockServer.getInstance().resetAll(); | ||
} | ||
|
||
static class Initializer implements ApplicationContextInitializer<ConfigurableApplicationContext> { | ||
@Override | ||
public void initialize(ConfigurableApplicationContext applicationContext) { | ||
TestPropertyValues.of( | ||
"app.codexia.base-url=" + WireMockServer.getInstance().baseUrl() | ||
).applyTo(applicationContext.getEnvironment()); | ||
} | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
src/test/java/dev/iakunin/codexiabot/codexia/cron/MissingFillerIntegrationTest.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,33 @@ | ||
package dev.iakunin.codexiabot.codexia.cron; | ||
|
||
import dev.iakunin.codexiabot.AbstractIntegrationTest; | ||
import dev.iakunin.codexiabot.util.WireMockServer; | ||
import org.junit.jupiter.api.AfterEach; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.boot.test.util.TestPropertyValues; | ||
import org.springframework.context.ApplicationContextInitializer; | ||
import org.springframework.context.ConfigurableApplicationContext; | ||
import org.springframework.test.context.ContextConfiguration; | ||
|
||
@ContextConfiguration(initializers = MissingFillerIntegrationTest.Initializer.class) | ||
public class MissingFillerIntegrationTest extends AbstractIntegrationTest { | ||
|
||
@Autowired | ||
private MissingFiller missingFiller; | ||
|
||
// @todo #10 Implement MissingFillerIntegrationTest | ||
|
||
@AfterEach | ||
void after() { | ||
WireMockServer.getInstance().resetAll(); | ||
} | ||
|
||
static class Initializer implements ApplicationContextInitializer<ConfigurableApplicationContext> { | ||
@Override | ||
public void initialize(ConfigurableApplicationContext applicationContext) { | ||
TestPropertyValues.of( | ||
"app.codexia.base-url=" + WireMockServer.getInstance().baseUrl() | ||
).applyTo(applicationContext.getEnvironment()); | ||
} | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
src/test/java/dev/iakunin/codexiabot/codexia/cron/ResendErroneousReviewsIntegrationTest.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,33 @@ | ||
package dev.iakunin.codexiabot.codexia.cron; | ||
|
||
import dev.iakunin.codexiabot.AbstractIntegrationTest; | ||
import dev.iakunin.codexiabot.util.WireMockServer; | ||
import org.junit.jupiter.api.AfterEach; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.boot.test.util.TestPropertyValues; | ||
import org.springframework.context.ApplicationContextInitializer; | ||
import org.springframework.context.ConfigurableApplicationContext; | ||
import org.springframework.test.context.ContextConfiguration; | ||
|
||
@ContextConfiguration(initializers = ResendErroneousReviewsIntegrationTest.Initializer.class) | ||
public class ResendErroneousReviewsIntegrationTest extends AbstractIntegrationTest { | ||
|
||
@Autowired | ||
private ResendErroneousReviews resendErroneousReviews; | ||
|
||
// @todo #10 Implement ResendErroneousReviewsIntegrationTest | ||
|
||
@AfterEach | ||
void after() { | ||
WireMockServer.getInstance().resetAll(); | ||
} | ||
|
||
static class Initializer implements ApplicationContextInitializer<ConfigurableApplicationContext> { | ||
@Override | ||
public void initialize(ConfigurableApplicationContext applicationContext) { | ||
TestPropertyValues.of( | ||
"app.codexia.base-url=" + WireMockServer.getInstance().baseUrl() | ||
).applyTo(applicationContext.getEnvironment()); | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
src/test/java/dev/iakunin/codexiabot/github/cron/stat/GithubIntegrationTest.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,13 @@ | ||
package dev.iakunin.codexiabot.github.cron.stat; | ||
|
||
import dev.iakunin.codexiabot.AbstractIntegrationTest; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
|
||
public class GithubIntegrationTest extends AbstractIntegrationTest { | ||
|
||
@Autowired | ||
private Github github; | ||
|
||
// @todo #10 Implement GithubIntegrationTest | ||
|
||
} |
13 changes: 13 additions & 0 deletions
13
src/test/java/dev/iakunin/codexiabot/github/cron/stat/LinesOfCodeIntegrationTest.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,13 @@ | ||
package dev.iakunin.codexiabot.github.cron.stat; | ||
|
||
import dev.iakunin.codexiabot.AbstractIntegrationTest; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
|
||
public class LinesOfCodeIntegrationTest extends AbstractIntegrationTest { | ||
|
||
@Autowired | ||
private LinesOfCode linesOfCode; | ||
|
||
// @todo #10 Implement LinesOfCodeIntegrationTest | ||
|
||
} |
13 changes: 13 additions & 0 deletions
13
src/test/java/dev/iakunin/codexiabot/hackernews/cron/GapsFillerIntegrationTest.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,13 @@ | ||
package dev.iakunin.codexiabot.hackernews.cron; | ||
|
||
import dev.iakunin.codexiabot.AbstractIntegrationTest; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
|
||
public class GapsFillerIntegrationTest extends AbstractIntegrationTest { | ||
|
||
@Autowired | ||
private GapsFiller gapsFiller; | ||
|
||
// @todo #10 Implement GapsFillerIntegrationTest | ||
|
||
} |
13 changes: 13 additions & 0 deletions
13
src/test/java/dev/iakunin/codexiabot/hackernews/cron/IncrementedParserIntegrationTest.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,13 @@ | ||
package dev.iakunin.codexiabot.hackernews.cron; | ||
|
||
import dev.iakunin.codexiabot.AbstractIntegrationTest; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
|
||
public class IncrementedParserIntegrationTest extends AbstractIntegrationTest { | ||
|
||
@Autowired | ||
private IncrementedParser incrementedParser; | ||
|
||
// @todo #10 Implement IncrementedParserIntegrationTest | ||
|
||
} |
13 changes: 13 additions & 0 deletions
13
src/test/java/dev/iakunin/codexiabot/hackernews/cron/ItemsHealthCheckIntegrationTest.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,13 @@ | ||
package dev.iakunin.codexiabot.hackernews.cron; | ||
|
||
import dev.iakunin.codexiabot.AbstractIntegrationTest; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
|
||
public class ItemsHealthCheckIntegrationTest extends AbstractIntegrationTest { | ||
|
||
@Autowired | ||
private ItemsHealthCheck itemsHealthCheck; | ||
|
||
// @todo #10 Implement ItemsHealthCheckIntegrationTest | ||
|
||
} |
13 changes: 13 additions & 0 deletions
13
src/test/java/dev/iakunin/codexiabot/hackernews/cron/RetryErroneousIntegrationTest.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,13 @@ | ||
package dev.iakunin.codexiabot.hackernews.cron; | ||
|
||
import dev.iakunin.codexiabot.AbstractIntegrationTest; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
|
||
public class RetryErroneousIntegrationTest extends AbstractIntegrationTest { | ||
|
||
@Autowired | ||
private RetryErroneous retryErroneous; | ||
|
||
// @todo #10 Implement RetryErroneousIntegrationTest | ||
|
||
} |
13 changes: 13 additions & 0 deletions
13
src/test/java/dev/iakunin/codexiabot/reddit/cron/ParserIntegrationTest.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,13 @@ | ||
package dev.iakunin.codexiabot.reddit.cron; | ||
|
||
import dev.iakunin.codexiabot.AbstractIntegrationTest; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
|
||
public class ParserIntegrationTest extends AbstractIntegrationTest { | ||
|
||
@Autowired | ||
private Parser parser; | ||
|
||
// @todo #10 Implement ParserIntegrationTest | ||
|
||
} |