@Test public void testCase5() { Object o2_0 = klazz.getCurQtrs() + 1; klazz.addQtr(); assertEquals(klazz.getCurQtrs(), o2_0); assertEquals("notAllowed", klazz.getStateFullName()); Object o5_0 = klazz.getCurQtrs() + 1; Object o5_1 = true; klazz.addQtr(); assertEquals(klazz.getCurQtrs(), o5_0); assertEquals(klazz.getAllowVend(), o5_1); assertEquals("allowed", klazz.getStateFullName()); Object o6_0 = 0; Object o6_1 = false; klazz.returnQtrs(); assertEquals(klazz.getCurQtrs(), o6_0); assertEquals(klazz.getAllowVend(), o6_1); assertEquals("empty", klazz.getStateFullName()); }
@Test public void testCase6() { Object o2_0 = klazz.getCurQtrs() + 1; klazz.addQtr(); assertEquals(klazz.getCurQtrs(), o2_0); assertEquals("notAllowed", klazz.getStateFullName()); Object o5_0 = klazz.getCurQtrs() + 1; Object o5_1 = true; klazz.addQtr(); assertEquals(klazz.getCurQtrs(), o5_0); assertEquals(klazz.getAllowVend(), o5_1); assertEquals("allowed", klazz.getStateFullName()); Object o7_0 = 0; Object o7_1 = 0; Object o7_2 = false; klazz.reset(); assertEquals(klazz.getTotalQtrs(), o7_0); assertEquals(klazz.getCurQtrs(), o7_1); assertEquals(klazz.getAllowVend(), o7_2); assertEquals("empty", klazz.getStateFullName()); }
@Test public void testCase9() { Object o2_0 = klazz.getCurQtrs() + 1; klazz.addQtr(); assertEquals(klazz.getCurQtrs(), o2_0); assertEquals("notAllowed", klazz.getStateFullName()); Object o5_0 = klazz.getCurQtrs() + 1; Object o5_1 = true; klazz.addQtr(); assertEquals(klazz.getCurQtrs(), o5_0); assertEquals(klazz.getAllowVend(), o5_1); assertEquals("allowed", klazz.getStateFullName()); klazz.setCurQtrs(3); Object o10_0 = klazz.getTotalQtrs() + 2; Object o10_1 = 1; Object o10_2 = false; klazz.vend(); assertEquals(klazz.getTotalQtrs(), o10_0); assertEquals(klazz.getCurQtrs(), o10_1); assertEquals(klazz.getAllowVend(), o10_2); assertEquals("notAllowed", klazz.getStateFullName()); }
@Test public void testCase7() { Object o2_0 = klazz.getCurQtrs() + 1; klazz.addQtr(); assertEquals(klazz.getCurQtrs(), o2_0); assertEquals("notAllowed", klazz.getStateFullName()); Object o5_0 = klazz.getCurQtrs() + 1; Object o5_1 = true; klazz.addQtr(); assertEquals(klazz.getCurQtrs(), o5_0); assertEquals(klazz.getAllowVend(), o5_1); assertEquals("allowed", klazz.getStateFullName()); Object o8_0 = klazz.getCurQtrs() + 1; klazz.addQtr(); assertEquals(klazz.getCurQtrs(), o8_0); assertEquals("allowed", klazz.getStateFullName()); }