correction de BeforeEach avec Junit5

This commit is contained in:
Rochas
2024-12-20 00:05:31 +01:00
parent 45d796afc6
commit 1cb536a785

View File

@@ -1,13 +1,12 @@
package src.fr.test;
import java.util.Set;
import java.util.HashSet;
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.BeforeEach;
import src.fr.impl.*;
@@ -44,13 +43,14 @@ public class test {
PartType IH= new PartTypeImpl("IH", Interior);
PartType IS= new PartTypeImpl("IS", Interior);
CompatibilityManager cm = new CompatibilityManagerImpl();
CompatibilityManager cm;
@Before
@BeforeEach
public void init(){
cm = new CompatibilityManagerImpl();
Set<PartType> EH120Requirement = new HashSet<PartType>();
EH120Requirement.add(TC120);