test_class.declarator: beanManager
test_class.modifier: @Mock
test_class.original_string: @Mock
      SyncBeanManager beanManager;
test_class.type: SyncBeanManager
test_class.var_name: beanManager
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.declarator: timeFrameView
test_class.modifier: @Mock
test_class.original_string: @Mock
      TimeFrameEditor.View timeFrameView;
test_class.type: TimeFrameEditor.View
test_class.var_name: timeFrameView
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: timeInstantView
test_class.modifier: @Mock
test_class.original_string: @Mock
      TimeInstantEditor.View timeInstantView;
test_class.type: TimeInstantEditor.View
test_class.var_name: timeInstantView
test_class.declarator: fromAmountEditor
test_class.original_string: TimeAmountEditor fromAmountEditor;
test_class.type: TimeAmountEditor
test_class.var_name: fromAmountEditor
test_class.declarator: toAmountEditor
test_class.original_string: TimeAmountEditor toAmountEditor;
test_class.type: TimeAmountEditor
test_class.var_name: toAmountEditor
test_class.declarator: fromInstantEditor
test_class.original_string: TimeInstantEditor fromInstantEditor;
test_class.type: TimeInstantEditor
test_class.var_name: fromInstantEditor
test_class.declarator: toInstantEditor
test_class.original_string: TimeInstantEditor toInstantEditor;
test_class.type: TimeInstantEditor
test_class.var_name: toInstantEditor
test_class.declarator: timeFrameEditor
test_class.original_string: TimeFrameEditor timeFrameEditor;
test_class.type: TimeFrameEditor
test_class.var_name: timeFrameEditor
test_class.declarator: TEN_DAYS = TimeFrame.parse("begin[year March] till 10day")
test_class.modifier: public static final
test_class.original_string: public static final TimeFrame TEN_DAYS = TimeFrame.parse("begin[year March] till 10day");
test_class.type: TimeFrame
test_class.var_name: TEN_DAYS
test_class.declarator: LAST_DAY = TimeFrame.parse("now -1day till now")
test_class.modifier: public static final
test_class.original_string: public static final TimeFrame LAST_DAY = TimeFrame.parse("now -1day till now");
test_class.type: TimeFrame
test_class.var_name: LAST_DAY
test_class.declarator: CURRENT_YEAR = TimeFrame.parse("begin[year] till end[year]")
test_class.modifier: public static final
test_class.original_string: public static final TimeFrame CURRENT_YEAR = TimeFrame.parse("begin[year] till end[year]");
test_class.type: TimeFrame
test_class.var_name: CURRENT_YEAR
test_class.declarator: UNDEFINED = null
test_class.modifier: public static final
test_class.original_string: public static final TimeFrame UNDEFINED = null;
test_class.type: TimeFrame
test_class.var_name: UNDEFINED
test_class.file: dashbuilder-client/dashbuilder-displayer-client/src/test/java/org/dashbuilder/displayer/client/widgets/filter/TimeFrameEditorTest.java
test_class.identifier: TimeFrameEditorTest
test_case.body: @Test
      public void testNullInitialization() {
          timeFrameEditor.init(UNDEFINED, changeCommand);
  
          assertEquals(timeFrameView, timeFrameEditor.view);
          verify(timeFrameView).init(timeFrameEditor);
          verify(timeFrameView).clearFirstMonthSelector();
          verify(timeFrameView, times(Month.values().length)).addFirstMonthItem(any(Month.class));
          verify(timeFrameView).setSelectedFirstMonthIndex(Month.JANUARY.getIndex() - 1);
      }
