12345678910111213141516171819202122 |
- 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(), new IdCounter());
- ArrayList<Category> cats = new ArrayList<Category>();
- 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");
- }
- }
- }
|