package ui.model; import java.util.ArrayList; import ui.controller.CategoryController; public class tests { public static void main(String[] args){ CategoryController cc = new CategoryController(new Model(), new IdCounter()); ArrayList cats = new ArrayList(); cats.add(new Category("sup")); boolean value; value = cc.containsInList(cats, new Category("sup")); if(value){ System.out.println("true"); }else{ System.out.println("false"); } } }