/**
  * Test method for.
  *
  * <p>{@link org.jajuk.ui.views.TracksTreeView#populateTreeByHits()}.
  */
 public final void testPopulateTreeByHits() {
   TracksTreeView view = new TracksTreeView();
   try {
     view.populateTreeByHits();
   } catch (NullPointerException e) {
     // reported on headless settings
   }
 }
 /** Test method for {@link org.jajuk.ui.views.TracksTreeView#expand()}. */
 public final void testExpand() {
   TracksTreeView view = new TracksTreeView();
   try {
     view.expand();
   } catch (NullPointerException e) {
     // reported on headless settings
   }
 }
 /** Test method for {@link org.jajuk.ui.views.TracksTreeView#populateTree()}. */
 public final void testPopulateTree() {
   TracksTreeView view = new TracksTreeView();
   tryInitUI(view);
   try {
     view.populateTree();
   } catch (NullPointerException e) {
     // reported on headless settings
   }
   // try with different settings
   Conf.setProperty(Const.CONF_LOGICAL_TREE_SORT_ORDER, "0");
   try {
     view.populateTree();
   } catch (NullPointerException e) {
     // reported on headless settings
   }
   Conf.setProperty(Const.CONF_LOGICAL_TREE_SORT_ORDER, "1");
   try {
     view.populateTree();
   } catch (NullPointerException e) {
     // reported on headless settings
   }
   Conf.setProperty(Const.CONF_LOGICAL_TREE_SORT_ORDER, "2");
   try {
     view.populateTree();
   } catch (NullPointerException e) {
     // reported on headless settings
   }
   Conf.setProperty(Const.CONF_LOGICAL_TREE_SORT_ORDER, "3");
   try {
     view.populateTree();
   } catch (NullPointerException e) {
     // reported on headless settings
   }
   Conf.setProperty(Const.CONF_LOGICAL_TREE_SORT_ORDER, "4");
   try {
     view.populateTree();
   } catch (NullPointerException e) {
     // reported on headless settings
   }
   Conf.setProperty(Const.CONF_LOGICAL_TREE_SORT_ORDER, "5");
   try {
     view.populateTree();
   } catch (NullPointerException e) {
     // reported on headless settings
   }
   Conf.setProperty(Const.CONF_LOGICAL_TREE_SORT_ORDER, "6");
   try {
     view.populateTree();
   } catch (NullPointerException e) {
     // reported on headless settings
   }
   Conf.setProperty(Const.CONF_LOGICAL_TREE_SORT_ORDER, "7");
   try {
     view.populateTree();
   } catch (NullPointerException e) {
     // reported on headless settings
   }
 }
 /**
  * Try init ui.
  *
  * @param view
  */
 private void tryInitUI(TracksTreeView view) {
   try {
     view.initUI();
   } catch (ExceptionInInitializerError e) {
     // reported on headless settings
   } catch (HeadlessException e) {
     // reported on headless settings
   } catch (NullPointerException e) {
     // sometimes reported deep inside Swing components, I could not find out
     // why...
   }
 }
 /**
  * Test method for.
  *
  * <p>{@link org.jajuk.ui.views.TracksTreeView#actionPerformed(java.awt.event.ActionEvent)} .
  */
 public final void testActionPerformed() {
   TracksTreeView view = new TracksTreeView();
   view.actionPerformed(new ActionEvent(this, 1, ""));
 }
 /**
  * Test method for.
  *
  * <p>{@link org.jajuk.ui.views.TracksTreeView#getRegistrationKeys()}.
  */
 public final void testGetRegistrationKeys() {
   TracksTreeView view = new TracksTreeView();
   Set<JajukEvents> set = view.getRegistrationKeys();
   assertNotNull(set);
   assertTrue(set.contains(JajukEvents.FILE_LAUNCHED));
 }
 /** Test method for {@link org.jajuk.ui.views.TracksTreeView#getDesc()}. */
 public final void testGetDesc() {
   TracksTreeView view = new TracksTreeView();
   assertNotNull(view.getDesc());
 }