Skip to content

Commit

Permalink
[NO ISSUE] Migrate to JUnit5 drools model (#6128)
Browse files Browse the repository at this point in the history
* Migrated first parameter tests

* More tests migrated to JUnit5

* More tests migrated to JUnit5

* Infrastructure to migrate parameterized tests

* Migrated more tests

* More tests migrated

* Keep migrating

* Migrated more tests

* Migrated more tests

* Migrated more tests

* Migrated more tests

* Migrated even more tests

* Migrated more tests to JUnit5

* Migrated more tests. removed unused imports

* More tests migrated.

* More tests migrated to JUnit5

* Migrated more tests

* Migrated all the tests in model codegen

* All tests migrated to JUnit5

* Missed fix
  • Loading branch information
pibizza authored Oct 17, 2024
1 parent 99c9527 commit 8b78f8a
Show file tree
Hide file tree
Showing 120 changed files with 4,864 additions and 4,081 deletions.
7 changes: 3 additions & 4 deletions drools-model/drools-canonical-model/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,10 @@
<artifactId>logback-classic</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
*/
package org.drools.model.operators;

import org.junit.After;
import org.junit.Test;

import static org.assertj.core.api.Assertions.assertThat;

import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.Test;

public class MatchesOperatorTest {

Expand Down Expand Up @@ -60,7 +60,7 @@ public void testMatchesOperatorNoCache() {
assertThat(instance.mapSize()).isEqualTo(0);
}

@After
@AfterEach
public void resetCache() {
MatchesOperator instance = MatchesOperator.INSTANCE;
instance.reInitialize();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

import java.math.BigDecimal;

import org.junit.Test;
import org.junit.jupiter.api.Test;

import static org.assertj.core.api.Assertions.assertThat;

Expand Down
32 changes: 6 additions & 26 deletions drools-model/drools-model-codegen/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -127,36 +127,16 @@
<scope>test</scope>
</dependency>

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-params</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.drools</groupId>
<artifactId>drools-decisiontables</artifactId>
Expand Down
Loading

0 comments on commit 8b78f8a

Please sign in to comment.