Skip to content

Commit

Permalink
trying to stabilize build by eager consumption of entity-manager
Browse files Browse the repository at this point in the history
- fixed method order ... as it runs all fine locally :)
  • Loading branch information
ivy-rew committed Nov 10, 2023
1 parent 571e1ea commit 2b0a00c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
15 changes: 13 additions & 2 deletions excel-importer-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<dependency>
<groupId>com.axonivy.ivy.test</groupId>
<artifactId>unit-tester</artifactId>
<version>10.0.0</version>
<version>10.0.14</version>
<scope>test</scope>
</dependency>
</dependencies>
Expand All @@ -31,9 +31,20 @@
<plugin>
<groupId>com.axonivy.ivy.ci</groupId>
<artifactId>project-build-plugin</artifactId>
<version>10.0.6</version>
<version>10.0.14</version>
<extensions>true</extensions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<runOrder>alphabetical</runOrder>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

@IvyTest
@SuppressWarnings("restriction")
public class TestEntityDataLoader {
public class TestAEntityDataLoader {

private EntityDataLoader loader;
private EntityClassReader reader;
Expand Down Expand Up @@ -74,6 +74,7 @@ void loadArznei(@TempDir Path dir) throws Exception {
@BeforeEach
void setup() {
this.unit = Ivy.persistence().get("testing");
unit.createEntityManager().clear(); // eager access
this.loader = new EntityDataLoader(unit);
this.reader = new EntityClassReader();
}
Expand Down

0 comments on commit 2b0a00c

Please sign in to comment.