Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Close #40 Add support for test-containers to be compliant with native engine statements #42

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jkubrynski
Copy link
Member

No description provided.

@@ -5,7 +5,12 @@
/**
* Generation based on setting up embedded database and dumping the schema
*/
DATABASE,
EMBEDDED_DATABASE,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe an overkill, but this isn't backward compatible? This enum is used as part of configuration?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is, but as we're releasing the stable version I don't have problem with breaking it

}

private void validateSettings(GeneratorSettings settings) {
if (settings.getAction() == Action.UPDATE) {
if (settings.getOutputPath().exists() && !settings.getOutputPath().isDirectory()) {
throw new IllegalArgumentException("For UPDATE action outputPath must be a directory");
}
if (settings.getGenerationMode() != GenerationMode.DATABASE) {
if (settings.getGenerationMode() != GenerationMode.EMBEDDED_DATABASE && settings.getGenerationMode() != GenerationMode.CONTAINER_DATABASE) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe some flag on GenerationMode to avoid &&? Also, the error message below is incorrect

@@ -79,7 +79,6 @@
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.1</version>
<scope>test</scope>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the reference, it's because of testcontainer's dependency on junit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants