-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17198 from stuartwdouglas/test-resources-fix
Fix issues with changes to test resources
- Loading branch information
Showing
22 changed files
with
284 additions
and
113 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
23 changes: 23 additions & 0 deletions
23
core/devmode-spi/src/main/java/io/quarkus/dev/testing/TestWatchedFiles.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,23 @@ | ||
package io.quarkus.dev.testing; | ||
|
||
import java.util.Map; | ||
|
||
/** | ||
* provides a way for a test run to tell the external application about watched paths. | ||
* | ||
* This could be a test specific application.properties or import.sql for example | ||
*/ | ||
public class TestWatchedFiles { | ||
|
||
private static volatile Map<String, Boolean> watchedFilePaths; | ||
|
||
public static Map<String, Boolean> retrieveWatchedFilePaths() { | ||
Map<String, Boolean> watchedFilePaths = TestWatchedFiles.watchedFilePaths; | ||
TestWatchedFiles.watchedFilePaths = null; | ||
return watchedFilePaths; | ||
} | ||
|
||
public static void setWatchedFilePaths(Map<String, Boolean> watchedFilePaths) { | ||
TestWatchedFiles.watchedFilePaths = watchedFilePaths; | ||
} | ||
} |
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
21 changes: 21 additions & 0 deletions
21
extensions/hibernate-orm/deployment/src/test/java/io/quarkus/hibernate/orm/HibernateET.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,21 @@ | ||
package io.quarkus.hibernate.orm; | ||
|
||
import static org.hamcrest.Matchers.is; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
import io.quarkus.test.junit.QuarkusTest; | ||
import io.restassured.RestAssured; | ||
|
||
/** | ||
* Test for continuous testing with hibernate | ||
*/ | ||
@QuarkusTest | ||
public class HibernateET { | ||
|
||
@Test | ||
public void testImport() { | ||
RestAssured.when().get("/my-entity/1").then().body(is("MyEntity:TEST ENTITY")); | ||
} | ||
|
||
} |
Oops, something went wrong.