assertion Junit 5

This commit is contained in:
Rochas
2024-12-20 14:54:23 +01:00
parent beeef622b3
commit 4198d7a407

View File

@@ -15,33 +15,33 @@ import src.fr.api.*;
public class test { public class test {
Category Engine; Category Engine = new CategoryImpl("Engine");
Category Transmission; Category Transmission = new CategoryImpl("Transmission");
Category Exterior; Category Exterior= new CategoryImpl("Exterior");
Category Interior; Category Interior= new CategoryImpl("Interior");
//PartType //PartType
PartType EG100; PartType EG100= new PartTypeImpl("EG100", Engine);
PartType EG133; PartType EG133= new PartTypeImpl("EG133", Engine);
PartType EG210; PartType EG210= new PartTypeImpl("EG210", Engine);
PartType ED110; PartType ED110= new PartTypeImpl("ED110", Engine);
PartType ED180; PartType ED180= new PartTypeImpl("ED180", Engine);
PartType EH120; PartType EH120= new PartTypeImpl("EH120", Engine);
PartType TM5; PartType TM5= new PartTypeImpl("TM5", Transmission);
PartType TM6; PartType TM6= new PartTypeImpl("TM6", Transmission);
PartType TA5; PartType TA5= new PartTypeImpl("TA5", Transmission);
PartType TS6; PartType TS6= new PartTypeImpl("TS6", Transmission);
PartType TSF7; PartType TSF7= new PartTypeImpl("TSF7", Transmission);
PartType TC120; PartType TC120= new PartTypeImpl("TC120", Transmission);
PartType XC; PartType XC= new PartTypeImpl("XC", Exterior);
PartType XM; PartType XM= new PartTypeImpl("XM", Exterior);
PartType XS; PartType XS= new PartTypeImpl("XS", Exterior);
PartType IN; PartType IN= new PartTypeImpl("IN", Interior);
PartType IH; PartType IH= new PartTypeImpl("IH", Interior);
PartType IS; PartType IS= new PartTypeImpl("IS", Interior);
CompatibilityManager cm; CompatibilityManager cm;
@@ -50,34 +50,6 @@ public class test {
@BeforeEach @BeforeEach
public void init(){ public void init(){
Engine = new CategoryImpl("Engine");
Transmission = new CategoryImpl("Transmission");
Exterior= new CategoryImpl("Exterior");
Interior= new CategoryImpl("Interior");
Engine = new CategoryImpl("Engine");
Transmission = new CategoryImpl("Transmission");
Exterior= new CategoryImpl("Exterior");
Interior= new CategoryImpl("Interior");
EG100= new PartTypeImpl("EG100", Engine);
EG133= new PartTypeImpl("EG133", Engine);
EG210= new PartTypeImpl("EG210", Engine);
ED110= new PartTypeImpl("ED110", Engine);
ED180= new PartTypeImpl("ED180", Engine);
EH120= new PartTypeImpl("EH120", Engine);
TM5= new PartTypeImpl("TM5", Transmission);
TM6= new PartTypeImpl("TM6", Transmission);
TA5= new PartTypeImpl("TA5", Transmission);
TS6= new PartTypeImpl("TS6", Transmission);
TSF7= new PartTypeImpl("TSF7", Transmission);
TC120= new PartTypeImpl("TC120", Transmission);
XC= new PartTypeImpl("XC", Exterior);
XM= new PartTypeImpl("XM", Exterior);
XS= new PartTypeImpl("XS", Exterior);
IN= new PartTypeImpl("IN", Interior);
IH= new PartTypeImpl("IH", Interior);
IS= new PartTypeImpl("IS", Interior);
cm = new CompatibilityManagerImpl(); cm = new CompatibilityManagerImpl();
Set<PartType> EH120Requirement = new HashSet<PartType>(); Set<PartType> EH120Requirement = new HashSet<PartType>();