test_class.declarator: timeAmountView
test_class.modifier: @Mock
test_class.original_string: @Mock
      TimeAmountEditor.View timeAmountView;
test_class.type: TimeAmountEditor.View
test_class.var_name: timeAmountView
test_class.declarator: changeCommand
test_class.modifier: @Mock
test_class.original_string: @Mock
      Command changeCommand;
test_class.type: Command
test_class.var_name: changeCommand
test_class.file: dashbuilder-client/dashbuilder-displayer-client/src/test/java/org/dashbuilder/displayer/client/widgets/filter/TimeAmountEditorTest.java
test_class.identifier: TimeAmountEditorTest
test_case.body: @Test
      public void testDecreaseQuantity() {
          TimeAmount timeAmount = new TimeAmount(10, DateIntervalType.DAY);
          TimeAmountEditor timeAmountEditor = new TimeAmountEditor(timeAmountView);
          timeAmountEditor.init(timeAmount, changeCommand);
          timeAmountEditor.decreaseQuantity();
  
          verify(timeAmountView).setQuantity(9);
          verify(changeCommand).execute();
  
          assertEquals(timeAmount.getQuantity(), 9);
      }
test_case.class_method_signature: TimeAmountEditorTest.testDecreaseQuantity()
test_case.full_signature: @Test public void testDecreaseQuantity()
test_case.identifier: testDecreaseQuantity
test_case.invocations: init decreaseQuantity setQuantity verify execute verify assertEquals getQuantity
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testDecreaseQuantity()
focal_class.declarator: INTERVAL_TYPES = Arrays.asList(
              DateIntervalType.SECOND,
              DateIntervalType.MINUTE,
              DateIntervalType.HOUR,
              DateIntervalType.DAY,
              DateIntervalType.WEEK,
              DateIntervalType.MONTH,
              DateIntervalType.QUARTER,
              DateIntervalType.YEAR,
              DateIntervalType.CENTURY)
focal_class.modifier: public static
focal_class.original_string: public static List<DateIntervalType> INTERVAL_TYPES = Arrays.asList(
              DateIntervalType.SECOND,
              DateIntervalType.MINUTE,
              DateIntervalType.HOUR,
              DateIntervalType.DAY,
              DateIntervalType.WEEK,
              DateIntervalType.MONTH,
              DateIntervalType.QUARTER,
              DateIntervalType.YEAR,
              DateIntervalType.CENTURY);
focal_class.type: List<DateIntervalType>
focal_class.var_name: INTERVAL_TYPES
focal_class.declarator: view
focal_class.original_string: View view;
focal_class.type: View
focal_class.var_name: view
focal_class.declarator: timeAmount = null
focal_class.original_string: TimeAmount timeAmount = null;
focal_class.type: TimeAmount
focal_class.var_name: timeAmount
focal_class.declarator: onChangeCommand = new Command() { public void execute() {} }
focal_class.original_string: Command onChangeCommand = new Command() { public void execute() {} };
focal_class.type: Command
focal_class.var_name: onChangeCommand
focal_class.file: dashbuilder-client/dashbuilder-displayer-client/src/main/java/org/dashbuilder/displayer/client/widgets/filter/TimeAmountEditor.java
focal_class.identifier: TimeAmountEditor
focal_class.interfaces: implements IsWidget
focal_class.class_method_signature: TimeAmountEditor.TimeAmountEditor(View view)
focal_class.full_signature: @Inject public  TimeAmountEditor(View view)
focal_class.identifier: TimeAmountEditor
focal_class.modifiers: @Inject public
focal_class.parameters: (View view)
focal_class.signature:  TimeAmountEditor(View view)
focal_class.class_method_signature: TimeAmountEditor.asWidget()
focal_class.full_signature: @Override public Widget asWidget()
focal_class.identifier: asWidget
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Widget
focal_class.signature: Widget asWidget()
focal_class.class_method_signature: TimeAmountEditor.getTimeAmount()
focal_class.full_signature: public TimeAmount getTimeAmount()
focal_class.identifier: getTimeAmount
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: TimeAmount
focal_class.signature: TimeAmount getTimeAmount()
focal_class.class_method_signature: TimeAmountEditor.init(final TimeAmount ta, Command onChangeCommand)
focal_class.full_signature: public void init(final TimeAmount ta, Command onChangeCommand)
focal_class.identifier: init
focal_class.modifiers: public
focal_class.parameters: (final TimeAmount ta, Command onChangeCommand)
focal_class.return: void
focal_class.signature: void init(final TimeAmount ta, Command onChangeCommand)
focal_class.class_method_signature: TimeAmountEditor.getQuantity()
focal_class.full_signature: public long getQuantity()
focal_class.identifier: getQuantity
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getQuantity()
focal_class.class_method_signature: TimeAmountEditor.decreaseQuantity()
focal_class.full_signature: public void decreaseQuantity()
focal_class.identifier: decreaseQuantity
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void decreaseQuantity()
focal_class.class_method_signature: TimeAmountEditor.increaseQuantity()
focal_class.full_signature: public void increaseQuantity()
focal_class.identifier: increaseQuantity
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void increaseQuantity()
focal_class.class_method_signature: TimeAmountEditor.changeQuantity(String value)
focal_class.full_signature: public void changeQuantity(String value)
focal_class.identifier: changeQuantity
focal_class.modifiers: public
focal_class.parameters: (String value)
focal_class.return: void
focal_class.signature: void changeQuantity(String value)
focal_class.class_method_signature: TimeAmountEditor.changeIntervalType()
focal_class.full_signature: public void changeIntervalType()
focal_class.identifier: changeIntervalType
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void changeIntervalType()
focal_class.class_method_signature: TimeAmountEditor.changeQuantity(long q)
focal_class.full_signature: protected void changeQuantity(long q)
focal_class.identifier: changeQuantity
focal_class.modifiers: protected
focal_class.parameters: (long q)
focal_class.return: void
focal_class.signature: void changeQuantity(long q)
focal_method.body: public void decreaseQuantity() {
          long q = getQuantity()-1;
          changeQuantity(q);
          view.setQuantity(q);
      }
focal_method.class_method_signature: TimeAmountEditor.decreaseQuantity()
focal_method.full_signature: public void decreaseQuantity()
focal_method.identifier: decreaseQuantity
focal_method.invocations: getQuantity changeQuantity setQuantity
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: void
focal_method.signature: void decreaseQuantity()