test_case.class_method_signature: TimeFrameEditorTest.testNullInitialization()
test_case.full_signature: @Test public void testNullInitialization()
test_case.identifier: testNullInitialization
test_case.invocations: init assertEquals init verify clearFirstMonthSelector verify addFirstMonthItem verify times values any setSelectedFirstMonthIndex verify getIndex
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testNullInitialization()
focal_class.declarator: view
focal_class.original_string: View view;
focal_class.type: View
focal_class.var_name: view
focal_class.declarator: beanManager
focal_class.original_string: SyncBeanManager beanManager;
focal_class.type: SyncBeanManager
focal_class.var_name: beanManager
focal_class.declarator: timeFrame = null
focal_class.original_string: TimeFrame timeFrame = null;
focal_class.type: TimeFrame
focal_class.var_name: timeFrame
focal_class.declarator: fromEditor
focal_class.original_string: TimeInstantEditor fromEditor;
focal_class.type: TimeInstantEditor
focal_class.var_name: fromEditor
focal_class.declarator: toEditor
focal_class.original_string: TimeInstantEditor toEditor;
focal_class.type: TimeInstantEditor
focal_class.var_name: toEditor
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/TimeFrameEditor.java
focal_class.identifier: TimeFrameEditor
focal_class.interfaces: implements FunctionParameterEditor
focal_class.class_method_signature: TimeFrameEditor.TimeFrameEditor(View view, SyncBeanManager beanManager)
focal_class.full_signature: @Inject public  TimeFrameEditor(View view, SyncBeanManager beanManager)
focal_class.identifier: TimeFrameEditor
focal_class.modifiers: @Inject public
focal_class.parameters: (View view, SyncBeanManager beanManager)
focal_class.signature:  TimeFrameEditor(View view, SyncBeanManager beanManager)
focal_class.class_method_signature: TimeFrameEditor.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: TimeFrameEditor.getTimeFrame()
focal_class.full_signature: public TimeFrame getTimeFrame()
focal_class.identifier: getTimeFrame
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: TimeFrame
focal_class.signature: TimeFrame getTimeFrame()
focal_class.class_method_signature: TimeFrameEditor.getFromEditor()
focal_class.full_signature: public TimeInstantEditor getFromEditor()
focal_class.identifier: getFromEditor
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: TimeInstantEditor
focal_class.signature: TimeInstantEditor getFromEditor()
focal_class.class_method_signature: TimeFrameEditor.getToEditor()
focal_class.full_signature: public TimeInstantEditor getToEditor()
focal_class.identifier: getToEditor
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: TimeInstantEditor
focal_class.signature: TimeInstantEditor getToEditor()
focal_class.class_method_signature: TimeFrameEditor.init(TimeFrame tf, Command onChangeCommand)
focal_class.full_signature: public void init(TimeFrame tf, Command onChangeCommand)
focal_class.identifier: init
focal_class.modifiers: public
focal_class.parameters: (TimeFrame tf, Command onChangeCommand)
focal_class.return: void
focal_class.signature: void init(TimeFrame tf, Command onChangeCommand)
focal_class.class_method_signature: TimeFrameEditor.initFirstMonthSelector()
focal_class.full_signature: protected void initFirstMonthSelector()
focal_class.identifier: initFirstMonthSelector
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void initFirstMonthSelector()
focal_class.class_method_signature: TimeFrameEditor.changeFirstMonthAvailability()
focal_class.full_signature: protected void changeFirstMonthAvailability()
focal_class.identifier: changeFirstMonthAvailability
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void changeFirstMonthAvailability()
focal_class.class_method_signature: TimeFrameEditor.isFirstMonthAvailable()
focal_class.full_signature: public boolean isFirstMonthAvailable()
focal_class.identifier: isFirstMonthAvailable
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isFirstMonthAvailable()
focal_class.class_method_signature: TimeFrameEditor.getFirstMonthOfYear()
focal_class.full_signature: public Month getFirstMonthOfYear()
focal_class.identifier: getFirstMonthOfYear
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Month
focal_class.signature: Month getFirstMonthOfYear()
focal_class.class_method_signature: TimeFrameEditor.setFirstMonthOfYear(Month month)
focal_class.full_signature: public void setFirstMonthOfYear(Month month)
focal_class.identifier: setFirstMonthOfYear
focal_class.modifiers: public
focal_class.parameters: (Month month)
focal_class.return: void
focal_class.signature: void setFirstMonthOfYear(Month month)
focal_class.class_method_signature: TimeFrameEditor.setFocus(boolean focus)
focal_class.full_signature: @Override public void setFocus(boolean focus)
focal_class.identifier: setFocus
focal_class.modifiers: @Override public
focal_class.parameters: (boolean focus)
focal_class.return: void
focal_class.signature: void setFocus(boolean focus)
focal_class.class_method_signature: TimeFrameEditor.changeFirstMonth()
focal_class.full_signature: public void changeFirstMonth()
focal_class.identifier: changeFirstMonth
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void changeFirstMonth()
focal_class.class_method_signature: TimeFrameEditor.fireChanges()
focal_class.full_signature: protected void fireChanges()
focal_class.identifier: fireChanges
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void fireChanges()
focal_method.body: public void init(TimeFrame tf, Command onChangeCommand) {
          this.onChangeCommand = onChangeCommand;
          this.timeFrame = tf != null ? tf : TimeFrame.parse("begin[year] till end[year]");
  
          this.fromEditor = beanManager.lookupBean(TimeInstantEditor.class).newInstance();
          this.fromEditor.init(timeFrame.getFrom(), new Command() {
              public void execute() {
                  fromEditor.getTimeInstant().setFirstMonthOfYear(getFirstMonthOfYear());
                  timeFrame.setFrom(fromEditor.getTimeInstant());
                  changeFirstMonthAvailability();
                  fireChanges();
              }
          });
          this.toEditor = beanManager.lookupBean(TimeInstantEditor.class).newInstance();
          this.toEditor.init(timeFrame.getTo(), new Command() {
              public void execute() {
                  toEditor.getTimeInstant().setFirstMonthOfYear(getFirstMonthOfYear());
                  timeFrame.setTo(toEditor.getTimeInstant());
                  changeFirstMonthAvailability();
                  fireChanges();
              }
          });
  
          view.init(this);
          initFirstMonthSelector();
          changeFirstMonthAvailability();
      }
focal_method.class_method_signature: TimeFrameEditor.init(TimeFrame tf, Command onChangeCommand)
focal_method.full_signature: public void init(TimeFrame tf, Command onChangeCommand)
focal_method.identifier: init
focal_method.invocations: parse newInstance lookupBean init getFrom setFirstMonthOfYear getTimeInstant getFirstMonthOfYear setFrom getTimeInstant changeFirstMonthAvailability fireChanges newInstance lookupBean init getTo setFirstMonthOfYear getTimeInstant getFirstMonthOfYear setTo getTimeInstant changeFirstMonthAvailability fireChanges init initFirstMonthSelector changeFirstMonthAvailability
focal_method.modifiers: public
focal_method.parameters: (TimeFrame tf, Command onChangeCommand)
focal_method.return: void
focal_method.signature: void init(TimeFrame tf, Command onChangeCommand)