tests.java 490 B

123456789101112131415161718192021
  1. package ui.model;
  2. import java.util.ArrayList;
  3. import ui.controller.CategoryController;
  4. public class tests {
  5. public static void main(String[] args){
  6. CategoryController cc = new CategoryController(new Model(), new IdCounter());
  7. ArrayList<Category> cats = new ArrayList<Category>();
  8. cats.add(new Category("sup"));
  9. boolean value;
  10. value = cc.containsInList(cats, new Category("sup"));
  11. if(value){
  12. System.out.println("true");
  13. }else{
  14. System.out.println("false");
  15. }
  16. }
  17. }