Bug 456 (output, Wrong)

Summary: Wrong output from Optimize method
Product: Warehouse Management System Reporter: ANIRUDH <pvsatavva2-c>
Component: Testing V1Assignee: ANIRUDH <pvsatavva2-c>
Status: CONFIRMED ---    
Severity: major    
Priority: High    
Version: Specified   
Hardware: PC   
OS: Windows   

Description ANIRUDH 2020-11-25 01:36:10 HKT
Bug Report for V3

Steps to reproduce:

1. Give an item of value -1 along with arrival and departure date
2. Give the slot of value -1.

Should actually throw an exception like wrong input given but eclipse is showing that test case to be true.

The test case is:

	@Test
	void testOptimize4() {
		Item is = new Item(-1, new Day("13-Oct-2020"),new Day("20-Oct-2020"));
		Slot ss = new Slot(-1);
		ArrayList<Item> itemArray = new ArrayList<Item>();
		itemArray.add(is);
		Optimize opt = new Optimize();
	    opt.findOnePerfectFit(itemArray, ss);
	    assertEquals(false, opt.getFound());
	}