package ui.model; import java.util.ArrayList; import classes.Category; import ui.controller.CategoryController; public class tests { public static void main(String[] args){ CategoryController cc = new CategoryController(new Model()); 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"); } } }