Skip to content

Commit

Permalink
#10 - Puzzles left
Browse files Browse the repository at this point in the history
  • Loading branch information
iakunin committed Apr 20, 2020
1 parent 285fcb0 commit 8becdb0
Show file tree
Hide file tree
Showing 11 changed files with 190 additions and 43 deletions.

This file was deleted.

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());
}
}
}
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());
}
}
}
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());
}
}
}
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

}
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

}
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

}
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

}
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

}
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

}
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

}

0 comments on commit 8becdb0

Please sign in to comment.