assertion Junit 5
This commit is contained in:
@@ -4,7 +4,7 @@ import java.util.Set;
|
|||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
|
|
||||||
|
|
||||||
import static org.junit.Assert.*;
|
import static org.junit.jupiter.api.Assertions.*;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.junit.jupiter.api.BeforeEach;
|
import org.junit.jupiter.api.BeforeEach;
|
||||||
@@ -15,33 +15,33 @@ import src.fr.api.*;
|
|||||||
|
|
||||||
public class test {
|
public class test {
|
||||||
|
|
||||||
Category Engine = new CategoryImpl("Engine");
|
Category Engine;
|
||||||
Category Transmission = new CategoryImpl("Transmission");
|
Category Transmission;
|
||||||
Category Exterior= new CategoryImpl("Exterior");
|
Category Exterior;
|
||||||
Category Interior= new CategoryImpl("Interior");
|
Category Interior;
|
||||||
|
|
||||||
//PartType
|
//PartType
|
||||||
PartType EG100= new PartTypeImpl("EG100", Engine);
|
PartType EG100;
|
||||||
PartType EG133= new PartTypeImpl("EG133", Engine);
|
PartType EG133;
|
||||||
PartType EG210= new PartTypeImpl("EG210", Engine);
|
PartType EG210;
|
||||||
PartType ED110= new PartTypeImpl("ED110", Engine);
|
PartType ED110;
|
||||||
PartType ED180= new PartTypeImpl("ED180", Engine);
|
PartType ED180;
|
||||||
PartType EH120= new PartTypeImpl("EH120", Engine);
|
PartType EH120;
|
||||||
|
|
||||||
PartType TM5= new PartTypeImpl("TM5", Transmission);
|
PartType TM5;
|
||||||
PartType TM6= new PartTypeImpl("TM6", Transmission);
|
PartType TM6;
|
||||||
PartType TA5= new PartTypeImpl("TA5", Transmission);
|
PartType TA5;
|
||||||
PartType TS6= new PartTypeImpl("TS6", Transmission);
|
PartType TS6;
|
||||||
PartType TSF7= new PartTypeImpl("TSF7", Transmission);
|
PartType TSF7;
|
||||||
PartType TC120= new PartTypeImpl("TC120", Transmission);
|
PartType TC120;
|
||||||
|
|
||||||
PartType XC= new PartTypeImpl("XC", Exterior);
|
PartType XC;
|
||||||
PartType XM= new PartTypeImpl("XM", Exterior);
|
PartType XM;
|
||||||
PartType XS= new PartTypeImpl("XS", Exterior);
|
PartType XS;
|
||||||
|
|
||||||
PartType IN= new PartTypeImpl("IN", Interior);
|
PartType IN;
|
||||||
PartType IH= new PartTypeImpl("IH", Interior);
|
PartType IH;
|
||||||
PartType IS= new PartTypeImpl("IS", Interior);
|
PartType IS;
|
||||||
|
|
||||||
CompatibilityManager cm;
|
CompatibilityManager cm;
|
||||||
|
|
||||||
@@ -50,6 +50,34 @@ 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>();
|
||||||
|
|||||||
Reference in New Issue
Block a user