Update test
Test
This commit is contained in:
@@ -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
0
src/Test.java
Normal 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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user