correction de BeforeEach avec Junit5
This commit is contained in:
@@ -6,7 +6,7 @@ import java.util.HashSet;
|
|||||||
|
|
||||||
import static org.junit.Assert.*;
|
import static org.junit.Assert.*;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.junit.jupiter.api.BeforeEach;
|
import org.junit.jupiter.api.BeforeEach;
|
||||||
|
|
||||||
import src.fr.impl.*;
|
import src.fr.impl.*;
|
||||||
@@ -43,11 +43,14 @@ public class test_V1 {
|
|||||||
PartType IH= new PartTypeImpl("IH", Interior.class ,interior);
|
PartType IH= new PartTypeImpl("IH", Interior.class ,interior);
|
||||||
PartType IS= new PartTypeImpl("IS", Interior.class ,interior);
|
PartType IS= new PartTypeImpl("IS", Interior.class ,interior);
|
||||||
|
|
||||||
CompatibilityManager cm = new CompatibilityManagerImpl();
|
CompatibilityManager cm;
|
||||||
|
|
||||||
|
|
||||||
@BeforeEach
|
@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);
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import java.util.HashSet;
|
|||||||
|
|
||||||
import static org.junit.Assert.*;
|
import static org.junit.Assert.*;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.junit.jupiter.api.BeforeEach;
|
import org.junit.jupiter.api.BeforeEach;
|
||||||
|
|
||||||
import src.fr.impl.*;
|
import src.fr.impl.*;
|
||||||
@@ -14,6 +14,7 @@ import src.fr.impl.Parts.*;
|
|||||||
import src.fr.api.*;
|
import src.fr.api.*;
|
||||||
|
|
||||||
public class test_V2 {
|
public class test_V2 {
|
||||||
|
|
||||||
CategoryImpl engine = new CategoryImpl("Engine");
|
CategoryImpl engine = new CategoryImpl("Engine");
|
||||||
CategoryImpl transmission = new CategoryImpl("Transmission");
|
CategoryImpl transmission = new CategoryImpl("Transmission");
|
||||||
CategoryImpl exterior = new CategoryImpl("Exterior");
|
CategoryImpl exterior = new CategoryImpl("Exterior");
|
||||||
@@ -42,11 +43,14 @@ public class test_V2 {
|
|||||||
PartType IH= new PartTypeImpl("IH", Interior.class ,interior);
|
PartType IH= new PartTypeImpl("IH", Interior.class ,interior);
|
||||||
PartType IS= new PartTypeImpl("IS", Interior.class ,interior);
|
PartType IS= new PartTypeImpl("IS", Interior.class ,interior);
|
||||||
|
|
||||||
CompatibilityManager cm = new CompatibilityManagerImpl();
|
CompatibilityManager cm;
|
||||||
|
|
||||||
|
|
||||||
@BeforeEach
|
@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