correction de BeforeEach avec Junit5
This commit is contained in:
@@ -1,13 +1,12 @@
|
|||||||
package src.fr.test;
|
package src.fr.test;
|
||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
|
|
||||||
|
|
||||||
import static org.junit.Assert.*;
|
import static org.junit.Assert.*;
|
||||||
|
|
||||||
import org.junit.Before;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.junit.Test;
|
|
||||||
import org.junit.jupiter.api.BeforeAll;
|
|
||||||
import org.junit.jupiter.api.BeforeEach;
|
import org.junit.jupiter.api.BeforeEach;
|
||||||
|
|
||||||
import src.fr.impl.*;
|
import src.fr.impl.*;
|
||||||
@@ -44,13 +43,14 @@ public class test {
|
|||||||
PartType IH= new PartTypeImpl("IH", Interior);
|
PartType IH= new PartTypeImpl("IH", Interior);
|
||||||
PartType IS= new PartTypeImpl("IS", Interior);
|
PartType IS= new PartTypeImpl("IS", Interior);
|
||||||
|
|
||||||
CompatibilityManager cm = new CompatibilityManagerImpl();
|
CompatibilityManager cm;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@Before
|
@BeforeEach
|
||||||
public void init(){
|
public void init(){
|
||||||
|
|
||||||
|
cm = new CompatibilityManagerImpl();
|
||||||
|
|
||||||
Set<PartType> EH120Requirement = new HashSet<PartType>();
|
Set<PartType> EH120Requirement = new HashSet<PartType>();
|
||||||
EH120Requirement.add(TC120);
|
EH120Requirement.add(TC120);
|
||||||
|
|||||||
Reference in New Issue
Block a user