Bug 455 (Array, Bounds, Index, method, of, Optimize, out) - Array Index out of Bounds
Summary: Array Index out of Bounds
Status: CONFIRMED
Alias: Array, Bounds, Index, method, of, Optimize, out
Product: Warehouse Management System
Classification: Unclassified
Component: Testing V1 (show other bugs)
Version: Specified
Hardware: PC Windows
: High critical
Assignee: ANIRUDH
URL:
Depends on:
Blocks:
 
Reported: 2020-11-25 01:15 HKT by ANIRUDH
Modified: 2020-11-27 03:51 HKT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ANIRUDH 2020-11-25 01:15:55 HKT
Note: Bug in Version 3

Steps to Reproduce:
1. Give the dimensions of item like size, arrival and departure date.
2. Give the size of the slot

Below is the test case which threw error:

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


Error: ArrayIndexOutOfBoundsException was thrown.