-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Proper test environment for the camel-quarkus recipes
- Loading branch information
1 parent
c33ea87
commit fe60e2e
Showing
14 changed files
with
171 additions
and
7 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
12 changes: 12 additions & 0 deletions
12
recipes-tests/src/test/java/io/quarkus/updates/camel/CamelUpdate41Test.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 |
---|---|---|
@@ -1,4 +1,16 @@ | ||
package io.quarkus.updates.camel; | ||
|
||
import org.openrewrite.test.RecipeSpec; | ||
import org.openrewrite.test.TypeValidation; | ||
|
||
public class CamelUpdate41Test extends org.apache.camel.updates.camel44.CamelUpdate41Test { | ||
|
||
@Override | ||
public void defaults(RecipeSpec spec) { | ||
//let the parser be initialized in the camel parent | ||
super.defaults(spec); | ||
//recipe has to be loaded differently | ||
CamelQuarkusTestUtil.recipe3_8(spec) | ||
.typeValidationOptions(TypeValidation.none()); | ||
} | ||
} |
13 changes: 9 additions & 4 deletions
13
recipes-tests/src/test/java/io/quarkus/updates/camel/CamelUpdate42Test.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 |
---|---|---|
@@ -1,13 +1,18 @@ | ||
package io.quarkus.updates.camel; | ||
|
||
import org.junit.jupiter.api.Test; | ||
import org.openrewrite.java.JavaParser; | ||
import org.openrewrite.properties.Assertions; | ||
import org.openrewrite.test.RecipeSpec; | ||
import org.openrewrite.test.RewriteTest; | ||
import org.openrewrite.test.TypeValidation; | ||
|
||
import static org.openrewrite.java.Assertions.java; | ||
|
||
public class CamelUpdate42Test extends org.apache.camel.updates.camel44.CamelUpdate42Test { | ||
|
||
@Override | ||
public void defaults(RecipeSpec spec) { | ||
//let the parser be initialized in the camel parent | ||
super.defaults(spec); | ||
//recipe has to be loaded differently | ||
CamelQuarkusTestUtil.recipe3_8(spec) | ||
.typeValidationOptions(TypeValidation.none()); | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
recipes-tests/src/test/java/io/quarkus/updates/camel/CamelUpdate43Test.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 |
---|---|---|
@@ -1,4 +1,16 @@ | ||
package io.quarkus.updates.camel; | ||
|
||
import org.openrewrite.test.RecipeSpec; | ||
import org.openrewrite.test.TypeValidation; | ||
|
||
public class CamelUpdate43Test extends org.apache.camel.updates.camel44.CamelUpdate43Test { | ||
|
||
@Override | ||
public void defaults(RecipeSpec spec) { | ||
//let the parser be initialized in the camel parent | ||
super.defaults(spec); | ||
//recipe has to be loaded differently | ||
CamelQuarkusTestUtil.recipe3_8(spec) | ||
.typeValidationOptions(TypeValidation.none()); | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
recipes-tests/src/test/java/io/quarkus/updates/camel/CamelUpdate44Test.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 |
---|---|---|
@@ -1,4 +1,16 @@ | ||
package io.quarkus.updates.camel; | ||
|
||
import org.openrewrite.test.RecipeSpec; | ||
import org.openrewrite.test.TypeValidation; | ||
|
||
public class CamelUpdate44Test extends org.apache.camel.updates.camel44.CamelUpdate44Test { | ||
|
||
@Override | ||
public void defaults(RecipeSpec spec) { | ||
//let the parser be initialized in the camel parent | ||
super.defaults(spec); | ||
//recipe has to be loaded differently | ||
CamelQuarkusTestUtil.recipe3_8(spec) | ||
.typeValidationOptions(TypeValidation.none()); | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
recipes-tests/src/test/java/io/quarkus/updates/camel/camel40/CameXmlDslRecipeTest.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 |
---|---|---|
@@ -1,4 +1,17 @@ | ||
package io.quarkus.updates.camel.camel40; | ||
|
||
import io.quarkus.updates.camel.CamelQuarkusTestUtil; | ||
import org.openrewrite.test.RecipeSpec; | ||
import org.openrewrite.test.TypeValidation; | ||
|
||
public class CameXmlDslRecipeTest extends org.apache.camel.updates.camel40.CameXmlDslRecipeTest { | ||
|
||
@Override | ||
public void defaults(RecipeSpec spec) { | ||
//let the parser be initialized in the camel parent | ||
super.defaults(spec); | ||
//recipe has to be loaded differently | ||
CamelQuarkusTestUtil.recipe3alpha(spec) | ||
.typeValidationOptions(TypeValidation.none()); | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
recipes-tests/src/test/java/io/quarkus/updates/camel/camel40/CamelAPIsPropertiesTest.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 |
---|---|---|
@@ -1,4 +1,17 @@ | ||
package io.quarkus.updates.camel.camel40; | ||
|
||
import io.quarkus.updates.camel.CamelQuarkusTestUtil; | ||
import org.openrewrite.test.RecipeSpec; | ||
import org.openrewrite.test.TypeValidation; | ||
|
||
public class CamelAPIsPropertiesTest extends org.apache.camel.updates.camel40.CamelAPIsPropertiesTest { | ||
|
||
@Override | ||
public void defaults(RecipeSpec spec) { | ||
//let the parser be initialized in the camel parent | ||
super.defaults(spec); | ||
//recipe has to be loaded differently | ||
CamelQuarkusTestUtil.recipe3alpha(spec) | ||
.typeValidationOptions(TypeValidation.none()); | ||
} | ||
} |
15 changes: 14 additions & 1 deletion
15
recipes-tests/src/test/java/io/quarkus/updates/camel/camel40/CamelAPIsTest.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 |
---|---|---|
@@ -1,4 +1,17 @@ | ||
package io.quarkus.updates.camel.camel40; | ||
|
||
import io.quarkus.updates.camel.CamelQuarkusTestUtil; | ||
import org.openrewrite.test.RecipeSpec; | ||
import org.openrewrite.test.TypeValidation; | ||
|
||
public class CamelAPIsTest extends org.apache.camel.updates.camel40.CamelAPIsTest { | ||
} | ||
|
||
@Override | ||
public void defaults(RecipeSpec spec) { | ||
//let the parser be initialized in the camel parent | ||
super.defaults(spec); | ||
//recipe has to be loaded differently | ||
CamelQuarkusTestUtil.recipe3alpha(spec) | ||
.typeValidationOptions(TypeValidation.none()); | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
recipes-tests/src/test/java/io/quarkus/updates/camel/camel40/CamelBeanRecipeTest.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 |
---|---|---|
@@ -1,4 +1,17 @@ | ||
package io.quarkus.updates.camel.camel40; | ||
|
||
import io.quarkus.updates.camel.CamelQuarkusTestUtil; | ||
import org.openrewrite.test.RecipeSpec; | ||
import org.openrewrite.test.TypeValidation; | ||
|
||
public class CamelBeanRecipeTest extends org.apache.camel.updates.camel40.CamelBeanRecipeTest { | ||
|
||
@Override | ||
public void defaults(RecipeSpec spec) { | ||
//let the parser be initialized in the camel parent | ||
super.defaults(spec); | ||
//recipe has to be loaded differently | ||
CamelQuarkusTestUtil.recipe3alpha(spec) | ||
.typeValidationOptions(TypeValidation.none()); | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
recipes-tests/src/test/java/io/quarkus/updates/camel/camel40/CamelEIPRecipeTest.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 |
---|---|---|
@@ -1,4 +1,17 @@ | ||
package io.quarkus.updates.camel.camel40; | ||
|
||
import io.quarkus.updates.camel.CamelQuarkusTestUtil; | ||
import org.openrewrite.test.RecipeSpec; | ||
import org.openrewrite.test.TypeValidation; | ||
|
||
public class CamelEIPRecipeTest extends org.apache.camel.updates.camel40.CamelEIPRecipeTest { | ||
|
||
@Override | ||
public void defaults(RecipeSpec spec) { | ||
//let the parser be initialized in the camel parent | ||
super.defaults(spec); | ||
//recipe has to be loaded differently | ||
CamelQuarkusTestUtil.recipe3alpha(spec) | ||
.typeValidationOptions(TypeValidation.none()); | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
recipes-tests/src/test/java/io/quarkus/updates/camel/camel40/CamelHttpTest.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 |
---|---|---|
@@ -1,4 +1,17 @@ | ||
package io.quarkus.updates.camel.camel40; | ||
|
||
import io.quarkus.updates.camel.CamelQuarkusTestUtil; | ||
import org.openrewrite.test.RecipeSpec; | ||
import org.openrewrite.test.TypeValidation; | ||
|
||
public class CamelHttpTest extends org.apache.camel.updates.camel40.CamelHttpTest { | ||
|
||
@Override | ||
public void defaults(RecipeSpec spec) { | ||
//let the parser be initialized in the camel parent | ||
super.defaults(spec); | ||
//recipe has to be loaded differently | ||
CamelQuarkusTestUtil.recipe3alpha(spec) | ||
.typeValidationOptions(TypeValidation.none()); | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
recipes-tests/src/test/java/io/quarkus/updates/camel/camel40/CamelJmxTest.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 |
---|---|---|
@@ -1,4 +1,17 @@ | ||
package io.quarkus.updates.camel.camel40; | ||
|
||
import io.quarkus.updates.camel.CamelQuarkusTestUtil; | ||
import org.openrewrite.test.RecipeSpec; | ||
import org.openrewrite.test.TypeValidation; | ||
|
||
public class CamelJmxTest extends org.apache.camel.updates.camel40.CamelAPIsTest { | ||
|
||
@Override | ||
public void defaults(RecipeSpec spec) { | ||
//let the parser be initialized in the camel parent | ||
super.defaults(spec); | ||
//recipe has to be loaded differently | ||
CamelQuarkusTestUtil.recipe3alpha(spec) | ||
.typeValidationOptions(TypeValidation.none()); | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
recipes-tests/src/test/java/io/quarkus/updates/camel/camel40/CamelYamlTest.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 |
---|---|---|
@@ -1,4 +1,17 @@ | ||
package io.quarkus.updates.camel.camel40; | ||
|
||
import io.quarkus.updates.camel.CamelQuarkusTestUtil; | ||
import org.openrewrite.test.RecipeSpec; | ||
import org.openrewrite.test.TypeValidation; | ||
|
||
public class CamelYamlTest extends org.apache.camel.updates.camel40.CamelYamlTest { | ||
|
||
@Override | ||
public void defaults(RecipeSpec spec) { | ||
//let the parser be initialized in the camel parent | ||
super.defaults(spec); | ||
//recipe has to be loaded differently | ||
CamelQuarkusTestUtil.recipe3alpha(spec) | ||
.typeValidationOptions(TypeValidation.none()); | ||
} | ||
} |
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