コード例 #1
0
  /** Test lower case in report meta data. */
  @Test
  public void testLowerCaseAltitude() {
    System.out.println(
        "Running test "
            + this.getClass().getSimpleName()
            + "."
            + new Object() {}.getClass().getEnclosingMethod().getName());

    String[] metaData = reports.get(4).getMetaData();

    assertEquals("04/06/2015", metaData[ExtMetaDataCols.DATE_NAME.ordinal()]);
    assertEquals("12m", metaData[ExtMetaDataCols.ALTITUDE_NAME.ordinal()]);
  }
コード例 #2
0
  /** Test a report meta information. */
  @Test
  public void testReport1() {
    System.out.println(
        "Running test "
            + this.getClass().getSimpleName()
            + "."
            + new Object() {}.getClass().getEnclosingMethod().getName());

    String[] metaData = reports.get(1).getMetaData();

    assertEquals("22/03/2015", metaData[ExtMetaDataCols.DATE_NAME.ordinal()]);
    assertEquals("19:00-22:00", metaData[ExtMetaDataCols.TIME_NAME.ordinal()]);
    assertEquals("Cambridge, UK", metaData[ExtMetaDataCols.LOCATION_NAME.ordinal()]);
    assertEquals("12m", metaData[ExtMetaDataCols.ALTITUDE_NAME.ordinal()]);
    assertEquals("3C (no wind)", metaData[ExtMetaDataCols.TEMPERATURE_NAME.ordinal()]);
    assertEquals("2 - Slight undulations", metaData[ExtMetaDataCols.SEEING_NAME.ordinal()]);
    assertEquals("3 - Somewhat clear", metaData[ExtMetaDataCols.TRANSPARENCY_NAME.ordinal()]);
    assertEquals("20.4 mag", metaData[ExtMetaDataCols.DARKNESS_NAME.ordinal()]);
    assertEquals("Tele Vue 60 F6", metaData[ExtMetaDataCols.TELESCOPES_NAME.ordinal()]);
    assertEquals(
        "TV Panoptic 24mm, Nagler 7mm, Powermate 2.5x",
        metaData[ExtMetaDataCols.EYEPIECES_NAME.ordinal()]);
    assertEquals("Astronomik OIII", metaData[ExtMetaDataCols.FILTERS_NAME.ordinal()]);
  }