Update test

Test
This commit is contained in:
Minh VU
2024-10-18 15:54:49 +02:00
parent e96d87a815
commit ce92682230
3 changed files with 20 additions and 1 deletions

View File

@@ -12,6 +12,7 @@ public class Configurator implements fr.istic.nplouzeau.cartaylor.api.Configurat
private Set<Category> categories;
private Set<PartType> partTypes;
private Configuration configuration;
private CompatibilityChecker compatibilityChecker;
public Configurator (Set<Category> cat, Set<PartType> pt, Configuration config) {
this.categories= cat;
@@ -42,6 +43,6 @@ public class Configurator implements fr.istic.nplouzeau.cartaylor.api.Configurat
@Override
public CompatibilityChecker getCompatibilityChecker() {
return null;
return this.compatibilityChecker;
}
}

0
src/Test.java Normal file
View File

View File

@@ -1,5 +1,23 @@
package tests;
import src.*;
public class test {
public static void main(String[] args){
Category Engine = new Category("Engine");
Category Transmission = new Category("Transmission");
Category Exterior= new Category("Exterior");
Category Interior= new Category("Interior");
//PartType
PartType EG100= new PartType("EG100", Engine);
PartType EG133= new PartType("EG133", Engine);
PartType EG210= new PartType("EG210", Engine);
PartType ED110= new PartType("ED110", Engine);
PartType ED180= new PartType("ED180", Engine);
PartType EH120= new PartType("EH120", Engine);
//Transmission
PartType TM5= new PartType("TM5", Engine);
}
}