Package org.aavso.tools.vstar.ui.mediator

Examples of org.aavso.tools.vstar.ui.mediator.StarInfo


   * detail.
   *
   * @return The StarInfo object.
   */
  public StarInfo getStarInfo() {
    return new StarInfo(this, getSourceName());
  }
View Full Code Here


  protected void tearDown() throws Exception {
    super.tearDown();
  }

  public void testGetStarByAUIDRCar() throws Exception {
    StarInfo info = source.getStarByAUID(null, "000-BBQ-500");
    assertEquals("R Car", info.getDesignation());
  }
View Full Code Here

    StarInfo info = source.getStarByAUID(null, "000-BBQ-500");
    assertEquals("R Car", info.getDesignation());
  }

  public void testGetStarByAUIDEpsAur() throws Exception {
    StarInfo info = source.getStarByAUID(null, "000-BCT-905");
    assertEquals("eps Aur", info.getDesignation());
  }
View Full Code Here

    StarInfo info = source.getStarByAUID(null, "000-BCT-905");
    assertEquals("eps Aur", info.getDesignation());
  }

  public void testGetStarByNameRCar() throws Exception {
    StarInfo info = source.getStarByName(null, "R Car");
    assertEquals("000-BBQ-500", info.getAuid());
  }
View Full Code Here

    StarInfo info = source.getStarByName(null, "R Car");
    assertEquals("000-BBQ-500", info.getAuid());
  }
 
  public void testGetStarByNameEpsAur() throws Exception {
    StarInfo info = source.getStarByName(null, "eps Aur");
    assertEquals("000-BCT-905", info.getAuid());
  }
View Full Code Here

  // method.
  public void testGetEpsilonAurAUIDViaAID() {
    try {
      AAVSODatabaseConnector obsConnector = AAVSODatabaseConnector.utDBConnector;
      Connection connection = obsConnector.createConnection();
      StarInfo info = aidStarNameAndAUIDRetriever.getStarByName(connection, "epsilon aur");
      assertEquals("000-BCT-905", info.getAuid());
    } catch (Exception e) {
      fail();
    }
  }
View Full Code Here

  // getAUID() method.
  public void testGetEpsAurAUIDViaAID() {
    try {
      AAVSODatabaseConnector obsConnector = AAVSODatabaseConnector.utDBConnector;
      Connection connection = obsConnector.createConnection();
      StarInfo info = aidStarNameAndAUIDRetriever.getStarByName(connection, "eps aur");
      assertEquals("000-BCT-905", info.getAuid());
    } catch (Exception e) {
      fail();
    }
  }
View Full Code Here

  // Epsilon Aurigae.
  public void testGetEpsAurFromAUIDViaAID() {
    try {
      AAVSODatabaseConnector obsConnector = AAVSODatabaseConnector.utDBConnector;
      Connection connection = obsConnector.createConnection();
      StarInfo info = aidStarNameAndAUIDRetriever.getStarByAUID(connection,
          "000-BCT-905");
      // Test for equality, trimming and ignoring case.
      // TODO: trim at source!
      assertTrue("Eps Aur".equalsIgnoreCase(info.getDesignation().trim()));
    } catch (Exception e) {
      fail();
    }
  }
View Full Code Here

  // Retrieve 'epsilon aur' AUID..
  public void testGetEpsilonAurAUIDViaVSX() {
    try {
      AAVSODatabaseConnector obsConnector = AAVSODatabaseConnector.utDBConnector;
      Connection connection = obsConnector.createConnection();
      StarInfo info = vsxStarNameAndAUIDRetriever.getStarByName(connection, "epsilon aur");
      assertEquals("000-BCT-905", info.getAuid());
    } catch (Exception e) {
      fail();
    }
  }
View Full Code Here

  // Retrieve 'eps aur' AUID.
  public void testGetEpsAurAUIDViaVSX() {
    try {
      AAVSODatabaseConnector obsConnector = AAVSODatabaseConnector.utDBConnector;
      Connection connection = obsConnector.createConnection();
      StarInfo info = vsxStarNameAndAUIDRetriever.getStarByName(connection, "eps aur");
      assertEquals("000-BCT-905", info.getAuid());
    } catch (Exception e) {
      fail();
    }
  }
View Full Code Here

TOP

Related Classes of org.aavso.tools.vstar.ui.mediator.StarInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.