Bug 456 (output, Wrong) - Wrong output from Optimize method
Summary: Wrong output from Optimize method
Status: CONFIRMED
Alias: output, Wrong
Product: Warehouse Management System
Classification: Unclassified
Component: Testing V1 (show other bugs)
Version: Specified
Hardware: PC Windows
: High major
Assignee: ANIRUDH
URL:
Depends on:
Blocks:
 
Reported: 2020-11-25 01:36 HKT by ANIRUDH
Modified: 2020-11-25 01:36 HKT (History)
0 users

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: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());
	}